Re: [sv-bc] Built-in types are not packed arrays

From: Paul Graham <pgraham@cadence.com>
Date: Fri Sep 24 2004 - 12:59:29 PDT

> V2K doesn't allow bit selects of its built-in integer types,
> 'integer' and 'time'. (Yes, most simulators support it anyway.)
> So a V2K array of integers really does have just one dimension,
> not two.

Does SV's byte type have the same restriction? Surely you aren't
suggesting that:

    byte x;

    ... x[1] ...

is illegal or deprecated? Everyone knows that a byte is 8 bits, and
it's natural (in an hdl) to want to reference individual bits of a
byte. If you can index a byte, then why not a shortint or an int?
Again, why should there be a difference in behavior between a
user-defined integer type and the predefined integer types?

Paul
Received on Fri Sep 24 12:59:32 2004

This archive was generated by hypermail 2.1.8 : Fri Sep 24 2004 - 12:59:37 PDT