Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Hspice - how to define, probe expressions of waveforms?

Status
Not open for further replies.

sutapanaki

Advanced Member level 4
Joined
Nov 2, 2001
Messages
1,346
Helped
523
Reputation
1,048
Reaction score
486
Trophy points
1,363
Location
US
Activity points
11,152
Hspice question

I usually use a different simulator -eldo, but now I need to do things with Hspice, so I hope you'll excuse me if the question is too stupid. How can I define, probe (and plot with cosmos scope) expressions of waveforms? What is the syntax? For example, a simple one as Vout/Vin to a more complex 20*log(Vin/Vout) and so on, you get the idea. In eldo I can do .defwave and the expression, but here it seems not the same. Thanks.
 

Hspice question

You can ".PROBE" it, ".MEASURE" it or use Cosmos scope's expression feature.
 

Re: Hspice question

can you be just a bit more specific?
 

Re: Hspice question

i do not know how to realize, but i think the calculator in waveform display tools is a good choice.

ps: how to realize it in eldo?

sutapanaki said:
can you be just a bit more specific?
 

Re: Hspice question

in eldo:

.defwave gain=v(out)/v(in)

.probe ac wdb(gain)
 

Re: Hspice question

good
thanks

sutapanaki said:
in eldo:

.defwave gain=v(out)/v(in)

.probe ac wdb(gain)
 

Re: Hspice question

For sutapanaki:

.probe ac vdb(vout) vp(vout)

this gives you 20log(vout/vin) and phase of vout... assuming vin=1v (ac).
 

Re: Hspice question

This is clear to begin with. My question was rather how to probe Vout/Vin if Vin is not 1v ac.

ashish_chauhan said:
For sutapanaki:

.probe ac vdb(vout) vp(vout)

this gives you 20log(vout/vin) and phase of vout... assuming vin=1v (ac).
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top