The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 26th, 2024, 6:41am
Pages: 1
Send Topic Print
Print Verilog-A subcircuit value using HSPICE (Read 4273 times)
Joe Shmoe
New Member
*
Offline



Posts: 7

Print Verilog-A subcircuit value using HSPICE
May 01st, 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


Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: Print Verilog-A subcircuit value using HSPICE
Reply #1 - 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.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Joe Shmoe
New Member
*
Offline



Posts: 7

Re: Print Verilog-A subcircuit value using HSPICE
Reply #2 - May 4th, 2015, 8:32am
 
I would need in the format
.PRINT

any idea how to do that?

Thanks!
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: Print Verilog-A subcircuit value using HSPICE
Reply #3 - 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
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Joe Shmoe
New Member
*
Offline



Posts: 7

Re: Print Verilog-A subcircuit value using HSPICE
Reply #4 - May 5th, 2015, 11:34am
 
That worked out great!

Thanks Geoffrey!
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.