Exercise-04 - Noise Margin and Realization of Logic Gates
Exercise-04 - Noise Margin and Realization of Logic Gates
Exercise-04 - Noise Margin and Realization of Logic Gates
CMOS
Objective: (A) Identifying the V IL , V IH , V oL, points on the VTC curve for Noise margin
Analysis
(B) Logic Gates Implementation:
a) Using CMOS, realize the following Logic gates: NOT, NAND, NOR, XOR, XNOR
b) Calculate the propagation delay in each output transition
c) Perform DC analysis for obtaining VTC (voltage transfer curve) for the logic gates
A) NOISE MARGIN: Noise margin is the amount of noise that a CMOS circuit could withstand
without compromising the operation of circuit. Noise margin does makes sure that any signal
which is logic '1' with finite noise added to it, is still recognised as logic '1' and not logic '0'. It
is basically the difference between signal value and the noise value.
Resulting in (5.62),
Wn
kr =
kn
=
n C ox ( )
Ln
n 2.8 p
kp Wp
where p C ox
( )
Lp
and
Resulting in (5.67)
V T n =0.55V , V T p =0.55V
0 0
Note:
c) Comment on noise margin behaviour (Parametric dc analysis: V out vs V ) by varying
Wp W p 30
i) Wn from 10/10 to 50/10 ( V DD=1.8 V ) ii) V DD from 1V to 1.8 V ( =
W n 10 )
d) i) Simulate the symmetric CMOS invertor (dc analysis)and retrieve the noise margin
ii) Verify the results with theory [Kang book, pp. 185]
In symmetric mode of operation:
Fig.1 : CMOS invertor for NOT before symbol creation Fig . 2: Symbols created in Cadence for all the logic gates.
Fig. 3: Circuit for NAND symbol Fig. 4: Circuit for NOR symbol Fig. 5: Circuit for testing the logic gate symbols
(2 pmos, 2 nmos) (2 pmos, 2 nmos) (Transient analysis: input source type : vbit)
Fig. 6: Circuit for XOR symbol (Add pins V_dd and gnd) Fig. 7: Circuit for XNOR symbol
ii) Transient analysis: To test the functionality and for calculating propagation delay(as in
exercise4), two vbit sources are the input to the symbols as shown in Fig. 5.
vdc is the dc power source for the circuit with V_dd as the value.
Note: NOT gate requires only one input vbit source(Pattern parameter data:0,1)
GATE A B
NOT V_in -
NAND (Tied input) V_in V_in
NOR (Tied input) V_in V_in
XOR V_in 0 (gnd)
V_in 1 (V_dd)
XNOR V_in 0 (gnd)
V_in 1 (V_dd)
Fig. 8: DC analysis: Tied input: NOT, NAND and NOR Fig. 9: DC analysis: NAND and NOR B input: either ground or V_dd
iii) In ADE-L, import the variables and assign initial value to V_in as 1.8 V.
iv) Select DC analysis and select the V_in source with parameter to be analysed: dc voltage
v) Save the plots and comment on the operation if it is symmetric or not.