The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> VerilogA Syntax Question
https://designers-guide.org/forum/YaBB.pl?num=1238635061

Message started by neoflash on Apr 1st, 2009, 6:17pm

Title: VerilogA Syntax Question
Post by neoflash on Apr 1st, 2009, 6:17pm

I read a code with:

(* desc="" *) integer AAA;

What is the meaning of (* desc="" *) ?

Thanks,
Neoflash

Title: Re: VerilogA Syntax Question
Post by Geoffrey_Coram on Apr 2nd, 2009, 4:59am

(* whatever *) is an "attribute" which is sort of like a magic comment; simulators that understand it can use it as a hint to improve performance, and those that don't should just ignore it.  The results of simulation should be the same.

desc and units are special attributes for Spice-like simulators that support Verilog-A; they tag the associated variable as operating-point information.  Spice built-in models (like BSIM3) have op-pt info such as gm, gds, etc. that you can print out or plot; these attributes give the same capability to Verilog-A modules.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.