View Single Post
  #5 (permalink)  
Old 12-15-2004, 12:30 AM
Guest
 
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

time:

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
implicit
continuous assignment from the reg to the net on the outside of the
port.

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).
The
"source" side of a port connection (the outside of an input port, or
the
inside of an output port) can be a reg. In this case there is
essentially
a continuous assignment from the source side to the sink side.
For an inout port, both sides must be nets.

Reply With Quote