In a prior post (http://www.eda-stds.org/sv-dc/hm/0096.html) I suggested
explicit declarations for drivers and receivers. An extension of that
methodology is that those objects can have methods, e.g. disconnect,
connect, active, inactive.
So instead of trying to added a 'Z' state to a real driver type you do
something like:
module foo(wire out...
driver current iout(out); // current is a real
initial iout.inactive(); // start disconnected
always @(powerup) then
iout.active(); // have power so start driving
iout = ...;
A resolution function called on an empty array (no active drivers)
should give an appropriate value (e.g. 'Z' for logic).
I'd probably reserve connect/disconnect for later for use with more
dynamic reconfiguration of hardware.
Kev.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Aug 25 10:46:26 2010
This archive was generated by hypermail 2.1.8 : Wed Aug 25 2010 - 10:46:29 PDT