RE: descriptions as attribute

From: Kevin Cameron <k.cameron@cputech.com>
Date: Tue May 11 2004 - 10:20:09 PDT

> -----Original Message-----
> From: owner-verilog-ams@eda.org [mailto:owner-verilog-ams@eda.org] On
Behalf Of Geoffrey.Coram
> Sent: Tuesday, May 11, 2004 10:05 AM
> To: VerilogA Device Modeling Reflector; verilog-ams@eda.org
> Subject: descriptions as attribute
>
> The main AMS committee suggested that parameter descriptions
> be assigned through an attribute, specifically a standardized
> attribute, which I thought would look like this:
> parameter real res = 1 from (0:inf) (*desc="resistance"*);
>
> However, when I look at SystemVerilog 3.1 or 1364-2005, the
> attribute_instance for a parameter declaration *precedes*
> the declaration, eg
> (*desc="resistance"*) parameter real res = 1 from (0:inf);
>
> This would make for ugly code; lining up "parameter real" for
> the 600 parameters of BSIM4 would take a lot of padding.
>
> Any comments?

That would make sense if the attribute applies to all items
declared e.g.:

   (*desc="resistance"*) parameter real res = 1 from (0:inf),
                                                    r2 = 5,
                                        r4 = 20;

As far as "ugly" goes: this is minor compared to other syntax
and semantics that have been introduced, and you can use
`define and `include to tidy it up if you have lots of them.

Kev.

Kevin Cameron, CPU Technology, CA 94588, Tel.: (925) 225 4862

>
> -Geoffrey
>
>
> PS: my previous post about VHDL-AMS using -- for descriptions
> was wrong; the double-dash is a comment in VHDL, and thus the
> text after it is not associated with the parameter like we
> want the description to be.
Received on Tue May 11 10:20:12 2004

This archive was generated by hypermail 2.1.8 : Tue May 11 2004 - 10:20:13 PDT