The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> Print Verilog-A subcircuit value using HSPICE https://designers-guide.org/forum/YaBB.pl?num=1430530076 Message started by Joe Shmoe on May 1st, 2015, 6:27pm |
Title: Print Verilog-A subcircuit value using HSPICE Post by Joe Shmoe on May 1st, 2015, 6:27pm Hi everybody, I'm using verilog-A to describe a subcircuit which I implement in a HSPICE netlist. The subcircuit comprises a set of functions that are interdependent. for example: F1 = V(a,b)*C1 F2 = F1*C2*V(a,b) F4 = pow(F2,2)*exp(F1/C3) ... I(a,b) <+ F4 //voltage dependent current source When I run HSPICE I would like to PRINT several functions of the subcircuit. What would be the proper command in order to do so? (I'm running a transient analysis in HSPICE) something like: .PRINT TRAN X1..... Thanks for the input! cheers, JS |
Title: Re: Print Verilog-A subcircuit value using HSPICE Post by Geoffrey_Coram on May 4th, 2015, 6:51am Do you need it formatted as the output from .PRINT? Otherwise, you could use $strobe within the Verilog-A module to print; I think that comes out in the standard output from the simulator. |
Title: Re: Print Verilog-A subcircuit value using HSPICE Post by Joe Shmoe on May 4th, 2015, 8:32am I would need in the format any idea how to do that? Thanks! |
Title: Re: Print Verilog-A subcircuit value using HSPICE Post by Geoffrey_Coram on May 4th, 2015, 11:21am You probably need to set up the values you want to print as operating-poing variables. Rather than real F1, F2, F4; you declare them with (* desc="op-pt" *) real F1, F2, F4; Then you should be able to print them the same way you would print GM for a transistor. .print dc x1:F1 |
Title: Re: Print Verilog-A subcircuit value using HSPICE Post by Joe Shmoe on May 5th, 2015, 11:34am That worked out great! Thanks Geoffrey! |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |