From: Paul Graham (pgraham@cadence.com)
Date: Fri Feb 25 2005 - 07:01:43 PST
Doesn't a generate create a separate scope? In that case:
module top;
defparam I1.p = 1;
generate
if ( I1.p == 1 )
M2 I1();
else
M3 I1();
endgenerate
endmodule
the defparam's reference to instance I1 can't be resolved
in the module-level scope, and so the defparam is invalid.
Paul
This archive was generated by hypermail 2.1.4
: Fri Feb 25 2005 - 06:42:21 PST
and
sponsored by Boyd Technology, Inc.