According to 5.6.1, 'new[]' is a built-in function. Passing an input argument to a Verilog function is like assigning it to the corresponding formal. So no explicit casting would be needed in new[expr] if type(expr) were packed. -- Brad -----Original Message----- From: Bresticker, Shalom [mailto:shalom.bresticker@intel.com] Sent: Thursday, April 06, 2006 2:30 AM To: Brad Pierce; sv-ec@eda.org Subject: RE: [sv-ec] Question about the definition of New for dynamic arrays. If you used an expression which was shortint, would you then have to add an explicit cast? Shalom > -----Original Message----- > From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On > Behalf Of Brad Pierce > Sent: Wednesday, April 05, 2006 7:42 AM > To: sv-ec@eda.org > Subject: Re: [sv-ec] Question about the definition of New for > dynamic arrays. > > > Maybe no restrictions are necessary. How about the following? > > In 5.6.1, REPLACE > > "Must be a non-negative integral expression." > > WITH > > "The type of this operand is longint unsigned." > > WHERE > > "longint unsigned" is in a boldface constant-width font. >Received on Thu Apr 6 06:53:36 2006
This archive was generated by hypermail 2.1.8 : Thu Apr 06 2006 - 06:53:49 PDT