Skip to main content
  1. Posts/
  2. System Verilog/
  3. Language Concepts/

Ports

115 words·1 min
Connie
Author
Connie
Optimistic undergrad
Table of Contents

Every module or interface exposes a list of ports - points of connection where signal, handshakes or buses flow in and out. They are declared either in Headers or Port-declaration blocks.

Directions
#

DirectionRoleUsageMore
inputConsumed by the moduleClock, resets, data inputs, control signalsRead-only inside modules
outputDriven by the moduleResults, flags and response signalsProduces a value, by default is a net (wire), but when they are variable (e.g.logic) type, they behave like registers in procedural blocks
inoutBi-directionalShared buses, tri-state pins, wires on I/OLive on a net and allows both the module and the environment to drive value and are typically gated by enable signals