#03c CUSTOM DESIGN SYNOPSYS
#03c CUSTOM DESIGN SYNOPSYS
#03c CUSTOM DESIGN SYNOPSYS
Objective
To study the properties of CMOS inverters as well as their characteristics and parameters by the
application of HSpice circuit simulation tool and hence provide an estimation of its values through
calculations.
Laboratory tasks
2.1. Characteristics of CMOS Inverter (INV) Circuit
• Build the circuit of CMOS inverter based on data of table 1 (Fig. 4.1):
IN Z
0 1
1 0
• Get the circuit netlist (inv.netl file) and put it in the following link:
/student_lab/digital_ic/variant_val/...
1|Page
For input files take:
• Input slope50 ps
• Output capacitive load value Cload: 5 fF
2.1.1. The input file for measuring the switching point voltage level for CMOS inverter in DC
mode by using HSpice circuit simulation tool is listed below:
*Inverter
*Threshold Voltage
* HSPICE Netlist
.options POST=1 parhier=local
* Models section
* Include models
.include '/student_lab/digital_ic/all_models/model_val'
* Analysis section
* DC Analyses
.dc vin 0 vdd 0.01
.probe v(*) i(*)
*Measures
.meas dc vthr_in_out find v(in) when v(in)=v(z) td=0.1
*Options
.option post probe
.option autostop
.end
2.1.2. The input file for measuring the delays for CMOS inverter and transition time in transition
mode by using HSpice circuit simulation tool is listed below:
*Inverter
*Propagation Delay, Transition Time
* HSPICE Netlist
.options POST=1 parhier=local
* Models section
* Include models
.include '/student_lab/digital_ic/all_models/model_val'
2|Page
.param per='1/freq'
.param tst='0.5*per'
.temp Temp_val
* Analysis section
* Transient Analyses
.tran ‘0.01*tr’ ‘2*per’
.probe v(*) i(*)
*Measures
***Propagation Delay
.meas tran tplh_in_ z trig v(in) val='0.5*vdd' fall=1 targ v(z) val='0.5*vdd' rise=1
.meas tran tphl_in_ z trig v(in) val='0.5*vdd' rise=1 targ v(z) val='0.5*vdd' fall=1
***Transition Time
.meas tran ttrlh_in_ z trig v(z) val='0.1* vdd ' rise=1 targ v(z) val='0.9* vdd ' rise=1
.meas tran ttrhl_in_ z trig v(z) val='0.9* vdd ' fall=1 targ v(z) val='0.1* vdd ' fall=1
*Options
.option post probe
.option autostop
.end
2.2. Draw the simulation circuit of ring oscillator to get inverter’s voltage transfer and transition
characteristics (Fig. 4.2).
3|Page
Bulks of NMOS transistors are connected to VSS
Bulks of PMOS transistors are connected to VDD
Fig.4.2. Ring oscillator symbol, electrical circuit, and input and internal signal waveforms
• Get the netlist of the circuit (inv_ring.netl file). Build the circuit on the existing inverter
circuit, using the idea of subcircuit and put it in the following link:
/student_lab/digital_ic/variant_val/...
*.SUBCKT inv I ZN
MM1 VSS I ZN VSS NMOS L=0.09U W=0.2U
MM2 VDD I ZN VDD PMOS L=0.09U W=0.5U
*.ENDS inv
xu1 Z Z1 inv
xu2 Z1 Z2 inv
xu3 Z2 Z inv
2.2.2. The input file for measuring the delays for ring oscillator frequency in transition mode by
using HSpice circuit simulation tool is listed below:
*Inverter Chain
*Propagation Delay
* HSPICE Netlist
.options POST=1 parhier=local
* Models section
* Include models
.include '/student_lab/digital_ic/all_models/model_val'
4|Page
.param tr=TR_val
.param freq=FREQ_val
.param per='1/freq'
.param tst='0.5*per'
.param wwp=0.75u
.param wwn=0.35u
.param A=1
.temp Temp_val
* Analysis section
* Transient Analyses
.tran ‘0.01*tr’ ‘2*per’ sweep a 1 7 0.1
.probe v(*)
*Options
.option post probe
.option autostop
.end
2.3. Draw the Simulation Circuit of Inverter Chain to get Voltage Transfer Characteristics
(Fig. 4.3).
5|Page
Bulks of NMOS transistors are connected to VSS
Bulks of PMOS transistors are connected to VDD
Fig. 4.3. The views of inverter chain’s symbol, electrical circuit, and
Input, output and internal signal waveforms
• Get the netlist of the circuit (inv_chain.netl file) using the given sizes in table 4.1 and put it
in the following link:
/student_lab/digital_ic/variant_val/...
2.3.1. The input file for measuring the minimum delays for inverter chain in transition mode by
using HSpice circuit simulation tool is listed below:
*Inverter Chain
*Propagation Delay
* HSPICE Netlist
.options POST=1 parhier=local
6|Page
* Models section
* Include models
.include '/student_lab/digital_ic/all_models/model_val'
* Analysis section
* Transient Analyses
.tran ‘0.01*tr’ ‘2*per’ sweep a 1 7 0.1
.probe v(*) i(*)
*Options
.option post probe
.option autostop
*Measures
***Propagation Delay
.meas tran tplh_in_ z trig v(in) val='0.5*vdd' rise=1 targ v(z) val='0.5*vdd' rise=1
.meas tran tphl_in_ z trig v(in) val='0.5*vdd' fall=1 targ v(z) val='0.5*vdd' fall=1
.meas tran tp_in_z param=’(tplh_in_z+tphl_in_z)/2’
.end
7|Page
Processing the Results Obtained in the Laboratory Exercise
Compare inverter’s switching point voltages, measured through simulation, with calculated
values.
• The following formula can be used:
β
+
VDD − V
n
V
9β THN THP
p
V =
SP β
n
1+
9β
p
Calculate the delays and compare them with the values when
a) LOAD_val = 0
b) LOAD_val = Cload/4
( )
t PLH = 0.7 R p C outp + C outn + Cload ,
VDD VDD
R = and R =
p kp W n kp W
p
p
( VDD − V )2
n n ( VDD − V )2
2 L THP 2 L THN
p n
where
ε ε
ox ox
kp =μ and kp =μ
p p t n n t
ox ox
Compare ring oscillator frequency measured through simulation with calculated values.
• The following formula can be used to calculate the frequency of ring oscillator:
1
f=
2 n tP
In case of minimum delay, compare the value of A parameter measured through simulation with
calculated values.
• The following formula can be used:
8|Page
−15 1
80 10 F 4
A =( ) ,
C
in
where
ε
ox
C = 3 0.75um 0.35um
in t
ox
Report
The report should contain:
1. Studied circuits;
2. Texts of input files;
3. Calculated characteristics and parameters of circuits;
4. Characteristics obtained from simulation;
5. Results obtained from the lab exercise;
6. Brief summary.
9|Page