Digital Lab R2021 manual
Digital Lab R2021 manual
AI
M: To design and construct half adder, full adder, half
subtractor and full subtractor circuits and verify
the truth table using logic gates.
APPARATUS REQUIRED:
SL.N COMPONE SPECIFICATI QTY
O. NT ON .
1. AND GATE IC 7408 1
2. X-OR GATE IC 7486 1
3. NOT GATE IC 7404 1
4. OR GATE IC 7432 1
5. IC TRAINER KIT - 1
6. PATCH CORDS - 23
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 AND gate.
FULL ADDER:
A full adder is a combinational circuit that forms the
arithmetic sum of input; it consists of three inputs and two
outputs. A full adder is useful to add three bits at a time but a
half adder cannot do so. In full adder sum 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:
The full subtractor is a combination of X-OR, AND, OR, NOT
Gates. In a full subtractor the logic circuit should have three
inputs and two outputs. The two half subtractor put together
gives a full subtractor .The first half subtractor will be C and A
B. The output will be difference output of full subtractor. The
expression AB assembles the borrow output of the
half subtractor and the second term is the inverted difference
output of first X-OR.
HALF ADDER
TRUTH
TABLE:
A B CARR SUM
Y
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
1
1
LOGIC DIAGRAM:
FULL ADDER
TRUTH TABLE:
A B C CARR SU
Y M
0 0 0 0 0
0 0 1 0 1
0 1 0 0 1
0 1 1 1 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 0
1 1 1 1 1
1
1
1 1
CARRY = AB + BC
+ AC LOGIC DIAGRAM:
FULL ADDER USING TWO HALF ADDER
HALF SUBTRACTOR
TRUTH TABLE:
A B BORRO DIFFEREN
W CE
0 0 0 0
0 1 1 1
1 0 0 1
1 1 0 0
BORROW =
A’B
LOGIC DIAGRAM
FULL SUBTRACTOR
TRUTH TABLE:
BORR
A B C O DIFFEREN
W CE
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 1 0
1 0 0 0 1
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
1 1
1 1
PROCEEDURE:
RESULT:
CODE CONVERTOR
AI
M:
To design and implement 4-bit
(i) Binary to gray code converter
(ii) Gray to binary code converter
(iii) BCD to excess-3 code converter
(iv) Excess-3 to BCD code converter
APPARATUS REQUIRED:
SL.N COMPONEN SPECIFICATI QTY
O. T ON .
1 X-OR GATE IC 7486 1
.
2 AND GATE IC 7408 1
.
3 OR GATE IC 7432 1
.
4 NOT GATE IC 7404 1
.
5 IC TRAINER KIT - 1
.
6 PATCH CORDS - 35
.
THEORY:
TRUTH TABLE:
K-Map for G3
G 3 = B3
K-Map for G2
K-Map for G1
K-Map for G0
LOGIC DIAGRAM:
GRAY CODE TO BINARY CONVERTOR
TRUTH TABLE:
GRA
Y BINARY CODE
COD
E
G G2 G1 G0 B3 B2 B B
3 1 0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 1 0 0 1 0
0 0 1 0 0 0 1 1
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
0 1 0 1 0 1 1 0
0 1 0 0 0 1 1 1
1 1 0 0 1 0 0 0
1 1 0 1 1 0 0 1
1 1 1 1 1 0 1 0
1 1 1 0 1 0 1 1
1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 0 0 1 1 1 1 0
1 0 0 0 1 1 1 1
B3 = G3
K-Map for B2:
BCD TO EXCESS-3
TRUTH CONVERTOR
TABLE: Excess –
3
| BCD input | output |
B B2 B1 B G3 G2 G1 G0
3 0
0 0 0 0 0 0 1 1
0 0 0 1 0 1 0 0
0 0 1 0 0 1 0 1
0 0 1 1 0 1 1 0
0 1 0 0 0 1 1 1
0 1 0 1 1 0 0 0
0 1 1 0 1 0 0 1
0 1 1 1 1 0 1 0
1 0 0 0 1 0 1 1
1 0 0 1 1 1 0 0
1 0 1 0 x x x x
1 0 1 1 x x x x
1 1 0 0 x x x x
1 1 0 1 x x x x
1 1 1 0 x x x x
1 1 1 1 x x x X
E3 = B3 + B2 (B0 + B1)
EXCESS-3 TO BCD
Excess – 3 BCD
| Input | Output |
B3 B2 B1 B G3 G2 G1 G0
0
0 0 1 1 0 0 0 0
0 1 0 0 0 0 0 1
0 1 0 1 0 0 1 0
0 1 1 0 0 0 1 1
0 1 1 1 0 1 0 0
1 0 0 0 0 1 0 1
1 0 0 1 0 1 1 0
1 0 1 0 0 1 1 1
1 0 1 1 1 0 0 0
1 1 0 0 1 0 0 1
LOGIC DIAGRAM:
K-Map for A:
A = X1 X2 + X3 X4 X1
K-Map for B:
K-Map for C:
K-Map for D:
RESULT:
Ex.No 2.-DESIGN OF MULTIPLEXER AND
DEMULTIPLEXER
AIM:
APPARATUS REQUIRED:
THEORY:
MULTIPLEXER:
Multiplexer means transmitting a large number of
information units over a smaller number of channels or lines.
A digital multiplexer is a combinational circuit that selects
binary information from one of many input lines and directs it
to a single output line. The selection of a particular input line
n
is controlled by a set of selection lines. Normally there are 2
input line and n selection lines whose bit combination
determine which
input is selected.
DEMULTIPLEXER:
The function of Demultiplexer is in contrast to
multiplexer function. It takes information from one line and
distributes it to a given number of output lines. For this
reason, the demultiplexer is also known as a data distributor.
Decoder can also be used as demultiplexer.
In the 1: 4 demultiplexer circuit, the data input line goes
to all of the AND gates. The data select lines enable only one
gate at a time and the data on the data input line will pass
through the selected gate to the associated data output line.
4:1 MULTIPLEXER
MULTIPLEXER:
FUNCTION TABLE:
S S INPUTS Y
1 0
0 0 D0 → D0 S1’ S0’
0 1 D1 → D1 S1’ S0
1 0 D2 → D2 S1 S0’
1 1 D3 → D3 S1 S0
+ D3 S1 S0 TRUTH TABLE:
S S Y =
1 0 OUTPUT
0 0 D0
0 1 D1
1 0 D2
1 1 D3
CIRCUIT DIAGRAM FOR MULTIPLEXER:
1:4 DEMULTIPLEXER
FUNCTION TABLE:
S S INPU
1 0 T
0 0 X → D0 = X S1’
S0’
0 1 X → D1 = X S1’
S0
1 0 X → D2 = X S1
S0’
1 1 X → D3 = X S1 S0
INPU OUTPU
T T
S S0 I/ D D D D
1 P 0 1 2 3
0 0 0 0 0 0 0
0 0 1 1 0 0 0
0 1 0 0 0 0 0
0 1 1 0 1 0 0
1 0 0 0 0 0 0
1 0 1 0 0 1 0
1 1 0 0 0 0 0
1 1 1 0 0 0 1
PROCEDURE:
RESULT:
Ex.No.-3 Design of Encoders and Decoders
Theory
Encoder
Encoder is a combinational logic circuit that performs a reverse decoder
function. i.e, An Encoder accepts an active level on one of its inputs representing
a digit such as a decimal (or) octal and converts it to a coded output lines such
as binary or BCD. An encoder has 2n (or less) input lines and n output lines.
Block Diagram
I0 mxn A0
I1 . (or) m A1
. n ..
. .
In-1 Encoder An-1
8 to-3 Encoder
8x3 Encoder
Block
Diagram
D0 A
D1 8x3 B
. Encod
.
D7 . er C
Truth Table
Inputs Outputs
D7 D6 D5 D4 D3 D2 D1 D0 A B C
0 0 0 0 0 0 0 1 0 0 0
0 0 0 0 0 0 1 0 0 0 1
0 0 0 0 0 1 0 0 0 1 0
0 0 0 0 1 0 0 0 0 1 1
0 0 0 1 0 0 0 0 1 0 0
0 0 1 0 0 0 0 0 1 0 1
0 1 0 0 0 0 0 0 1 1 0
1 0 0 0 0 0 0 0 1 1 1
Logic Diagram
D7 D6 D5 D4 D3 D2 D1 D0
A=D4+D5+D6+D7
B=D2+D3+D6+D7
Components Required
Digital trainer kit, IC7411 (3 i/p AND gate), IC7432 (OR gate), IC7404
(NOT gate), and connecting wires.
PROCEDURE
1. Obtain the required IC along with the Digital trainer kit.
2. Connect zero volts to GND pin and +5 volts to Vcc .
3. Apply the inputs to the respective input pins.
4. Verify the output with the truth table.
C=D1+D3+D
Theory
Decode
r
A binary code of ‘n’ inputs can be represented as 2 n (or less) Min terms.
Decoder is a combinational logic circuit that accepts a set of inputs that
represents a binary number and activates only the output that corresponds to
that input number. It’s generally represented as n-to-m line decoder (or) (n x m)
decoder where, m≤2n
Block Diagram
A0 nx D0
A1 m A inputs
. D1
. .. D
. . outputs
An-1 Dn-1 (only 1 o/p is active for each
i/p).
Types
1.2-to-4 line decoder
2.3-to-8 line decoder
3.4-to-10 line decoder (or) Binary-to-decimal decoder.
3- to-8 Decoder (or) Binary-to-Octal decoder (or) 1-out-of 8
Decoder
n=3(inputs); m≤2n ; i.e., m=8(outputs).
The 3 inputs are decoded into 8 outputs, each output representing one of
the min terms. A particular application of this decoder would be a binary to octal
conversion. The 3 invertors provide the complement of the inputs and each one
of the AND gates generates the min terms
Block Diagram
A 3x8 D0
B (or) . D1
3 8 .
C Decode .
r
Truth Table
Inputs Outputs
A B C D7 D6 D5 D4 D3 D2 D1 D0
0 0 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 1 0 0 0 0 0 0 1 0 0
0 1 1 0 0 0 0 1 0 0 0
1 0 0 0 0 0 1 0 0 0 0
1 0 1 0 0 1 0 0 0 0 0
1 1 0 0 1 0 0 0 0 0 0
1 1 1 1 0 0 0 0 0 0 0
Logic Diagram
A B C
IC7404
D1=A'B'C
D2=A'BC'
D3=A'BC
D4=AB'C'
D5=AB'C
D6=ABC'
D7=ABC
Components Required
Digital trainer kit, IC7411 (3 i/p AND gate), IC7432 (OR gate), IC7404
(NOT gate), and connecting wires.
PROCEDURE
1. Obtain the required IC along with the Digital trainer kit.
2. Connect zero volts to GND pin and +5 volts to Vcc .
3. Apply the inputs to the respective input pins.
Verify the output with the truth
RESULT
Ex.No.-4 DESIGN OF MAGNITUDE COMPARATOR
AIM
APPARATUS REQUIRED:
THEORY:
A = A3 A2 A1
A0 B = B3 B2
B1 B0
1 1 1
X3A2 B2 + X3X2A1 B1 + X3X2X1A0 B0
The same circuit can be used to compare the relative
magnitude of two BCD digits. Where, A = B is expanded as,
x3 x2 x1 x0
LOGIC DIAGRAM:
TRUTH TABLE:
A B A> A= A<
B B B
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
0
0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0
1
0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1
0
PROCEDURE:
RESULT:
Ex.No.-5 DESIGN AND IMPLEMENTATION OF
COUNTERS USING FLIP FLOP
AIM:
APPARATUS REQUIRED:
THEORY:
Asynchronous decade counter is also called as ripple
counter. In a ripple counter the flip flop output transition
serves as a source for triggering other flip flops. In other
words the clock pulse inputs of all the flip flops are triggered
not by the incoming pulses but rather by the transition that
occurs in other flip flops. The term asynchronous refers to the
events that do not occur at the same time. With respect to the
counter operation, asynchronous means that the flip flop
within the counter are not made to change states at exactly
the same time, they do not because the clock pulses are not
connected directly to the clock input of each flip flop in the
counter.
A counter is a register capable of counting number of
clock pulse arriving at its clock input. Counter represents the
number of clock pulses arrived. A specified sequence of states
appears as counter output. This is the main difference between
a register and a counter. There are two types of counter,
synchronous and asynchronous. In synchronous common clock
is given to all flip flop and in asynchronous first flip flop is
clocked by external pulse and then each successive flip flop is
clocked by Q or Q output of previous stage. A soon the clock of
second stage is triggered by output of first stage. Because of
inherent propagation delay time all flip flops are not activated
at same time which results in asynchronous operation.
PIN DIAGRAM FOR IC 7476:
CIRCUIT DIAGRAM:
TRUTH TABLE:
LOGIC DIAGRAM FOR MOD - 10 RIPPLE
COUNTER:
TRUTH TABLE:
CLK QA QB QC Q
D
0 0 0 0 0
1 1 0 0 0
2 0 1 0 0
3 1 1 0 0
4 0 0 1 0
5 1 0 1 0
6 0 1 1 0
7 1 1 1 0
8 0 0 0 1
9 1 0 0 1
10 0 0 0 0
PIN DIAGRAM:
SYNCHRONOUS COUNTER
LOGIC DIAGRAM:
TRUTH TABLE:
OUTPUT
CLK DATA
QA QB QC QD
1 1 1 0 0 0
2 0 0 1 0 0
3 0 0 0 1 1
4 1 1 0 0 1
PROCEDURE:
RESULT:
Ex.No.-6 DESIGN AND IMPLEMENTATION OF SHIFT
REGISTER
AI
M:
To design and implement the following shift registers
(i) Serial in serial out
(ii) Serial in parallel out
(iii) Parallel in serial out
(iv) Parallel in parallel out
APPARATUS REQUIRED:
2. OR GATE IC 7432 1
3. IC TRAINER KIT - 1
4. PATCH CORDS - 35
THEORY:
A register is capable of shifting its binary information in
one or both directions is known as shift register. The logical
configuration of shift register consist of a D-Flip flop cascaded
with output of one flip flop connected to input of next flip flop.
All flip flops receive common clock pulses which causes the
shift in the output of the flip flop. The simplest 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.
LOGIC DIAGRAM:
TRUTH TABLE:
CL Serial Serial
K In Out
1 1 0
2 0 0
3 0 0
4 1 1
5 X 0
6 X 0
7 X 1
SERIAL IN PARALLEL
OUTPUT
CLK DAT QA Q QC QD
A B
1 1 1 0 0 0
2 0 0 1 0 0
3 0 0 0 1 1
4 1 1 0 0 1
PARALLEL IN SERIAL
TRUTH TABLE:
CLK Q Q Q Q0 O/
3 2 1 P
0 1 0 0 1 1
1 0 0 0 0 0
2 0 0 0 0 0
3 0 0 0 0 1
RESULT: