RE: [sv-bc] A question regarding the proposal for issue # 91

From: Rich, Dave <Dave_Rich@mentorg.com>
Date: Wed Oct 06 2004 - 12:45:26 PDT

 I agree. The general rule should be that a packed or unpacked range should not be allowed unless there is an identifier that it can relate to. So that should restrict them to declarations (or prototypes)

Dave

-----Original Message-----
From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Paul Graham
Sent: Wednesday, October 06, 2004 12:35 PM
To: sv-bc@eda.org
Subject: Re: [sv-bc] A question regarding the proposal for issue # 91

Dave Rich wrote:

> I think the suggestion was to make them accept a simple_type, so
> $bits(integer) is OK, but $dimensions(reg[10:0]); is not legal.
> At least one reason for not allowing (reg[10:0]) is that it is
> visually ambiguous as to whether it is a packed or unpacked array.

I assume the same reasoning applies to parameterized types. If you
have:

    sub #(.t(reg[10:0])) u1();

then it's equally unclear whether you are parameterizing type t of module sub with a packed or unpacked array of bits.

Paul
Received on Wed Oct 6 12:45:35 2004

This archive was generated by hypermail 2.1.8 : Wed Oct 06 2004 - 12:45:38 PDT