[sv-bc] enum ranges


Subject: [sv-bc] enum ranges
From: Paul Graham (pgraham@cadence.com)
Date: Tue Dec 09 2003 - 14:20:49 PST


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



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