[sv-bc] Is number assigned to generate block reset at the end of design unit

From: Surya Pratik Saha <spsaha@cal.interrasystems.com>
Date: Mon Sep 13 2010 - 04:05:32 PDT
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, and is
believed to be clean. Received on Mon Sep 13 04:06:23 2010

This archive was generated by hypermail 2.1.8 : Mon Sep 13 2010 - 04:09:06 PDT