Professional Documents
Culture Documents
Home Assignment No-4 (CLO3) : School of Electrical Engineering and Computer Science
Home Assignment No-4 (CLO3) : School of Electrical Engineering and Computer Science
Home Assignment No-4 (CLO3) : School of Electrical Engineering and Computer Science
No card inserted 0 0
Design the logic circuit for this simple security system. Your circuit inputs
will consist of a card code AB, and a keypad code CDE. The circuit will
have three outputs XYZ (if X or Y=1, door1 or 2 will be opened; if Z=1, the
alarm will sound).
Problem No-2 Design a circuit that either Adds 5 or subtracts 5 from a 4-bit binary
number N. Let the inputs N3, N2, N1, N0 represent N. The input K is a
control signal. The circuit should have outputs M3, M2, M1, M0, which
represent the 4-bit number M. When K=0, M=N+5. When K=1, M=N-5.
Assume that the inputs for which M>11112 or M˂02 will never occur.
a. Implement your design with one 4-bit Binary Adder, one Quad 2-1
Multiplexer and NOT gates as required. Also design a circuit for error
E display in case any invalid combination occurs.
b. Implement the functions M3 and M2 with a 5:32 decoder constructed
from four 3:8 decoders with enable input E, one 2:4 decoder, and an
external OR gate with a large fan-in.
c. Realize the function M1 with a single 8-to-1 MUX. Take K, N3, N2 as
selection inputs. Remember that K is the most-significant variable in
the truth table.
d. Realize the function M0 with four three-state buffers, one 2:4
decoder, and other logic gates as required. Take N1, N0 as decoder
inputs.
Note: Use blocks for Decoders/De-multiplexers and Multiplexers (internal
schematics not required)
______________________________________________________________________
“Stay Home, Stay Safe”