You are on page 1of 1

Digital Logic Design Lab

TASK – III

1. A staircase light is controlled by two switches one at the top of the stairs and another
at the bottom of stairs. The light is ON, when only one of the two switches is on.
a) Make a truth table for this system.
b) Write the logic in SOP and POS form.
c) Realize the circuit using Decoder.
d) Write the structural Verilog code for the circuit.
e) Verify the circuit design using Testbench.

2. An 8x1 Multiplexer has the inputs A, B, C connected to the selection inputs S2,S1 and
S0 respectively. The data inputs are I1 = I2 = 0; I3 = I7 = 1; I4 = I5 = D and I0 = I6 = D’.
Determine the Boolean function that the multiplexer implements.
a. Write the Truth table for the output function
b. Write the Behavioural Verilog code for 2:1 Mux
c. Implement the above circuit using 2:1 Mux and primitive gates.
d. Verify the circuit design using Testbench

Note: Following sections should be written for every tasks in the LAB record

1. Aim
2. Truth Table, K-map, Boolean expression, Circuit Diagram(Whichever is applicable)
3. Verilog code(Design and Testbench)
4. Output(Snapshot of the wave window and transcript window)
5. Inference

You might also like