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.

[Moved]: Problem with optimizing delay of inverter in Hspice

Status
Not open for further replies.

ali206

Newbie level 1
Joined
Jul 27, 2017
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
14
hi. I want to Optimize the delay of inverter with sweep wn and wp. this is my code:


Code dot - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
*** opt inverter ***
.options post=2
.lib 'mm018.l' tt
.temp 27
.param vsup=1.8
.MODEL model1 OPT
.PARAM   wp=OP T1(0.25u,0.25u,9u)
.PARAM   wn=OP T1(0.25u,0.25u,9u)
*****************
VDD vdd GND vsup
VA  IN  GND PULSE   0                vsup           0NS            0NS         0NS             1NS      2NS
*****************
m1  OUT IN  GND GND nch W=wn    L=0.18u
m2  OUT IN  Vdd Vdd pch            W=wp L=0.18u
*****************
.op
.TRAN   0.0000001ns     20ns    SWEEP       OPTIMIZE=OPT1      RESULTS=tpd        MODEL=model1
 
.MEASURE TRAN tplh TRIG V(IN) VAL='vsup/2' FALL=1 TARG V(OUT) VAL='vsup/2' RISE=1
.MEASURE TRAN tphl TRIG V(IN) VAL='vsup/2' RISE=1 TARG V(OUT) VAL='vsup/2' FALL=1
.measure tpd param='(tplh+ tphl)/2'    goal=0
 
.end




but it is not work.
Does anyone know where is my fault?
 
Last edited by a moderator:

Re: Problem with optimizing delay of inverter in Hspice

hi. I want to Optimize the delay of inverter with sweep wn and wp. this is my code:


Code dot - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
*** opt inverter ***
.options post=2
.lib 'mm018.l' tt
.temp 27
.param vsup=1.8
.MODEL model1 OPT
.PARAM   wp=OP T1(0.25u,0.25u,9u)
.PARAM   wn=OP T1(0.25u,0.25u,9u)
*****************
VDD vdd GND vsup
VA  IN  GND PULSE   0                vsup           0NS            0NS         0NS             1NS      2NS
*****************
m1  OUT IN  GND GND nch W=wn    L=0.18u
m2  OUT IN  Vdd Vdd pch            W=wp L=0.18u
*****************
.op
.TRAN   0.0000001ns     20ns    SWEEP       OPTIMIZE=OPT1      RESULTS=tpd        MODEL=model1
 
.MEASURE TRAN tplh TRIG V(IN) VAL='vsup/2' FALL=1 TARG V(OUT) VAL='vsup/2' RISE=1
.MEASURE TRAN tphl TRIG V(IN) VAL='vsup/2' RISE=1 TARG V(OUT) VAL='vsup/2' FALL=1
.measure tpd param='(tplh+ tphl)/2'    goal=0
 
.end




but it is not work.
Does anyone know where is my fault?



what is the error ?
 

Re: Problem with optimizing delay of inverter in Hspice

VA IN GND PULSE 0 vsup 0NS 0NS 0NS 1NS 2NS
Not sure if it works with tr=tf=0

.TRAN 0.0000001ns 20ns SWEEP OPTIMIZE=OPT1 RESULTS=tpd MODEL=model1

Time resolution of 10-16s may be way too small, try a greater value!

Also, I'm not sure if your optimization syntax is correct. What's the parameter (or name) OPT1 ?

Here is a documented example of a working optimization: View attachment HSPICE_optimization-example.pdf
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top