Re: Minutes of: VAMS Compact Modeling conf call May 20

From: Geoffrey.Coram <Geoffrey.Coram@analog.com>
Date: Thu May 20 2004 - 09:37:21 PDT

Martin -
The string parameter as proposed does have its type defined
in the declaration statement.

If I have a string parameter like

  parameter string type = "nmos" from {"nmos", "pmos"};

then I am saying that the simulator should allocate a 4-character
string (plus \0 ?) for that parameter; any string that is longer
than 4 characters must be considered as outside the allowed range
and thus the simulator does not have to keep track of it.

-Geoffrey

Martin O'Leary wrote:
> > 4. String parameters
> >
> > Sri asked if the range (from {"a", "b"}) is mandatory.
> > This tells the simulator how much space to allocate for the string,
> > (similar to how digital reg variables have a size), so I believe
> > it should be mandatory.

> Could someone elaborate more on this point? If the point is that the module should indicate the maximum number of chars the string should have - this is not correct. In Verilog, parameter sizes and indeed types are not finally determined until elaboration time.
Received on Thu May 20 09:37:27 2004

This archive was generated by hypermail 2.1.8 : Thu May 20 2004 - 09:37:28 PDT