Lab5 - Introduction To HDL
Lab5 - Introduction To HDL
PURPOSE
This lab elaborates the usage of the Xilinx ISE Design Suite for Verilog HDL design.
PRELAB
(1) Write the truth table for a Half Adder circuit. Obtain the output equations for it and draw its
logic circuit diagram accordingly.
Draw a logic circuit diagram for this function using AND, OR and NOT gates. Assume that
complemented inputs are NOT available so S must be generated explicitly by your circuit. There is
no need to use the Xilinx ISE Design Suite at this time.
EXPERIMENT
(1) The Lab Instructor will demonstrate the usage of the Xilinx ISE Design Suite to you. Make
sure you understand the demonstration. Please see the attached HDL Tutorial.
(2) Using Xilinx ISE Design Suite, create a module mux_2to1 according to the wire connection
you have drawn in the circuit diagram from Pre-Lab (2). Create a test bench module mux_2to1_tb
to simulate the mux_2to1 module. Run simulation, testing all combinations of the inputs, S, I0 and
I1. Write down your results in the form of a truth table, and create the timing diagram from Xilinx
ISE Design Suite using ‘Simulate Behavioral Model’ under ISim Simulator of the process window.
Save your files in a pen-drive. Print a copy of your circuit (i.e. design module and test bench
module) and timing diagram.
(3) Perform the similar tasks for Half Adder as done in Pre-Lab (1).
FINAL REPORT: All that is required for this Lab is your Verilog modules and timing diagram
printouts.