Re: [sv-bc] genvar nesting

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Mon Oct 29 2007 - 08:43:43 PDT
Brad Pierce wrote:
> What about --
>  
> genvar i; 
> for (i=0; i<5; i=i+1) begin:a 
>   genvar i;
>   for (i=0; i<5; i=i+1) begin:b 

I would consider this to be illegal -- the explicit "genvar i;"
declaration inside "a" conflicts with the implicitly declared localparam.

See my related response about scoping for the inline declaration forms.


Gord
-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Oct 29 09:26:22 2007

This archive was generated by hypermail 2.1.8 : Mon Oct 29 2007 - 09:26:50 PDT