RE: [sv-bc] packed array question

From: francoise martinolle <fm_at_.....>
Date: Fri Dec 16 2005 - 10:40:35 PST
Dave,
 
Was the rational of backward compatibility forced us to disallow this in the
first place?
 
Some Verilog simulators allowed integer [1:10] v;
but the range was ignored so it was just an integer.
 
Francoise
       '
 
 
 


  _____  

From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Rich,
Dave
Sent: Friday, December 16, 2005 1:00 PM
To: francoise martinolle; sv-bc@eda.org
Subject: RE: [sv-bc] packed array question



I agree that time should have been added to the list, since it is an integer
type with a predefined width.

 

Although the BNF allows you to rename the type with a typedef, it does not
change the fact that it is a n integer type with a predefined width.

 

I propose the following change section 5.2

 

Integer types with predefined widths cannot have packed
   array dimensions declared. These types are byte, shortint,
   int, longint, and integer. 

Integer types with predefined widths shall not have packed
   array dimensions declared. These types are byte, shortint,
   int, longint, integer, and time.

Can you enter a mantis item?

 

 


  _____  


From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of
francoise martinolle
Sent: Friday, December 16, 2005 9:50 AM
To: sv-bc@eda.org
Subject: [sv-bc] packed array question

 

Are packed arrays of time allowed?

Is the following legal:

 

typedef time [1:5] myvector_of_time;

 

or

typedef time mytime;

 

typedef mytime myvector_of_mytime;

 

Section 5.2

 

  Integer types with predefined widths cannot have packed
   array dimensions declared. These types are byte, shortint,
   int, longint, and integer. 

Time seems to be missing from that sentence.

 

The sentence seems to also imply that you can do the following:

 

typedef int myint;

 

typedef myint myvector_of_myint;

 

 

Francoise

       '
Received on Fri Dec 16 10:40:41 2005

This archive was generated by hypermail 2.1.8 : Fri Dec 16 2005 - 10:40:47 PST