Would it be useful to allow a conditional type expression like the following?
parameter two_state = 1;
parameter type t = two_state ? bit : logic;
You can get a similar effect using an extra level of hierarchy:
generate
if (two_state)
sub #(bit) u1();
else
sub #(logic) u1();
endgenerate
Paul
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Jun 15 11:25:13 2010
This archive was generated by hypermail 2.1.8 : Tue Jun 15 2010 - 11:27:03 PDT