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.

offset simulation with Hspice for a simple comparator

Status
Not open for further replies.

canarybird33

Member level 1
Joined
Apr 16, 2013
Messages
41
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Mashhad, Iran, Iran
Activity points
1,591
Hello all
After many hours searching and reading the tutorials for offset calculation, I don't know what should I do.
here is my codes. please help me to complete it.I don't understand how to write codes for DCMATCH or monte carlo simulation and how to extract the information.

.options post
.op
.param Lmin='0.18u'
vdd vdd gnd dc=0.6
vn 1 gnd dc=0.3
vp 2 gnd dc=0.3
.options NUMDGT=10 MEASDGT=10

vpulse 4 gnd pulse(0 0.6 0 1ps 1ps 20ns 40ns )
.tran .05n 400n
.DC vn 0.3 0.5 0.001 vp 0.3 0.460 0.05
.print dc v(1,2) v(7,8)
.DC vp 0.3 0.5 0.01 SWEEP MONTE=30

M0 5 1 3 gnd nch L='1.111111111*Lmin' W='22.222222222*Lmin'
M1 6 2 3 gnd nch L='2.777777777*Lmin' W='88.888888888*Lmin'
M2 3 4 gnd gnd nch L='2.777777777*Lmin' W='88.888888888*Lmin'
M3 8 7 5 gnd nch L='11.11111111*Lmin' W='88.888888888*Lmin'
M4 7 8 6 gnd nch L='11.11111111*Lmin' W='88.888888888*Lmin'
M5 8 7 vdd vdd pch L='11.11111111*Lmin' W='133.33333333*Lmin'
M6 7 8 vdd vdd pch L='11.11111111*Lmin' W='133.33333333*Lmin'

.end
what do these codes do?
  • .meas tran offsett trig v(1,2) VAL=0 cross=1 targ v(7,8) VAL=1.8 cross=1
  • .meas offset PARAM='-offsett*slope'

 
Last edited by a moderator:

let's make it easier
I have a comparator , but it doesn't compare. I mean by changing input (vn>vp to vn<vp), output should change, but it doesn't.
what's the problem? :bang:
I tested it with Proteus. it was okay, but in Hspice it doesn't work.

Please Help me :sad:
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top