Re: [sv-bc] enum ranges


Subject: Re: [sv-bc] enum ranges
From: Dave Rich (David.Rich@synopsys.com)
Date: Tue Dec 09 2003 - 14:46:39 PST


This is not legal. See
http://www.eda.org/sv-bc/display_issue.cgi?issue_num=81

Paul Graham wrote:

>If an enum is declared with a range that depends on a parameter, then you
>have to wait until elaboration to tell if an identifier is valid or not.
>For instance:
>
> parameter p = 1;
> enum { x[p] };
>
> assign y = x2;
>
>It is not known until after parameter p is elaborated whether x2 is a legal
>name. Is this intended?
>
>Paul
>
>
>
>

-- 
--
David.Rich@Synopsys.com
Technical Marketing Consultant
http://www.SystemVerilog.org
tele:  650-584-4026
cell:  510-589-2625



This archive was generated by hypermail 2b28 : Tue Dec 09 2003 - 14:47:10 PST