View Single Post
  #5 (permalink)  
Old 12-15-2004, 12:30 AM
Posts: n/a
Default Re: Making output-port to bi-directional-port!

Paul Uiterlinden wrote:
> One does not preclude the other. AD can be inout and reg at the same


No, it can't. Only an output port can also be declared as a reg. In
that case, it is essentially a short-hand for a local reg with an
continuous assignment from the reg to the net on the outside of the

The "sink" or "destination" side of a port connection must always be a
net (the outside of an output port, or the inside of an input port).
"source" side of a port connection (the outside of an input port, or
inside of an output port) can be a reg. In this case there is
a continuous assignment from the source side to the sink side.
For an inout port, both sides must be nets.

Reply With Quote