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

From: Dave Rich <David.Rich@synopsys.com>
Date: Tue Sep 14 2004 - 08:37:52 PDT

Hi Dan,

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.

Plus it promotes good programming to uses typedefs.

Dave

Jacobi, Dan wrote:

> Hello All,
>
> In yesterdays meeting I was requested to make a proposal that among
> other things enhances the BNF to accept the usage of data types as
> arguments to the $bits system function and the array querying system
> functions
>
> Meaning enabling such system function calls
>
> $bits(integer)
>
> $dimennsions(reg[10:0]);
>
> However the BNF sections in chapter 23 only permits the usage of type
> identifiers
>
> Such as
>
> typedef integer type_ident
>
> …
>
> $bits(type_ident)
>
> The BNF box in chapter 23.4 reads:
>
> size_function ::=
>
> *$bits ( *expression *)*
>
> | *$bits ( *type_identifier *)*
>
> /// not in /Annex A
>
> And annex A reads
>
> type_identifier ::= identifier
>
> My question :
>
> Do we want to enable the use of data types as arguments to the $bits
> and array querying system functions ?
>
> Once I receive an answer I will update the proposal
>
> **Dan Jacobi, **
>
> **Tel : +972-4-8655855**
>
> **Inet : 8-465-5855**
>

-- 
--
David.Rich@Synopsys.com
Technical Marketing Consultant and/or
Principal Product Engineer
http://www.SystemVerilog.org
tele:  650-584-4026
cell:  510-589-2625
Received on Tue Sep 14 08:38:03 2004

This archive was generated by hypermail 2.1.8 : Tue Sep 14 2004 - 08:38:20 PDT