The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Design Languages >> Verilog-AMS >> how we probe local variables in verilog-A sim
https://designers-guide.org/forum/YaBB.pl?num=1163655345

Message started by neoflash on Nov 15th, 2006, 9:35pm

Title: how we probe local variables in verilog-A sim
Post by neoflash on Nov 15th, 2006, 9:35pm

I am using hspice simulator. How to observe those internal non-electrical signals?

Title: Re: how we probe local variables in verilog-A sim
Post by Geoffrey_Coram on Nov 16th, 2006, 11:27am

Per the new Verilog-AMS LRM, you can define output variables with attributes,

If you have a variable called "iavl" that is used to store the avalanche current, declare it at top level (module scope, not in a named block) with

(* desc="avalanche current" *) real iavl;

(and, obviously, remove the declaration you had before).  I believe HSpice supports this new feature.  I forget the exact syntax, though, for requesting that HSpice save it to the .tr0 file; I think it's similar to what you do for saving "gm" from a transistor.

Title: Re: how we probe local variables in verilog-A sim
Post by neoflash on Nov 18th, 2006, 6:15am

oh.

Maybe I will check with hspice manual. It is quite ridiculous that my CAD engineer does not install the manual with new version simulator, thus I have to live without that for quite long time, until that guy have time to handle my request...

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