Françoise, Yes, that was part of the reason. Another reason was, at one time, int, integer and char did not have a totally fixed size; they were fixed for a platform or OS implementation. (char could be 8 or 16 bits depending if it was representing ASCII or Unicode). Another reason is to not think of these types a bit vectors, they are variables that hold values. Dave ________________________________ From: francoise martinolle [mailto:fm@cadence.com] Sent: Friday, December 16, 2005 10:41 AM To: Rich, Dave; 'francoise martinolle'; sv-bc@eda.org Subject: RE: [sv-bc] packed array question 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 11:02:05 2005
This archive was generated by hypermail 2.1.8 : Fri Dec 16 2005 - 11:02:09 PST