DC Exp
DC Exp
VARSHITHA DATE:
ROLL NO: 20EG104249 PAGE NO:
EXPERIMENT-3
VERIFY HDL CODE TO REALIZE 8 TO 1 MULTIPLEXER AND
1 TO 8 DEMULTIPLEXER.
Aim: To realize 8 to 1 Multiplexer and 1 to 8 Demultiplexer using Xilinx ISE 9.2i with Verilog
HDL Programming language.
Theory:
Mux is a device That has 2^n Input Lines. But Only One has Output Line. Where n= number of
input selector line. Mux is A device Which is used to Convert Multiple Input line into one Output
Line. At a time only one Input Line will Connect to the output line. Which Input Line Connected
In Output Line is decided by Input Selector Line.
A Demultiplexer is also called Demux or data distributor and its operation
is quite opposite to a multiplexer because it is an inverse to the multiplexer. The multiplexer is a
many-to-one circuit whereas the Demultiplexer is a one-to-many circuit. By using Demultiplexer,
the transmission of data can be done through one single input to a number of output data
lines. Multiplexers are called Data Selectors whereas Demultiplexers are Data Distributors
because they transmit similar information which is obtained at the input to various outputs.
1 to 8 Demultiplexer:
Data flow Model:
module demux(
input i,
input s0,
input s1,
input s2,
output [7:0] d );
assign d[0]=(i & ~s2 & ~s1 & ~s0);
assign d[1]=(i & ~s2 & ~s1 & ~s0);
assign d[2]=(i & ~s2 & ~s1 & s0);
assign d[3]=(i & ~s2 & s1 & ~s0);
assign d[4]=(i & ~s2 & s1 & s0);
assign d[5]=(i & s2 & ~s1 & s0);
assign d[6]=(i & s2 & s1 & ~s0);
assign d[7]=(i & s2 & s1 & s0);
endmodule
Procedure:
1. Open Xilinx Vivado software tool and click on new project.
2. Select Verilog HDL language and proceed to next.
3. Select the Constraints inputs and outputs used for design.
4. Select Zedboard. A file will be selected write the code and save the file.
5. Check for errors, if any correct them.
6. Now add a source file for writing test bench code.
7. Write Test bench code and run synthesis.
8. Now run behavioral simulation for output waveform.
Applications:
1.MUX is used for Multiple Data Transfer at Long Distance.
2.MUX is used to make Complected Circuit.
3.Demultiplexers are used in control systems, microprocessors to enable or select a single signal
from a number of signal.
4.Demux is used to choose several IO devices’ data routing.
Result: 8 to 1 Multiplexer and 1 to 8 Demultiplexer using Verilog HDL is realized in Xilinx ISE 9.2i
Software tool.
Output:(8 to 1 Multiplexer)
1 to 8 Demultiplexer: