VWV Report
VWV Report
Report on
Prinsi Khaire
Vishakha Danav
Samiksha Gedam
Guided by:
Mrs. Mrunali Nagarkar
1. Introduc on
2. Diagram
3. Explana on
4. Advantages
5. Disadvantages
6. Applica on
7. References
INTRODUCTION
A multiplexer (MUX) is a fundamental digital circuit used to select one of several input signals
and forward it to a single output line. It operates using select lines, which determine which
input is connected to the output at any given time. This functionality makes multiplexers
extremely valuable in digital systems where efficient data routing and resource sharing are
critical. A 4:1 multiplexer has four data input lines, two select lines, and one output. Depending
on the binary combination of the select lines, one of the four inputs is transmitted to the output.
In digital design, the use of hardware description languages (HDLs) like VHDL (VHSIC
Hardware Description Language) allows for modeling, simulation, and synthesis of digital
circuits before actual implementation. VHDL is widely used in academia and industry due to
its versatility and ability to describe complex systems at various levels of abstraction.
This project involves implementing a 4:1 multiplexer using VHDL. The design utilizes
behavioral modeling, where a process block and a case statement are used to assign the correct
input to the output based on the select line values. This approach not only simplifies the design
process but also makes the logic more understandable and easier to test. By simulating the
VHDL code, the correct operation of the multiplexer can be verified, demonstrating the
practical application of digital logic and the power of HDL-based design workflows.
BLOCK DIAGRAM
Two for the first level (choosing between two inputs each).
One for the second level (choosing between the outputs of the first level).
🧠 Selec on Logic
Here’s how it works:
S1 S0 Selected Input
0 0 I0
0 1 I1
1 0 !2
1 1 I3
So, we first use S0 to choose between:
I0 or I1 → Output = Out1
I2 or I3 → Output = Out2
🛠 VHDL Implementa on
Now, let’s translate the above logic into VHDL code.
✅ En ty Declara on
We declare the four inputs, two select lines, and the output:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity mux4to1_using_2to1 is
Port (
I0, I1, I2, I3 : in STD_LOGIC;
S0, S1 : in STD_LOGIC;
Y : out STD_LOGIC
);
end mux4to1_using_2to1;
We use signal variables to hold intermediate outputs (Out1 and Out2) from the first two 2:1
MUXes.
1. If S1 = 0, S0 = 0:
o Out1 = I0, Out2 = I2, so Y = Out1 = I0
2. If S1 = 0, S0 = 1:
o Out1 = I1, Out2 = I3, so Y = Out1 = I1
3. If S1 = 1, S0 = 0:
o Out1 = I0, Out2 = I2, so Y = Out2 = I2
4. If S1 = 1, S0 = 1:
o Out1 = I1, Out2 = I3, so Y = Out2 = I3
This confirms correct operation of the 4:1 MUX using three 2:1 MUXes.
ADVANTAGES
5. Logical clarity – Shows how larger circuits are derived from basics.
10. Testing equipment – Used to test multiple signals on a single output channel.
REFERENCE
1. https://www.elprocus.com/mux-working-types-and-its-applications/
2. https://www.circuitdiagram.co/circuit-diagram-of-4:1-mux/
3. https://allaboutfpga.com/vhdl-4-to-1-mux-
multiplexer/?srsltid=AfmBOoo469pSL19tiCsL4SiBJupksXu-
wxeljSYMeZt6xA7qvqxuhCCQ
4. https://surf-vhdl.com/how-to-implement-digital-mux-in-vhdl/
5. https://stackoverflow.com/questions/56068623/vhdl-for-2to1-
multiplexerhttps://stackoverflow.com/questions/56068623/vhdl-for-2to1-multiplexer
6. https://startingelectronics.org/software/VHDL-CPLD-course/tut4-multiplexers/