Hspice Simulation of Nand and Inverter
Hspice Simulation of Nand and Inverter
Hspice Simulation of Nand and Inverter
EE6325
Nidhi Gundigara
UTD ID 2021235294
Date of submission: 03/03/2015
Answer1
For determining k=wp/wn the parametric analysis was done in which k was
incremented from 1 to 10 in steps of 1 and Vout was plotted.
For more accurate value of k, parametric analysis was done in which k was
incremented from 3 to 4 in steps of 0.1
Layout of 1x inverter: The layout passed DRC, LVS and PEX extraction was
done
Layout of driver cell (1x-4x) : The layout passed DRC, LVS and PEX
extraction was done
Layout of load cell(1x-1x) : The layout passed DRC, LVS and PEX
extraction was done
c) For determining tpHL and tpLH for 1x inverter, PEX extraction was done for 1x
inverter driver and load cell. And following hspice file was used
For fanout of 0, the load is commented in following file. To find fanout of 2 and 4
uncomment the line with load connection.
$transistor model
.include "/home/cad/kits/IBM_CMRF8SFLM013/IBM_PDK/cmrf8sf/V1.2.0.0LM/HSPICE/models/model013.lib_inc"
.include test.sp
.include driver.sp
.include load.sp
.option post runlvl=5
vvdd vdd! gnd! 1.2V
vvdd1 vdd1! gnd! 1.2V
Vin in gnd! PULSE 0 1.2 50p 30ps 30ps 1.970ns 4ns
.tran 0.1ns 25ns sweep fanout 1 5 1
$measuring rise time and fall time
.measure tran trise trig v(out2) val=0.12V rise=1 targ v(out2)
val=1.08V rise=1
.measure tran tfall trig v(out2) val=1.08V fall=1 targ v(out2)
val=0.12V fall=1
$measuring tphl and tplh
.measure tran tphl trig v(out1) val=0.6V rise=1 targ v(out2) val=0.6V
fall=1
.measure tran tplh trig v(out1) val=0.6V fall=1 targ v(out2) val=0.6V
rise=1
x1 in out1 vdd! gnd! driver
x2 out1 out2 vdd1! gnd! test
x3 out2 out3 vdd! gnd! load m=fanout
.end
Results
Fanout
0
2
4
Tphl
15.93ps
31.00ps
45.24ps
Tplh
13.09ps
25.96ps
38.29ps
.include "/home/cad/kits/IBM_CMRF8SFLM013/IBM_PDK/cmrf8sf/V1.2.0.0LM/HSPICE/models/model013.lib_inc"
.include test.sp
.include driver.sp
.include load.sp
.option post runlvl=5
vvdd vdd! gnd! 1.2V
vvdd1 vdd1! gnd! 1.2V
Vin in gnd! PULSE 0 1.2 50p 30ps 30ps 1.970ns 4ns
$.tran 0.1ns 25ns sweep fanout 1 5 1
.tran 0.005ns 20ns sweep beta 0.1 10 1
.measure tran trise trig v(out2) val=0.12V rise=1 targ v(out2)
val=1.08V rise=1
.measure tran tfall trig v(out2) val=1.08V fall=1 targ v(out2)
val=0.12V fall=1
.measure tran tphl trig v(out1) val=0.6V rise=1 targ v(out2) val=0.6V
fall=1
.measure tran tplh trig v(out1) val=0.6V fall=1 targ v(out2) val=0.6V
rise=1
.measure
.measure
.measure
.measure
x1
x2
x3
x4
x5
x6
.end
Results
The table below gives values of EDP for different values of beta. We can see that as
beta increases (i.e. inverter becomes more stronger) , the EDP decreases and stays
constant for higher values of beta
Beta
0.1
1.1
2.1
3.1
EDP
115.4e-25
12.6e-25
9.4e-25
8.5e-25
4.1
5.1
6.1
7.1
8.1
9.1
7.7e-25
7.6e-25
7.4e-25
7.1e-25
7.4e-25
7.7e-25
10
Answer2
3 input NAND gate schematic. We will use widths of inverter but for NMOS as length
is increasing 3 times, we will have to increase width also 3 times to keep w/l ratio
same of that of 1x inverter. For PMOS width will be same as 1x inverter PMOS
because only 1 transistor is there for worst case.
Layout of NAND gate : The layout passed DRC, LVS and PEX extraction was
done
Results
Output waveform
A B C out
Vdd
Vdd
b)Using HSPICE simulation worst case tpHL and tpLH, average power dissipation for
fanout of 0 and 4 is measured. The following code measures the parameters for
fanout of 0. For fanout of 4 uncomment the 4 loads.
Results
Fanout
Tphl
Tplh
0
4
33.07ps
59.95ps
35.55ps
25.35ps
Answer 3
Average power
dissipation
2.72uW
7.52uW