Design and Simulation of 2:1 Mux Using Multiple Logic Gates
Design and Simulation of 2:1 Mux Using Multiple Logic Gates
CHAPTER 1
1.1 INTRODUCTION
MUX is a data selector that selects one of several analog or digital input
signals and forwards the selected input into a single output line. A multiplexer of 2𝑛
inputs has n select lines, which are used to select which input line to send to the
output. 2:1 MUX is a basic block of the “switch logic” .It has two input lines D0 and
D1, one select line S and one output line. The truth table of 2:1 MUX is given in
Table I; the logic function is
Y=𝑆̅.𝐷0 + S. 𝐷1
Static CMOS circuit is used in various logic gates in integrated circuits. These
are designed with complementary nMOS Pull-Down network and pmos Pull Up
network. They have simple design; hence they are insensitive to variations, good
noise margins, fast operating speed and low power. Nevertheless, performance or area
constraints occasionally dictate the need for other circuit families and the most
important alternate is dynamic circuits.
Dynamic circuit uses simple sequential circuits along with memory functions.
It is dependent on temporary storage of charges in parasitic node capacitance.
Dynamic circuits require less over conventional Static Logic circuits. Thus these
circuits have gained a widespread use .It also uses a sequence of Precharge and
Evaluation Phases governed by the clock to recognize complex logic functions.
Complementary metal–oxide–semiconductor (CMOS) is a technology for
constructing integrated circuits, and is a form of MOSFET (metal–oxide–
semiconductor field-effect transistor) semiconductor. CMOS technology is used in
microprocessors, microcontrollers, static RAM, and other digital logic circuits.
CMOS technology is also used for several analog circuits such as image sensors
(CMOS sensor), data converters, and highly integrated transceivers for many types of
Department of ECE, MRITS 1
Design and simulation of 2:1 mux using multiple logic gates
Power and delay are the two parameters which are considered primarily.
1.3 MOTIVATION
The main motive of this research is to achieve less power dissipation and
better performance. The implementation of multiplexer by incorporating different
logic styles can analyse the power consumption and delay. This in turn will enhance
the performance of the multiplexer.
1.4 OBJECTIVE
The main objective of this project is to design 2:1 multiplexer using multiple
logic families using Mentor Graphics in 180nm technology.
Power consumption and Propagation delay are the two important parameters.
So we need to have designs which take these two parameters into account. Static
cmos and domino logic techniques were used to compare the performance of cmos in
180nm technology.
CHAPTER 2
LITERATURE SURVEY
2.1 INTRODUCTION
In this chapter literature survey of the project is discussed.
technology as it has features like small size, low cost, high operating speed and low
power. The performance analysis of the MUX using various CMOS logic families are
conducted using VLSI back-hand tool: CADENCE VIRTUOSO SCHEMATIC
EDITOR 6.1 at 180nm. The results obtained show that, the Domino logic based 2:1
MUX is the most efficient design because the average power consumption is 20.06%
and PDP(Power Delay Product) is 20.1% lesser than that of other logic families. But
trade-offs are inferred between Domino logic and Static CMOS logic which can be
neglected on considering the overall performance. Since the Domino logic
outperforms the other logic families, this work suggests that any higher level MUX
with low power-delay and PDP can be achieved using Domino logic[2].
Dynamic gates are imperative for constructing wide high speed Processors,
DRAMs, SRAMs etc. But the design and operation are however, more engage and
prone to failure due to lack of design automation, a decreased tolerance to noise and
enhanced power dissipation. Thus domino logic circuit techniques are extensively
applied in high performance microprocessors due to superior speed and area
characteristics. Wide fan-in footless domino OR gate has been selected which controls
the degradation in speed for design and analysis work.
The name Domino comes from the behavior of a chain of the logic gates. It is
a non–inverting structure. It runs 1.5-2 times faster than static logic circuits. It is
simply a logic which permits high-speed operation and enables the implementation of
complex functions which otherwise is not achieved by Static and Dynamic circuits.
Domino logic offers a simple technique to eliminate the need of complex clocking
scheme by utilizing a single phase clock and have no static power consumption as it is
removed by clock input in the first stage. These logic circuits are glitch free, have fast
switching threshold and possibility to cascade. Domino circuits employ a dual-phase
dynamic logic style with each clock cycle divided into a Precharge and an Evaluation
phase[3].
Very-large-scale integration (VLSI) is the technology of an integrated circuit
(IC) by combining thousands of transistors into a single chip. It is the design of
extremely small, complex circuitry with the help of semiconductor material. It may
contain millions of transistors on a single chip is known as Integrated circuit (IC).
VLSI technology is based on Moore's law. According to the Moore’s law number of
transistors in a dense integrated circuit doubles approximately every eighteen months.
logic. Various CMOS logics are considered to identity the best logic family suitable to
design higher level of MUX. In this chapter literature survey was discussed.
CHAPTER 3
3.1 INTRODUCTION
In the previous chapter, literature survey of the project was discussed. In this
chapter, MULTIPLEXER, CMOS, PMOS, NMOS, characteristics of CMOS,
applications of CMOS, Types of CMOS and Inverter are discussed.
3.2 MULTIPLEXER
Multiplexer is a combinational circuit that has multiple inputs and a single line
output. The select lines determine which input is connected to the output, and also to
increase the amount of data that can be sent over a network within certain time. It is
also called a data selector. .
The single pole multi-position switch is a simple example of non-electronic
circuit of multiplexer, and it is widely used in many electronic circuits. The
multiplexer is used to perform high-speed switching and is constructed by electronic
components.
Multiplexers are capable of handling both analog and digital applications. In
analog applications, multiplexers are made up of relays and transistor switches,
whereas in digital applications, the multiplexers are built from standard logic gates.
When the multiplexer is used for digital applications, it is called a digital multiplexer.
3.5 CMOS
CMOS technology is one of the most popular technology in the computer chip
design industry and broadly used today to form integrated circuits in numerous and
varied applications. Today’s computer memories, CPUs and cell phones make use of
this technology due to several key advantages. This technology makes use of both P
channel and N channel semiconductor devices.
The main advantage of CMOS over NMOS and BIPOLAR technology is the
much smaller power dissipation. Unlike NMOS or BIPOLAR circuits, a
Complementary MOS circuit has almost no static power dissipation. Power is only
dissipated in case the circuit actually switches. This allows integrating more CMOS
gates on an IC than in NMOS or bipolar technology, resulting in much better
performance. Complementary Metal Oxide Semiconductor transistor consists of P-
channel MOS (PMOS) and N-channel MOS (NMOS). The CMOS transistor diagram
is shown in the figure 3.2.
3.6 NMOS
NMOS is built on a p-type substrate with n-type source and drain diffused on
it. In NMOS, the majority carriers are electrons. When a high voltage is applied to the
Department of ECE, MRITS 10
Design and simulation of 2:1 mux using multiple logic gates
gate, the NMOS will conduct. Similarly, when a low voltage is applied to the gate,
NMOS will not conduct. NMOS are considered to be faster than PMOS, since the
carriers in NMOS, which are electrons, travel twice as fast as the holes. The NMOS
transistor is as shown in the figure 3.3.
3.7 PMOS
In CMOS technology, both N-type and P-type transistors are used to design
logic functions. The same signal which turns ON a transistor of one type is used to
turn OFF a transistor of the other type. This characteristic allows the design of logic
devices using only simple switches, without the need for a pull-up resistor.
In CMOS logic gates a collection of n-type MOSFETs is arranged in a pull-
down network between the output and the low voltage power supply rail .Instead of
the load resistor of NMOS logic gates, CMOS logicgates have a collection of p-type
MOSFETs in a pull-up network between the output and the higher-voltage rail (often
named Vdd).
Thus, if both a p-type and n-type transistor have their gates connected to the
same input, the p-type MOSFET will be ON when the n-type MOSFET is OFF, and
vice-versa. The networks are arranged such that one is ON and the other OFF for any
input pattern as shown in the figure 3.5.
Figure: 3.5 CMOS Logic Gate using Pull-Up and Pull-Down Networks
CMOS offers relatively high speed, low power dissipation, high noise
margins in both states, and will operate over a wide range of source and input voltages
(provided the source voltage is fixed). Furthermore, for the better understanding of the
The inverter circuit as shown in the figure 3.6. It consists of PMOS and
NMOS FET. The input A serves as the gate voltage for both transistors.
The NMOS enhancement mode transistor has an input from Vss (ground) and
PMOS transistor has an input from Vdd. The terminal Y is output. When a high
voltage (~ Vdd) is given at input terminal (A) of the inverter, the PMOS becomes
open circuit and NMOS switched OFF so the output will be pulled down to Vss.
When a low-level voltage (<Vdd, ~0v) applied to the inverter, the NMOS
switched OFF and PMOS switched ON. So the output becomes Vdd or the circuit is
pulled up to Vdd. The truth table of CMOS inverter is as shown in the table 3.2.
Truth Table 3.2: CMOS inverter
INPUT LOGIC INPUT OUTPUT LOGIC OUTPUT
0v 0 Vdd 1
Vdd 1 0v 0
and the most important alternative is dynamic circuits. The static is as shown in the
figure 3.7.
a. recharge Phase
When clock signal (Φ) = 0, the output node Out is precharged to VDD by the
PMOS transistor Mp and the evaluate NMOS transistor remains off, so that the pull-
down path is disabled.
b. Evaluation Phase
In the PDN when clock signal (Φ) = 1, the pre-charge transistor Mp is OFF,
and the evaluation transistor Me is turned ON. Both the circuit families have different
types of logics. Considering the above mentioned features, static CMOS logic and
pseudo NMOS are chosen from static circuits and Domino and Dual Rail logic are
selected from dynamic circuits, for the implementation of a MUX. There is wide
scope for research in the field of CMOS logic families in spite of many designs
proposed till date .
Very-large-scale integration (VLSI) is the technology that provides a
platform in designing a complex circuitry even with millions of transistors in an
extremely small space on a single chip known as Integrated circuit (IC) . Reduced
size, fast operating speed, high reliability and reduced area are the advantages of
VLSI. Thus this entire work is implemented using a VLSI back-end tool, to
determine the performance metrics of various CMOS logic families.
3.13 CONCLUSION
In this chapter, MULTIPLEXER, CMOS, PMOS, NMOS, Inverter,
characteristics of CMOS, applications of CMOS and Types of CMOS and are
discussed.
CHAPTER 4
IMPLEMENATION OF 2:1 MULTIPLEXER USING
MULTIPLE LOGIC FAMILIES
4.1 INTRODUCTION
In the previous chapter topics like MULTIPLEXER, CMOS, PMOS, NMOS,
Inverter, characteristics of CMOS, applications of CMOS and Types of CMOS and
are discussed.
In this chapter topics like STATIC CMOS LOGIC, PSEUDO NMOS LOGIC,
DUAL RAIL DOMINO LOGIC, DOMINO LOGIC are discussed.
4.2 STATIC CMOS LOGIC
Static CMOS Logic is constructed with the help of a PUN and a PDN .The
function of the PUN is to provide a connection between the output and VDD when
the output of the logic gate is supposed to be 1. Similarly, the PDN connects the
output to ground when the output is expected to be 0. The PUN and PDN networks
are constructed in a mutually exclusive manner such that either PDN or PUN is
conducting in steady state. One of the major advantages of Static CMOS logic is that
they have zero quiescent power dissipation, where for any applied input state either
the PUN or the PDN remains off. The problem with this type of implementation is
that more area is required in implementing logics. This has an impact on the
capacitance and thus the speed of the gate. The Static CMOS Logic is as shown in the
figure 4.1.
dynamic gate the inputs must be monotonically raising for the dynamic gate to
compute the correct function .To overcome this monotonicity problem Domino logic
was used.
4.7 CONCLUSION
In this chapter topics like STATIC CMOS LOGIC, PSEUDO NMOS LOGIC,
DUAL RAIL DOMINO LOGIC, DOMINO LOGIC are discussed.
CHAPTER 5
RESULTS AND DISCUSSIONS
5.1 INTRODUCTION
In this chapter all the test bench circuits and output waveforms related to the
project are discussed.
5.2 MULTIPLEXER
Multiplexer can be designed by
a. Static CMOS
b. Pseudo NMOS
c. Domino logic
d. Dual rail domino
5.2.1 STATIC CMOS
The information shown in the Figure 5.1 gives the information about static
CMOS test bench waveform. In this V(A) represents input a, V(B) represents input b,
V(S) represents the selection line s, V (O) represents the output of multiplexer. Two
inputs a and b are provided and based upon the selection line s the output will be
obtained.
Three inputs D0, D1 and selection line S are provided. When clock is low,
circuit is in Pre-charge phase, during the precharge phase (when clock= 0), the output
node of the pMOS stage is Pre charged to a high logic level, and the output of the
nMOS stage becomes low. When clock is high, circuit enters into the evaluation
phase and corresponding logic Function is performed in this phase. During the
evaluation phase, depending on the select lines S0 and S1, any one of the specified
operation is selected and corresponding output is obtained. If we consider s=0 and the
inputs D0=0 and D1=1 then the output generated will be 1 and if we consider s=1 and
the inputs D0=1 and D1=0 then the output generated will be 0.
S A B O
0 0 0 0
0 0 1 1
1 1 0 1
1 1 1 1
5.4 CONCLUSION
In this chapter introduction, simulation of multiplexer of multiple logic
families using 180nm technology, comparison table were discussed briefly.
CHAPTER 6
CONCLUSION AND FUTURE SCOPE
6.1 CONCLUSION
A 2:1 MUX is implemented using various CMOS logic families and it’s
performance metrics are analyzed. It is clearly inferred that, 2:1 MUX designed using
domino logic is the most efficient design because the reduction in average power
consumption and PDP compared to all the other logic families and the propagation
delay is also lesser, but there are trade-off between Domino logic and Static CMOS
logic which can be neglected on considering the overall performance. Thus the overall
analysis proves that power and delay efficient MUX can be designed using the
domino logic which out performs all the other logic families. The significance of a
Multiplexer is that it can be used in Parallel to Serial convertor to reduce wide parallel
busses to serial signals in the field of Telecommunication, Data communication,
Satellite and Military applications. Therefore, based on all the performance analysis
made in this work it is proved that MUX designed using Domino logic can be used in
various applications to obtain better performance.
6.2 FUTURE SCOPE
The design analysis of various CMOS logic families is observed. We used
180nm technology for reducing power dissipation and delay, which can further be
reduced by designing using 90nm and 45nm technology.
REFERENCES
[1] Neil H. E. Weste and David Money Harris, “CMOS VLSI Design A Circuits
and System Perspective”, Pearson Education (Asia) Pvt. Ltd.2000.
[2] M. Padmaja, V.N.V. Satya Prakash, “Design of multiplexer in multiple logic
styles for low power VLSI”, International Journal of Computer Trends and
Technology – volume 3 Issue 3 – 2012.
[3] Gurjeet Kaur, Gurmohan Singh, “Analysis of low power CMOS current
comparison domino logic circuits in ultra deep submicron technologies,”
International Journal of Computer Applications (0975 – 8887), February 2014,
Volume 88 – No.7.
[4] Priti Gupta , Rajesh Mehra, “Layout design and simulation of CMOS
multiplexer,” International Journal of Scientific Research Engineering
&Technology(IJSRET),14-15 March,2015
[5] Mohit Vyas, Soumya Kanti Manna, Shyam Akashe, “Design of Power
efficient MUX using dual gate FinFET technology,” IEEE Conference, 2016.
APPENDIX
PROCEDURE FOR MENTOR GRAPHICS
Introduction
This document gives a rough overview of how to design & simulate things with
Mentor graphics Tools. There are eight basic steps:
1. Invoking Mentor Graphics
2. Creating Library & Cell
3. Creating Schematic
4. Generating Symbol
5. Creating Test bench
6. Simulating the Schematic
7. Waveform Comparison
First of all we will open the linex os then the view will be Right click in the
linex window Desktop and click on open in terminal
Type da_ic& and press enter then pyxis project manager window will be invoked
as shown below.
Where the project navigator window is shown then click on the file To create a new
project click on File → new project which invokes the new project window as shown
Browse on the folder and specify the project path and the file name is user defined
and click on OK
Department of ECE, MRITS 32
Design and simulation of 2:1 mux using multiple logic gates
After libraries have to be added to the project. In order to add the technology files
browse on the folder
Browse the folder to
home/softwares/FOUNDRY/GDK/PYSIS_SPT_HEP/ic_reflibs/tech_libs and
Select the generic13 file click on OK.
Then the pyxis project manager window will be shown where the technology libraries
are added to the project and are placed below the project name
Then a new library window will pop up asking for the library name. Then name the
Library and click on OK.
To create a cell right click on the library and select new cell Or click on the icon on
the icon bar
Then a new cell window will pop up asking for the cell name. Then name the
Cell and click on OK.
To create a schematic right click on the and select new schematic or click on the icon
on the icon bar
Then a new schematic window will pop up asking for the schematic name. Then name
the schematic and click on OK
Now name the schematic and click on OK which in turn leads to the pyxis schematic
editor window as shown
3.Creating Schematic:
In this section you will become familiar with placing primitive analog devices
for an inverter.
You’ll learn how to:
• Place primitives on the schematic
• select and manipulate devices
• customizing hotkeys for placing devices
• Route devices
• edit device parameter values
• Name instances
• check and save the schematic
• create upper hierarchical symbols
• create test bench
• simulate using Eldo
• view results.
Then a file browser which contains entire libraries will pop up as shown
And then follow the path to select pmos from $generic13/symbols/pmos as shown
Select the pmos and click on OK to place the pmos on the workspace as shown
Then change the width and length of the pmos device can change by using object
Editor.
Select the nmos and click on OK to place the nmos on the workspace as shown
To select the VDD and ground from the generic lib or click on the library in the layer
palatte window then layer palatte will be shown as ic library window. Then select
generic library and place VDD and ground
After selecting the generic lib we use the VDD and ground to pick and place in the
required locations
Give the connects in between the VDD to pmos and ground to nmos and both pmos &
nmos gates and, source and drain of p & nmos devices
Department of ECE, MRITS 42
Design and simulation of 2:1 mux using multiple logic gates
Place in IN and OUT ports in a similar way as above from the generic library or click
on the add ports icon in the left icon bar and connect the circuit.
To change the name, enter the name in the field given for the net name and press
enter. Then the schematic will be as shown.
4.
4.Generating Symbol:
To generate a symbol select Add in the menu bar and then select generate
Symbol from pull down menu bar
Add→ generate symbol
Then activates symbol, replace existing and choose shape and click on the customize
pin list and click on OK symbol will be generate.
The chick and save is an impotence to shown the result to an window which shows
the error report where the errors and warnings in the symbol can be seen
Then a new cell window will pop up asking for the cell name in which give the cell
name and click OK Here the test bench cell name has been specified as inv_tb.
Right click on the test bench cell and select new schematic which in turn opens pyxis
Schematic editor window.
Now instantiate the new inverter symbol by selecting Add > Instance from
the Left icon Palette or pressing the hot key i. Select the Symbol view of the inverter
cell from the inv cell of the manual library
Place the symbol on the work space as shown
• Add the IN and OUT net as before by selecting the hot key i. Name the nets with
hot key “q”.
This will result to an window which shows the error report where the errors and
warnings in the symbol can be seen.
After chick and save the schematic test bench then run simulation from this icon
Then entering simulation mode window will be popup in that select New
Configuration
In the New Configuration select SPICE Netlister and type sim in the configuration
name and click on OK
Go for selecting AC, DC, TRAN then setup simulation window will be open
After appearing setup window select To set up analysis select analysis in the
simulation panel and in the analysis set up select the required analysis and set the
values of the analysis in the beside window as shown above
Department of ECE, MRITS 53
Design and simulation of 2:1 mux using multiple logic gates
Here I have selected the DC analysis with the start time as 0ns,stop time=5 ns and
print time step=0.1ns as shown . After specifying the values click on apply
Here I have selected the transient analysis with the stop time=1000ns After specifying
the values click on apply
Go back to the inverter schematic test bench and select the IN, OUT and come back
to the setup simulation
In the setup simulation window, set the analysis to both DC and Tran, and Task to
plot and type to voltage, click Add button then the port will be added to the waveform
as shown
Department of ECE, MRITS 55
Design and simulation of 2:1 mux using multiple logic gates
After adding the analysis, eldo models and probing waveforms minimize the setup
Simulation window and run the simulator. To run the simulation select
from the left icon palette or select simulate-> run simulation
7. Waveform comparison
View the simulation results by selecting the plot results from latest run icon from the
left icon palatte. This will open EZ Wave for you with the output waveforms. This is
how the waveforms look like after zooming
EZ wave 12.1 production window popup to the view of waveform for IN & OUT