Professional Documents
Culture Documents
Bachelor of Technology
in
Electronics and Communication Engineering
by
Course Coordinator
Dr. Mohit Joshi
september 2021
Copyright © The LNMIIT 2021
All Rights Reserved
Contents
Chapter Page
1 Experiment - 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Aim: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2.1 2x1 MUX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2.2 4x1 MUX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2.3 8x1 MUX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Coding Techniques used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Simulation and Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4.1 2x1 multiplexer using dataflow modeling. . . . . . . . . . . . . . . . . . . . . 2
1.4.2 2x1 multiplexer using behavioral modeling. . . . . . . . . . . . . . . . . . . . 5
1.4.3 4x1 multiplexer using data flow modeling. . . . . . . . . . . . . . . . . . . . . 8
1.4.4 4x1 multiplexer using structural modeling(using only 2x1 MUX). . . . . . . . 11
1.4.5 8x1 MUX using structural modeling and using 4x1 and 2x1 MUX. . . . . . . . 14
1.4.6 Comparison the power and cell usage in all 4 different implementation. . . . . 17
iii
Chapter 1
Experiment - 3
[9:28 PM, 9/15/2021] Anuj Gupta : koi na bhej [9:31 PM, 9/15/2021] Ayush Jain Lnmiit:
1.1 Aim:
Implementation of 2x1, 4x1 and 8x1 multiplexers using dataflow, behavioral and structural modeling
in VHDL.
1.2 Theory
Multiplexers also denoted as MUX are the combinational circuits that take many inputs and produces
single output. The number of input lines depends on the select lines. If a MUX has n select lines than
number of input lines will be 2n .Hence there are 2n input combinations possible.
There is only one select line(S) and no. of input lines thus is 21 = 2(I0,I1). Below is the truth table
for 2x1 MUX . Thus logical expression for output is , Y = S’.I0 + S.I1
S Output(Y)
0 I0
1 I1
There are 2 select line(S0,S1) and no. of input lines thus is 22 = 4(I0,I1,I2,I3). Below is the truth table
for 4x1 MUX . Thus logical expression for output is , Y = (S0’.S1’.I0)+(S0.S1’.I1)+(S0’.S1.I2)+(S0.S1.I3)
1
S1 S0 Output(Y)
0 0 I0
0 1 I1
1 0 I2
1 1 I3
S2 S1 S0 Output(Y)
0 0 0 I0
0 0 1 I1
0 1 0 I2
0 1 1 I3
1 0 0 I4
1 0 1 I5
1 1 0 I6
1 1 1 I7
2
Figure 1.1 Schematic of 2x1 multiplexer using dataflow modeling.
3
Figure 1.3 VHDL Code of 2x1 multiplexer using dataflow modeling.
4
1.4.2 2x1 multiplexer using behavioral modeling.
5
Figure 1.6 Project Summary of 2x1 multiplexer using behavioral modeling.
6
Figure 1.8 Simulation of 2x1 multiplexer using behavioral modeling.
7
1.4.3 4x1 multiplexer using data flow modeling.
8
Figure 1.10 Project Summary of 4x1 multiplexer using data flow modeling.
Figure 1.11 VHDL Code of 4x1 multiplexer using data flow modeling.
9
Figure 1.12 Simulation of 4x1 multiplexer using data flow modeling.
10
1.4.4 4x1 multiplexer using structural modeling(using only 2x1 MUX).
11
Figure 1.14 Project Summary of 4x1 multiplexer using structural modeling.
12
Figure 1.16 Simulation of 4x1 multiplexer using structural modeling.
13
1.4.5 8x1 MUX using structural modeling and using 4x1 and 2x1 MUX.
14
Figure 1.18 Project Summary of 8x1 multiplexer using structural modeling.
15
Figure 1.20 Simulation of 8x1 multiplexer using structural modeling.
16
1.4.6 Comparison the power and cell usage in all 4 different implementation.
17