Professional Documents
Culture Documents
Aim: - Design CMOS logic using EDA for 3 input NAND and NOR gate.
Theory: -
NAND gate:
This is a NOT-AND gate which is equal to an AND gate followed by a NOT gate. The
outputs of all NAND gates are high if any of the inputs are low. The symbol is an AND
gate with a small circle on the output. The small circle represents inversion.
Fig5.1
Fig5.2
Notice how transistors Q1 and Q3 resemble the series-connected complementary pair from
the inverter circuit. Both are controlled by the same input signal (input A), the upper
transistor turning off and the lower transistor turning on when the input is "high" (1), and
vice versa. Notice also how transistors Q 2 and Q4 are similarly controlled by the same
input signal (input B), and how they will also exhibit the same on/off behavior for the
same input logic levels. The upper transistors of both pairs (Q 1 and Q2) have their source
and drain terminals paralleled, while the lower transistors (Q 3 and Q4) are series-
connected. What this means is that the output will go "high" (1) if either top transistor
saturates, and will go "low" (0) only if both lower transistors saturate. The following
sequence of illustrations shows the behavior of this NAND gate for all four possibilities
of input logic levels (00, 01, 10, and 11):
Fig5.3
NOR gate:
This is a NOT-OR gate which is equal to an OR gate followed by a NOT gate. The
outputs of all NOR gates are low if any of the inputs are high.
The symbol is an OR gate with a small circle on the output. The small circle represents
inversion.
Fig5.4
A CMOS NOR gate circuit uses four MOSFETs just like the NAND gate, except that its
transistors are differently arranged. Instead of two paralleled sourcing (upper) transistors
connected to Vdd and two series-connected sinking (lower) transistors connected to
ground, the NOR gate uses two series-connected sourcing transistors and two parallel-
connected sinking transistors like this:
Fig5.5
T-SPICE CODE
* SIMULATION STATISTICS:
* DC operating point
* Total DC operating points =1
* Total Newton iterations = 341
* Total Current evaluations = 3831
* Transient analysis
* Transient timesteps = 158
* Successful timesteps = 148
* Failed timesteps = 10
* Newton non-convergence failures = 10
* Delta voltage (dv) failures =0
* Newton iterations = 525
* Successful Newton iterations = 415
* Failed Newton iterations = 110
* Average Newton iterations/timestep = 3.323
* Average Newton iterations/success = 2.804
* Current evaluations = 1475
* Matrix statistics: OP TRAN
* Matrix factors 341 525
* Matrix solves 341 525
* Size 3 3
* Initial elements 7 7
* Final elements 7 7
* Fill-ins 0 0
* Initial density 77.78% 77.78%
* Final density 77.78% 77.78%
* Total matrix factorizations = 866
* Total matrix-vector solves = 866
* Total matrix solve time (seconds) = 0
* T-Spice process times
* Newton solver 1.31 seconds
* Current evaluations 0.75 seconds
* Jacobian construction 0.56 seconds
* Linear solver 0.00 seconds
Parsing 0.02 seconds
Setup 0.00 seconds
DC operating point 0.86 seconds
Transient Analysis 0.47 seconds
Overhead 0.00 seconds
-----------------------------------------
Total 1.34 seconds
* SIMULATION STATISTICS:
* DC operating point
* Total DC operating points =1
* Total Newton iterations = 385
* Total Current evaluations = 5354
* Transient analysis
* Transient timesteps = 145
* Successful timesteps = 140
* Failed timesteps =5
* Newton non-convergence failures = 5
* Delta voltage (dv) failures =0
* Newton iterations = 390
* Successful Newton iterations = 335
* Failed Newton iterations = 55
* Average Newton iterations/timestep = 2.690
* Average Newton iterations/success = 2.393
* Current evaluations = 680
* Matrix statistics: OP TRAN
* Matrix factors 385 390
* Matrix solves 385 390
* Size 3 3
* Initial elements 7 7
* Final elements 7 7
* Fill-ins 0 0
* Initial density 82.57% 77.78%
* Final density 82.57% 77.78%
* Total matrix factorizations = 775
* Total matrix-vector solves = 775
* Total matrix solve time (seconds) = 0
* T-Spice process times
* Newton solver 1.40 seconds
* Current evaluations 0.95 seconds
* Jacobian construction 0.45 seconds
* Linear solver 0.00 seconds
*
Parsing 0.01 seconds
Setup 0.00 seconds
DC operating point 1.19 seconds
Transient Analysis 0.22 seconds
Overhead 0.00 seconds
-----------------------------------------
Total 1.42 seconds
Simulation completed with 6 Warnings
Viva Questions:-