You are on page 1of 6

Submitted by

M Aman Usman Haider


Submitted to
SIR Waqar
Reg No#
FA19-BCS-090
Subject
Digital logic design
Make a Decoder/De-Multiplexer using NAND Gates only
LAB Tasks-Part-1

Make SR, D and JK flip-flop using NOR gates only


LAB Tasks-Part-2
JK flip flop
Sr flip Flop

D flip Flop

Make a 3-Bit comparator with truth table as well


A comparator that compares two binary numbers (each
number having 3 bits) and produces three outputs
based on the relative magnitudes of given binary bits is
called a 3-bit magnitude comparator. 3-bit magnitude.
The equal functions are A0 = B0, A1= B1, A2 = B2.
LAB Tasks-Part-3
Truth Table
INPUT OUTPUT

A2 A1 A0 B2 B1 B0 A>B A=B A<B

0 0 0 0 0 0 0 1 0
0 0 0 0 0 1 0 0 1
0 0 0 0 1 0 0 0 1
0 0 0 0 1 1 0 0 1
0 0 0 1 0 0 0 0 0
0 0 0 1 0 1 0 1 0
0 0 0 1 1 0 0 0 1
0 0 0 1 1 1 0 0 1
1 1 1 0 0 0 1 0 0
1 1 1 0 0 1 1 0 0
1 1 1 0 1 0 1 0 0
1 1 1 0 1 1 1 0 0
1 1 1 1 0 0 1 0 0
1 1 1 1 0 1 1 0 0
1 1 1 1 1 0 1 0 0
1 1 1 1 1 1 0 0 1

You might also like