From: Gordon Vreugdenhil (gvreugde@comcast.net)
Date: Thu May 06 2004 - 22:01:48 PDT
Section 12.4.2 says:
The generate blocks of the directly nested construct are
treated as if they belong to the outer construct, and
therefore can have the same name as the generate blocks
of the outer construct.
Given that, do all the alternatives in the following
have the same implicit external name?
module top;
parameter p = 7;
if (p == 1) // genblk1
reg a;
else if (p == 2) // genblk1 or genblk2 ???
wire a;
else // same name as the "p == 2" scope
integer a;
endmodule
I think that it makes sense to say that all parts of a
directly nested conditional construct are treated as a
single generate construct for the purposes of assigning
genblk numbers. It might be worthwhile to add an explicit
statement like this to the LRM.
Gord.
This archive was generated by hypermail 2.1.4
: Thu May 06 2004 - 21:42:03 PDT
and
sponsored by Boyd Technology, Inc.