RE: [sv-bc] nested modules under generate construct

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Wed Feb 20 2008 - 09:19:14 PST
Daniel,
 
You are correct that the current BNF does not allow design element
declarations to be generated.
 
I don't know if this restriction was on purpose, but I don't see why the
allowed generation of type declarations (for example, class
declarations) would be relevant to the issue.  You can declare a type in
a procedural block, too.
 
-- Brad

________________________________

From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of
danielm
Sent: Wednesday, February 20, 2008 8:03 AM
To: sv-bc@eda.org
Subject: [sv-bc] nested modules under generate construct


IEEE1800 BNF forbids to put nested module declaration under generate:
 
module m;
    parameter p = 9;
    generate if (p)
        module mm;
        endmodule
    endgenerate
endmodule
 
This was done on purpose or this was just missed.
IE class declaration is allowed to be used in generate clause.
 
DANiel


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is

believed to be clean. 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Feb 20 09:53:52 2008

This archive was generated by hypermail 2.1.8 : Wed Feb 20 2008 - 09:54:30 PST