Professional Documents
Culture Documents
Cse Digital - Manual
Cse Digital - Manual
CS 2207
DIGITAL LABORATORY
(Common to CSE & IT)
LIST OF EXPERIMENTS
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No.
LIST OF EXPERIMENTS
1. Verification of Boolean Theorems using logic gates.
2. Design and implementation of combinational circuits using basic
gates for the given arbitrary function.
3. Design and implementation of code converters using logic gates
.c
o
sp
ot
and
implementation
Magnitude
Comparator
using
ve
logic gates
si
6.
of
.b
l
5.
og
cl
u
ee
logic gates
ex
.e
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No.
PAGE
NO
MARKS
SIGNATURE
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
DATE
EXP.
NO
INDEX
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No.
EXPT NO. :
DATE
:
AIM:
.c
o
.b
l
og
SPECIFICATION QTY
IC 7408
1
IC 7432
1
IC 7404
1
IC 7400
1
IC 7402
1
IC 7486
1
IC 7410
1
1
14
.e
ee
ex
cl
u
si
ve
SL No.
COMPONENT
1. AND GATE
2. OR GATE
3. NOT GATE
4. NAND GATE 2 I/P
5. NOR GATE
6. X-OR GATE
7. NAND GATE 3 I/P
8. IC TRAINER KIT
9. PATCH CORD
sp
ot
APPARATUS REQUIRED:
THEORY:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No.
Circuit that takes the logical decision and the process are called logic
gates. Each gate has one or more input and only one output.
OR, AND and NOT are basic gates. NAND, NOR and X-OR are
known as universal gates. Basic gates form these gates.
AND GATE:
The AND gate performs a logical multiplication commonly known as
.c
o
sp
ot
AND function. The output is high when both the inputs are high. The output
og
OR GATE:
ve
.b
l
si
function. The output is high when any one of the inputs is high. The output
ex
cl
u
ee
NOT GATE:
.e
The NOT gate is called an inverter. The output is high when the
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No.
.c
o
PROCEDURE:
(i)
Connections are given as per circuit diagram.
(iii)
sp
ot
(ii)
.b
l
og
AND GATE:
PIN DIAGRAM:
.e
ee
ex
cl
u
si
ve
SYMBOL:
OR GATE:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No.
m
.c
o
sp
ot
og
.b
l
ve
si
NOT GATE:
PIN DIAGRAM:
.e
ee
ex
cl
u
SYMBOL:
X-OR GATE :
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No.
PIN DIAGRAM :
ve
.b
l
og
sp
ot
.c
o
SYMBOL :
si
PIN DIAGRAM:
.e
ee
ex
cl
u
SYMBOL:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No.
ve
.b
l
og
sp
ot
.c
o
.e
ee
ex
cl
u
si
NOR GATE:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No.
.b
l
og
sp
ot
.c
o
RESULT:
si
cl
u
DATE
ve
EXPT NO. :
ex
AIM:
ee
To design and construct half adder, full adder, half subtractor and full
.e
subtractor circuits and verify the truth table using logic gates.
APPARATUS REQUIRED:
Sl.No.
1.
2.
3.
4.
3.
4.
COMPONENT
AND GATE
X-OR GATE
NOT GATE
OR GATE
IC TRAINER KIT
PATCH CORDS
SPECIFICATION QTY.
IC 7408
1
IC 7486
1
IC 7404
1
IC 7432
1
1
23
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 10
THEORY:
HALF ADDER:
A half adder has two inputs for the two bits to be added and two
outputs one from the sum S and other from the carry c into the higher
adder position. Above circuit is called as a carry signal from the addition of
the less significant bits sum from the X-OR Gate the carry out from the
og
sp
ot
.c
o
AND gate.
ve
.b
l
FULL ADDER:
si
cl
u
of input; it consists of three inputs and two outputs. A full adder is useful to
ex
add three bits at a time but a half adder cannot do so. In full adder sum
.e
ee
output will be taken from X-OR Gate, carry output will be taken from OR
Gate.
HALF SUBTRACTOR:
The half subtractor is constructed using X-OR and AND Gate. The
half subtractor has two input and two outputs. The outputs are difference and
borrow. The difference can be applied using X-OR Gate, borrow output can
be implemented using an AND Gate and an inverter.
FULL SUBTRACTOR:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 11
.b
l
og
sp
ot
.c
o
OR.
ve
LOGIC DIAGRAM:
.e
ee
ex
cl
u
si
HALF ADDER
TRUTH TABLE:
A
CARRY
SUM
0
0
1
1
0
1
0
1
0
0
0
1
0
1
1
0
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 12
sp
ot
.c
o
CARRY = AB
.b
l
og
SUM = AB + AB
si
ve
LOGIC DIAGRAM:
.e
ee
ex
cl
u
FULL ADDER
FULL ADDER USING TWO HALF ADDER
TRUTH TABLE:
A
CARRY
SUM
0
0
0
0
0
1
0
1
0
0
0
0
0
1
1
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 13
0
1
1
1
1
1
0
0
1
1
1
0
1
0
1
1
0
1
1
1
0
1
0
0
1
.b
l
og
sp
ot
.c
o
ve
.e
ee
ex
cl
u
si
CARRY = AB + BC + AC
LOGIC DIAGRAM:
HALF SUBTRACTOR
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 14
TRUTH TABLE:
0
1
0
0
0
1
1
0
0
1
0
1
.c
o
0
0
1
1
BORROW DIFFERENCE
sp
ot
cl
u
si
ve
.b
l
og
.e
ee
ex
DIFFERENCE = AB + AB
BORROW = AB
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 15
cl
u
si
ve
.b
l
og
sp
ot
.c
o
LOGIC DIAGRAM:
FULL SUBTRACTOR
.e
ee
ex
TRUTH TABLE:
A
0
0
0
0
0
1
0
1
0
BORROW DIFFERENCE
0
1
1
0
1
1
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 16
0
1
1
1
1
1
0
0
1
1
1
0
1
0
1
1
0
0
0
1
0
1
0
0
1
.b
l
og
sp
ot
.c
o
ex
.e
ee
cl
u
si
ve
Borrow = AB + BC + AC
PROCEEDURE:
(i)
Connections are given as per circuit diagram.
(ii)
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 17
(iii)
si
ve
.b
l
og
sp
ot
.c
o
RESULT:
ex
DATE
cl
u
EXPT NO. :
ee
.e
AIM:
SPECIFICATION QTY.
IC 7486
1
IC 7408
1
IC 7432
1
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 18
4.
5.
6.
NOT GATE
IC TRAINER KIT
PATCH CORDS
IC 7404
-
1
1
35
THEORY:
The availability of large variety of codes for the same discrete
elements of information results in the use of different codes by different
systems. A conversion circuit must be inserted between the two systems if
each uses different codes for same information. Thus, code converter is a
.c
o
circuit that makes the two systems compatible even though each uses
sp
ot
The bit combination assigned to binary code to gray code. Since each
og
code uses four bits to represent a decimal digit. There are four inputs and
.b
l
ve
The input variable are designated as B3, B2, B1, B0 and the output
cl
u
si
variables are designated as C3, C2, C1, Co. from the truth table,
ex
ee
.e
even though each uses a different binary code. To convert from binary code
to Excess-3 code, the input lines must supply the bit combination of
elements as specified by code and the output lines generate the
corresponding bit combination of code. Each one of the four maps represents
one of the four outputs of the circuit as a function of the four input variables.
A two-level logic diagram may be obtained directly from the Boolean
expressions derived by the maps. These are various other possibilities for a
logic diagram that implements this circuit. Now the OR gate whose output is
C+D has been used to implement partially each of three outputs.
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 19
LOGIC DIAGRAM:
og
sp
ot
.c
o
.e
ee
ex
cl
u
si
ve
.b
l
G3 = B3
K-Map for G2:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 20
m
.c
o
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 21
TRUTH TABLE:
|
Binary input
B2
B1
B0
G3
G2
G1
G0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
.c
o
sp
ot
og
.b
l
ve
si
ee
ex
cl
u
B3
.e
LOGIC DIAGRAM:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 22
m
.c
o
sp
ot
og
.b
l
.e
ee
ex
cl
u
si
ve
B3 = G3
K-Map for B2:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 23
m
.c
o
sp
ot
.e
ee
ex
cl
u
si
ve
.b
l
og
Page No. 24
m
.c
o
sp
ot
G1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
G0
si
G2
.e
ee
ex
G3
.b
l
Binary Code
ve
Gray Code
cl
u
og
TRUTH TABLE:
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
B3
B2
B1
B0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 25
LOGIC DIAGRAM:
ve
.b
l
og
sp
ot
.c
o
.e
ee
ex
cl
u
si
E3 = B3 + B2 (B0 + B1)
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 26
ve
.b
l
og
sp
ot
.c
o
.e
ee
ex
cl
u
si
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 27
.b
l
og
sp
ot
.c
o
.e
ee
ex
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
B0
cl
u
B1
si
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
ve
TRUTH TABLE:
|
BCD input
B3
B2
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Excess 3 output
G3
G2
G1
0
0
0
0
0
1
1
1
1
1
x
x
x
x
x
x
0
1
1
1
1
0
0
0
0
1
x
x
x
x
x
x
2007-08/Even/IV/ECE/EC1258/DE/LM
1
0
0
1
1
0
0
1
1
0
x
x
x
x
x
x
|
G0
1
0
1
0
1
0
1
0
1
0
x
x
x
x
x
x
Page No. 28
LOGIC DIAGRAM:
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 29
A = X1 X2 + X3 X4 X1
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
K-Map for A:
K-Map for B:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 30
m
.c
o
sp
ot
og
.b
l
.e
ee
ex
cl
u
si
ve
K-Map for C:
K-Map for D:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 31
m
.c
o
sp
ot
.b
l
og
B2
0
0
0
0
0
1
1
1
1
1
0
1
1
1
1
0
0
0
0
1
si
B1
ee
B3
cl
u
Excess 3 Input
ex
ve
TRUTH TABLE:
.e
1
0
0
1
1
0
0
1
1
0
BCD Output
B0
G3
G2
G1
G0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
1
0
1
0
1
PROCEDURE:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 32
(ii)
(iii)
Observe the logical output and verify with the truth tables.
ve
.b
l
og
sp
ot
.c
o
(i)
.e
ee
ex
cl
u
si
RESULT:
EXPT NO. :
DATE
:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 33
AIM:
To design and implement 4-bit adder and subtractor using IC 7483.
.c
o
APPARATUS REQUIRED:
Sl.No.
COMPONENT
SPECIFICATION QTY.
1.
IC
IC 7483
1
2.
EX-OR GATE
IC 7486
1
3.
NOT GATE
IC 7404
1
3.
IC TRAINER KIT
1
4.
PATCH CORDS
40
sp
ot
THEORY:
.b
l
og
ve
cl
u
si
cascade, with the output carry from each full adder connected to the input
carry of next full adder in chain. The augends bits of A and the addend bits
ee
ex
.e
0 denoting the least significant bits. The carries are connected in chain
through the full adder. The input carry to the adder is C0 and it ripples
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 34
does not exceed 9, the output sum cannot be greater than 19, the 1 in the sum
.c
o
being an input carry. The output of two decimal digits must be represented
sp
ot
ABCD adder that adds 2 BCD digits and produce a sum digit in BCD.
si
ve
.b
l
og
The 2 decimal digits, together with the input carry, are first added in the top
.e
ee
ex
cl
u
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 35
LOGIC DIAGRAM:
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 36
LOGIC DIAGRAM:
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 37
LOGIC DIAGRAM:
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 38
TRUTH TABLE:
Input Data A
Input Data B
Addition
Subtraction
A4 A3 A2 A1 B4 B3 B2 B1
S4 S3 S2 S1
D4 D3 D2 D1
.c
o
sp
ot
.e
ee
ex
cl
u
si
ve
.b
l
og
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 39
LOGIC DIAGRAM:
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
BCD ADDER
.e
K MAP
Y = S4 (S3 + S2)
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 40
CARRY
C
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
ve
.b
l
og
sp
ot
S1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
.c
o
BCD SUM
S3
S2
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
S4
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
TRUTH TABLE:
cl
u
si
PROCEDURE:
(ii)
(iii)
Observe the logical output and verify with the truth tables.
RESULT:
.e
ee
ex
(i)
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 41
EXPT NO. :
DATE
:
DESIGN AND IMPLEMENTATION OF MAGNITUDE
COMPARATOR
AIM:
To design and implement
2 bit magnitude comparator using basic gates.
(ii)
.c
o
(i)
og
-
1
30
.b
l
QTY.
2
1
1
1
2
si
cl
u
THEORY:
.e
ee
6.
7.
SPECIFICATION
IC 7408
IC 7486
IC 7432
IC 7404
IC 7485
ve
COMPONENT
AND GATE
X-OR GATE
OR GATE
NOT GATE
4-BIT MAGNITUDE
COMPARATOR
IC TRAINER KIT
PATCH CORDS
ex
Sl.No.
1.
2.
3.
4.
5.
sp
ot
APPARATUS REQUIRED:
Page No. 42
A = A3 A2 A1 A0
B = B3 B2 B1 B0
The equality of the two numbers and B is displayed in a
combinational circuit designated by the symbol (A=B).
.c
o
sp
ot
that of B is 0.
ve
.b
l
og
si
ex
cl
u
.e
ee
x3
x2
x1
x0
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 43
LOGIC DIAGRAM:
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 44
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
K MAP
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 45
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
TRUTH TABLE
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 46
og
A<B
0
1
1
1
0
0
1
1
0
0
0
1
0
0
0
0
.c
o
A=B
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
sp
ot
A>B
0
0
0
0
1
0
0
0
1
1
0
0
1
1
1
0
.e
ee
ex
cl
u
si
ve
.b
l
A1 A0 B1 B0
0
0 0 0
0
0 0 1
0
0 1 0
0
0 1 1
0
1 0 0
0
1 0 1
0
1 1 0
0
1 1 1
1
0 0 0
1
0 0 1
1
0 1 0
1
0 1 1
1
1 0 0
1
1 0 1
1
1 1 0
1
1 1 1
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 47
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
LOGIC DIAGRAM:
8 BIT MAGNITUDE COMPARATOR
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 48
m
0000
0000
0001
0000
0000
0001
.b
l
0000
0001
0000
A=B
1
0
0
A<B
0
0
1
.e
ee
ex
cl
u
si
0000
0001
0000
A>B
0
1
0
og
ve
sp
ot
.c
o
TRUTH TABLE:
PROCEDURE:
(i)
(ii)
Page No. 49
.c
o
(iii)
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
RESULT:
EXPT NO. :
DATE
:
16 BIT ODD/EVEN PARITY CHECKER /GENERATOR
AIM:
To design and implement 16 bit odd/even parity checker generator
using IC 74180.
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 50
APPARATUS REQUIRED:
COMPONENT
NOT GATE
SPECIFICATION QTY.
IC 7404
1
IC 74180
2
1
30
IC TRAINER KIT
PATCH CORDS
Sl.No.
1.
1.
2.
3.
sp
ot
.c
o
THEORY:
og
.b
l
make the number is either even or odd. The message including the parity bit
ve
is transmitted and then checked at the receiver ends for errors. An error is
cl
u
si
detected if the checked parity bit doesnt correspond to the one transmitted.
ex
The circuit that generates the parity bit in the transmitter is called a parity
ee
generator and the circuit that checks the parity in the receiver is called a
.e
parity checker.
In even parity, the added parity bit will make the total number is even
amount. In odd parity, the added parity bit will make the total number is odd
amount. The parity checker circuit checks for possible errors in the
transmission. If the information is passed in even parity, then the bits
required must have an even number of 1s. An error occur during
transmission, if the received bits have an odd number of 1s indicating that
one bit has changed in value during transmission.
PIN DIAGRAM FOR IC 74180:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 51
m
.c
o
sp
ot
og
.b
l
1
1
0
0
1
0
ee
.e
PO
0
0
1
1
1
0
OUTPUTS
E
O
1
0
0
1
0
1
0
1
1
0
0
1
ve
cl
u
si
PE
ex
FUNCTION TABLE:
INPUTS
Number of High Data
Inputs (I0 I7)
EVEN
ODD
EVEN
ODD
X
X
LOGIC DIAGRAM:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 52
m
sp
ot
.c
o
TRUTH TABLE:
E
1
1
0
O
0
0
1
.e
ee
ex
cl
u
si
ve
.b
l
og
I7 I6 I5 I4 I3 I2 I1 I0 I7I6I5I4I3I211 I0 Active
0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0
1
0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0
0
0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0
1
LOGIC DIAGRAM:
16 BIT ODD/EVEN PARITY GENERATOR
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 53
m
.c
o
sp
ot
.b
l
og
TRUTH TABLE:
I7 I6 I5 I4 I3 I2 I1 I0 Active
1 1 0 0 0 0 0 0
1
1 1 0 0 0 0 0 0
0
0 1 0 0 0 0 0 0
0
E
1
0
1
O
0
1
0
.e
ee
ex
cl
u
si
ve
I7 I6 I5 I4 I3 I2 I1 I0
1 1 0 0 0 0 0 0
1 1 0 0 0 0 0 0
1 1 0 0 0 0 0 0
PROCEDURE:
(i)
(ii)
Page No. 54
sp
ot
.c
o
(iii)
.e
ee
ex
cl
u
si
ve
.b
l
og
RESULT:
EXPT NO. :
DATE
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 55
COMPONENT
3 I/P AND GATE
OR GATE
NOT GATE
IC TRAINER KIT
PATCH CORDS
.c
o
Sl.No.
1.
2.
3.
2.
3.
og
sp
ot
THEORY:
MULTIPLEXER:
Multiplexer means transmitting a large number of information units
.b
l
ve
combinational circuit that selects binary information from one of many input
cl
u
si
lines and directs it to a single output line. The selection of a particular input
ex
line is controlled by a set of selection lines. Normally there are 2n input line
ee
.e
selected.
DEMULTIPLEXER:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 56
sp
ot
.c
o
ex
.e
ee
INPUTS Y
D0 D0 S1 S0
D1 D1 S1 S0
D2 D2 S1 S0
D3 D3 S1 S0
si
S0
0
1
0
1
cl
u
S1
0
0
1
1
ve
.b
l
og
FUNCTION TABLE:
Y = D0 S1 S0 + D1 S1 S0 + D2 S1 S0 + D3 S1 S0
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 57
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ee
ex
w
.e
TRUTH TABLE:
S1
0
0
1
1
S0
0
1
0
1
Y = OUTPUT
D0
D1
D2
D3
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 58
m
.c
o
ve
INPUT
X D0 = X S1 S0
X D1 = X S1 S0
X D2 = X S1 S0
X D3 = X S1 S0
si
S0
0
1
0
1
ee
ex
cl
u
S1
0
0
1
1
.b
l
og
sp
ot
FUNCTION TABLE:
.e
Y = X S1 S0 + X S1 S0 + X S1 S0 + X S1 S0
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 59
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
TRUTH TABLE:
S1
INPUT
S0
I/P
D0
OUTPUT
D1
D2
2007-08/Even/IV/ECE/EC1258/DE/LM
D3
Page No. 60
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 61
m
.c
o
sp
ot
og
.b
l
cl
u
si
ve
PROCEDURE:
(i)
Connections are given as per circuit diagram.
Logical inputs are given as per circuit diagram.
(iii)
ee
.e
w
RESULT:
ex
(ii)
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 62
EXPT NO. :
DATE
AIM:
To design and implement encoder and decoder using logic gates and
sp
ot
.b
l
og
SPECIFICATION QTY.
IC 7410
2
IC 7432
3
IC 7404
1
1
27
ve
COMPONENT
3 I/P NAND GATE
OR GATE
NOT GATE
IC TRAINER KIT
PATCH CORDS
ex
cl
u
si
Sl.No.
1.
2.
3.
2.
3.
.c
o
APPARATUS REQUIRED:
.e
ee
THEORY:
ENCODER:
An encoder is a digital circuit that perform inverse operation of a
decoder. An encoder has 2n input lines and n output lines. In encoder the
output lines generates the binary code corresponding to the input value. In
octal to binary encoder it has eight inputs, one for each octal digit and three
output that generate the corresponding binary code. In encoder it is assumed
that only one input has a value of one at any given time otherwise the circuit
is meaningless. It has an ambiguila that when all inputs are zero the outputs
are zero. The zero outputs can also be generated when D0 = 1.
DECODER:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 63
.c
o
sp
ot
.e
ee
ex
cl
u
si
ve
.b
l
og
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 64
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
LOGIC DIAGRAM FOR ENCODER:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 65
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
INPUT
Y4
Y5
0
0
0
0
0
0
1
0
0
1
0
0
0
0
ee
.e
Y3
0
0
1
0
0
0
0
Y2
0
1
0
0
0
0
0
Y1
1
0
0
0
0
0
0
ex
TRUTH TABLE:
Y6
0
0
0
0
0
1
0
Y7
0
0
0
0
0
0
1
A
0
0
0
1
1
1
1
OUTPUT
B
0
1
1
0
0
1
1
C
1
0
1
0
1
0
1
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 66
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
TRUTH TABLE:
w
w
E
1
0
0
0
0
INPUT
A
0
0
0
1
1
B
0
0
1
0
1
D0
1
0
1
1
1
OUTPUT
D1
D2
1
1
1
1
0
1
1
0
1
1
D3
1
1
1
1
0
PROCEDURE:
(i)
Page No. 67
(iii)
ve
.b
l
og
sp
ot
.c
o
(ii)
.e
ee
ex
cl
u
si
RESULT:
EXPT NO. :
DATE
:
CONSTRUCTION AND VERIFICATION OF 4 BIT RIPPLE
COUNTER AND MOD 10/MOD 12 RIPPLE COUNTER
AIM:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 68
To design and verify 4 bit ripple counter mod 10/ mod 12 ripple
counter.
APPARATUS REQUIRED:
SPECIFICATION QTY.
IC 7476
2
IC 7400
1
1
30
COMPONENT
JK FLIP FLOP
NAND GATE
IC TRAINER KIT
PATCH CORDS
sp
ot
.c
o
Sl.No.
1.
2.
3.
4.
og
THEORY:
.b
l
ve
arriving at its clock input. Counter represents the number of clock pulses
cl
u
si
ex
main difference between a register and a counter. There are two types of
ee
.e
given to all flip flop and in asynchronous first flip flop is clocked by external
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 69
m
.c
o
sp
ot
og
.b
l
ve
.e
ee
ex
cl
u
si
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 70
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
TRUTH TABLE:
CLK
0
1
2
3
4
5
6
7
8
9
10
QA
0
1
0
1
0
1
0
1
0
1
0
QB
0
0
1
1
0
0
1
1
0
0
1
QC
0
0
0
0
1
1
1
1
0
0
0
QD
0
0
0
0
0
0
0
0
1
1
1
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 71
1
0
1
0
1
1
0
0
1
1
0
1
1
1
1
1
1
1
1
1
sp
ot
.c
o
11
12
13
14
15
.e
ee
ex
cl
u
si
ve
.b
l
og
TRUTH TABLE:
CLK
0
1
2
3
QA
0
1
0
1
QB
0
0
1
1
QC
0
0
0
0
QD
0
0
0
0
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 72
4
5
6
7
8
9
10
0
1
0
1
0
1
0
0
0
1
1
0
0
0
1
1
1
1
0
0
0
0
0
0
0
1
1
0
ee
QA
0
1
0
1
0
1
0
1
0
1
0
1
0
CLK
0
1
2
3
4
5
6
7
8
9
10
11
12
.e
TRUTH TABLE:
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
QB
0
0
1
1
0
0
1
1
0
0
1
1
0
QC
0
0
0
0
1
1
1
1
0
0
0
0
0
QD
0
0
0
0
0
0
0
0
1
1
1
1
0
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 73
PROCEDURE:
Connections are given as per circuit diagram.
(ii)
(iii)
cl
u
si
ve
.b
l
og
sp
ot
.c
o
(i)
.e
ee
ex
RESULT:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 74
EXPT NO. :
DATE
:
DESIGN AND IMPLEMENTATION OF 3 BIT SYNCHRONOUS
UP/DOWN COUNTER
AIM:
To design and implement 3 bit synchronous up/down counter.
ve
.b
l
og
sp
ot
SPECIFICATION QTY.
IC 7476
2
IC 7411
1
IC 7432
1
IC 7486
1
IC 7404
1
1
35
si
COMPONENT
JK FLIP FLOP
3 I/P AND GATE
OR GATE
XOR GATE
NOT GATE
IC TRAINER KIT
PATCH CORDS
ex
cl
u
Sl.No.
1.
2.
3.
4.
5.
6.
7.
.c
o
APPARATUS REQUIRED:
ee
THEORY:
.e
arriving at its clock input. Counter represents the number of clock pulses
Page No. 75
m
.c
o
sp
ot
og
.b
l
ve
.e
ee
ex
cl
u
si
STATE DIAGRAM:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 76
CHARACTERISTICS TABLE:
Q
Qt+1
0
1
0
1
0
0
1
1
J
0
1
X
X
K
X
X
1
0
.e
ee
ex
cl
u
si
ve
.b
l
og
sp
ot
.c
o
LOGIC DIAGRAM:
TRUTH TABLE:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 77
.b
l
C
KB
X
0
1
X
X
0
1
X
X
X
0
1
X
X
0
1
JB
1
X
X
0
1
X
X
0
0
1
X
X
0
1
X
X
.c
o
KA
X
0
0
0
1
X
X
X
X
X
X
X
0
0
0
1
sp
ot
JA
1
X
X
X
X
0
0
0
0
0
0
1
X
X
X
X
og
Next State
QA+1 Q B+1 QC+1
1
1
1
1
1
0
1
0
1
1
0
0
0
1
1
0
1
0
0
0
1
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
0
0
0
JC
1
X
1
X
1
X
1
X
1
X
1
X
1
X
1
X
KC
X
1
X
1
X
1
X
1
X
1
X
1
X
1
X
1
ve
Input
Present State
Up/Down QA QB QC
0
0
0
0
0
1
1
1
0
1
1
0
0
1
0
1
0
1
0
0
0
0
1
1
0
0
1
0
0
0
0
1
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
1
1
0
1
1
1
1
0
1
1
1
1
ex
cl
u
si
PROCEDURE:
(i)
Connections are given as per circuit diagram.
Logical inputs are given as per circuit diagram.
(iii)
.e
w
w
RESULT:
ee
(ii)
EXPT NO. :
DATE
:
DESIGN AND IMPLEMENTATION OF SHIFT REGISTER
AIM:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 78
sp
ot
.c
o
COMPONENT
D FLIP FLOP
OR GATE
IC TRAINER KIT
PATCH CORDS
og
Sl.No.
1.
2.
3.
4.
ve
.b
l
THEORY:
si
cl
u
ex
register consist of a D-Flip flop cascaded with output of one flip flop
.e
ee
connected to input of next flip flop. All flip flops receive common clock
The simplest
pulses which causes the shift in the output of the flip flop.
possible shift register is one that uses only flip flop. The output of a given
flip flop is connected to the input of next flip flop of the register. Each clock
pulse shifts the content of register one bit position to right.
PIN DIAGRAM:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 79
m
.c
o
sp
ot
.b
l
og
LOGIC DIAGRAM:
.e
ee
ex
cl
u
si
ve
TRUTH TABLE:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 80
Serial in
Serial out
.c
o
CLK
sp
ot
LOGIC DIAGRAM:
.e
ee
ex
cl
u
si
ve
.b
l
og
TRUTH TABLE:
CLK DATA
1
1
2
0
3
0
4
1
QA
1
0
0
1
OUTPUT
QB
QC
0
1
0
0
0
0
1
0
QD
0
0
1
1
LOGIC DIAGRAM:
PARALLEL IN SERIAL OUT:
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 81
Q0
1
0
0
0
Q1
0
0
0
0
O/P
1
0
0
1
sp
ot
Q2
0
0
0
0
og
Q3
1
0
0
0
.b
l
CLK
0
1
2
3
.c
o
TRUTH TABLE:
ve
LOGIC DIAGRAM:
.e
ee
ex
cl
u
si
TRUTH TABLE:
CLK
DA
DATA INPUT
DB
DC
DD
QA
OUTPUT
QB
QC
2007-08/Even/IV/ECE/EC1258/DE/LM
QD
Page No. 82
1
2
1
1
0
0
0
1
1
0
1
1
0
0
0
1
1
0
PROCEDURE:
Connections are given as per circuit diagram.
(ii)
(iii)
og
sp
ot
.c
o
(i)
.e
ee
ex
cl
u
si
ve
.b
l
RESULT:
PREPARATORY EXERCISE
1. Study of logic gates
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 83
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
2. Design and implementation of adders and subtractors
using logic gates
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 84
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
3. Design and implementation of code converters using
logic gates
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 85
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
4. Design and implementation of 4-bit binary
adder/subtractor and BCD adder using IC 7483
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 86
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
5. Design and implementation of 2-bit magnitude
comparator using logic gates, 8-bit magnitude comparator
using IC 7485
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 87
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
6. Design and implementation of 16-bit odd/even parity
checker generator using IC 74180
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 88
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
7. Design and implementation of multiplexer and
demultiplexer using logic gates and study of IC 74150 and
IC 74154
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 89
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
w
8. Design and implementation of encoder and decoder
using logic gates and study of IC 7445 and IC 74147
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 90
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 91
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 92
m
.c
o
sp
ot
og
.b
l
ve
si
cl
u
ex
ee
.e
w
w
2007-08/Even/IV/ECE/EC1258/DE/LM
Page No. 93