Re: [sv-bc] genvar nesting

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Mon Oct 29 2007 - 08:34:30 PDT
Bresticker, Shalom wrote:
> What about the following:
> 
> *for* (*genvar* i=0; i<5; i=i+1)* begin*:a
> *  for* (*genvar* i=0; i<5; i=i+1)* begin*:b
>     ...
> 
> Legal? Why or not?

That is legal since loop "b" introduces
a new declaration.  The scoping for the new genvar
is a bit odd -- it doesn't live in "a" but it also
doesn't cause another explicit generate nesting
(since that would mess up the external names and the
hierarchical referencing).

Conceptually this is somewhat like having another nesting but
one that has NO impact other than allowing the declaration
of the inner genvar.

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 08:41:06 2007

This archive was generated by hypermail 2.1.8 : Mon Oct 29 2007 - 08:41:26 PDT