Yes, the genblk numbering is local to the scope.
So in both examples, the answer is genblk1.
Regards,
Shalom
From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Surya Pratik Saha
Sent: Monday, September 13, 2010 1:06 PM
To: sv-bc@eda.org
Cc: Adhip Das
Subject: [sv-bc] Is number assigned to generate block reset at the end of design unit
Hi,
In page 715 of 1800-2009 SV LRM, it is mentioned:
Each generate construct in a given scope is assigned a number. The number will be 1 for the construct that appears textually first in that scope and will increase by 1 for each subsequent generate construct in that scope.
So is the number assigned to generate block got reset after end of corresponding scope (say module or interface etc.)? For e.g.:
module m1;
begin // genblk1
end
endmodule
module m2;
begin // is it genblk1 or genblk2 ?
end
endmodule
If it is reset, then what will happen for a generate block inside nested module something like:
module m1;
begin // genblk1
end
module nested;
begin // is it genblk1 or genblk2 ?
end
endmodule
endmodule
Please let me know.
-- Regards Surya -- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean. --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Mon Sep 13 09:53:38 2010
This archive was generated by hypermail 2.1.8 : Mon Sep 13 2010 - 09:56:14 PDT