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.

How to write measure command in Hspice?

Status
Not open for further replies.

jutek

Full Member level 4
Joined
Oct 21, 2005
Messages
211
Helped
6
Reputation
12
Reaction score
1
Trophy points
1,298
Activity points
3,140
hello

i've got one problem with .measure directive.

i do simple dc analysis as .dc vin 0 vdd 0.01 and probe xtmp parameter .probe xtmp=par('2*I(M1)/gmo(M1)')

when i use .measure dc i(m1) at=0.2 it measures M1's drain current for Vin=0.2V. I want to have it for xtmp=0.2V

How should i write the directive?

regards
 

.measure hspice

Check out Avantis hspice guide.
 

hspice measure

jutek said:
hello

i've got one problem with .measure directive.

i do simple dc analysis as .dc vin 0 vdd 0.01 and probe xtmp parameter .probe xtmp=par('2*I(M1)/gmo(M1)')

when i use .measure dc i(m1) at=0.2 it measures M1's drain current for Vin=0.2V. I want to have it for xtmp=0.2V

How should i write the directive?

regards

I seldom use .mearsure, just plot the waves and mearsure on it.
 

hspice find when

holddreams said:
I seldom use .mearsure, just plot the waves and mearsure on it.

if i want to measure the values from plot, surely i would do that.
I have to measure many values and don't want to waste time on it

regards
 

measure hspice

jutek said:
hello

i've got one problem with .measure directive.

i do simple dc analysis as .dc vin 0 vdd 0.01 and probe xtmp parameter .probe xtmp=par('2*I(M1)/gmo(M1)')

when i use .measure dc i(m1) at=0.2 it measures M1's drain current for Vin=0.2V. I want to have it for xtmp=0.2V

How should i write the directive?

regards

Measre the current and gm at 0.2V using .meas, and add another .meas statement:
.meas dc xtmp param='im1_200mV/ gmo_200m'

Code:
.meas dc im1_200m find i(m1) at=0.2
.meas dc gmo_200m find gmo(m1) at=0.2
.meas dc xtmp param='im1_200mV/ gmo_200m'
 

hspice find

it is enough to write .measure DC 'xtmp' PARAM='2*i(m1)/gmo(m1)'
but it's not the point

i want to measure i(m1) for xtmp=0.2 not for vin=0.2 which is a sweep variable

regards
 

hspice .meas

jutek said:
it is enough to write .measure DC 'xtmp' PARAM='2*i(m1)/gmo(m1)'
but it's not the point

i want to measure i(m1) for xtmp=0.2 not for vin=0.2 which is a sweep variable

regards
Sorry for misunderstanding you.

You may use a current controlled current source (F element) (and a voltage source as a current meter) to amplifier the current through m1 with a gain of 0.1. Then xtmp=0.2 <==> I(F1) = gmo(m1), where F1 is the name of cccs. Now you can use find... when... function to get the result your expected.

Hope this time it works.
Code:
.meas tran xxx when I(F1) = gmo(m1)
.meas tran ixx find i(m1) at=xxx

BTW, I don't think
.measure DC 'xtmp' PARAM='2*i(m1)/gmo(m1)'
is syntax-correct for hspice.

Best regards,
Hughes.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top