Modified Mlrit20 DSD Lab Manual
Modified Mlrit20 DSD Lab Manual
Course Objectives:
1. To get familiarity with functionalities of IC’s.
2. To learn how to design a Boolean expression using ICs.
3. To learn designing of combinational and sequential logic circuits
4. To learn complex circuits like counter using the combination of ICs.
Course Outcomes:
After going through this course the student will be able to
1. Verify the functionality of various Digital ICs.
2. Design any digital logic circuits using ICs
3. Design and verify the functionality of combinational circuits.
4. Design and verify the functionality of sequential circuits.
Reference Books :
1. Digital Design – Morris Mano, PHI, 3rd Edition.
2. Switching Theory and Logic Design – A. Anand Kumar, PHI, 2nd Edition.
3. Switching and Finite Automata Theory – Zvi Kohavi & Niraj K, Jha, 3rd Edition, Cambridge.
Equipment Required:
Theory:
Logic gates are electronic circuits which perform logical functions on one or more inputs
toproduce one output. There are seven logic gates. When all the input combinations of a logic gate
are written in a series and their corresponding outputs written along them, then this input/ output
combination is called Truth Table.OR, AND and NOT are basic gates. NAND, NOR are known as
universal gates. Various gates and their working is explained here.
AND GATE:
The AND gate performs a logical multiplication commonly known as AND function. The outputis
high when both the inputs are high. The output is low level when any one of the inputs is low.
OR GATE:
The OR gate performs a logical addition commonly known as OR function. The output is
highwhen any one of the inputs is high. The output is low level when both the inputs are low.
NOTGATE
The NOT gate is called an inverter. The output is high when the input is low. The output is
lowwhen the input is high.
NAND GATE:
The NAND gate is a contraction of AND-NOT. The output is high when both inputs are low
andany one of the input is low .The output is low level when both inputs are high.
NOR GATE:
The NOR gate is a contraction of OR-NOT. The output is high when both inputs are low.
Theoutput is low when one or both inputs are high.
X-OR GATE:
The output is high when any one of the inputs is high. The output is low when both the inputs
arelow and both the inputs are high.
PROCEDURE:
1. Connect the trainer kit to ac power supply.
2. Connect the inputs of any one logic gate to the logic sources and its output to the logic
indicator.
3. Apply various input combinations and observe output for each one.
4. Verify the truth table for each input/ output combination.
5. Repeat the process for all other logic gates.
6. Switch off the ac power supply.
CIRCUIT DIAGRAMS:
GateNumber Truth Table Pin digram
IC 7408 AND
gate
A B C=A.B
0 0 0
0 1 0
1 0 0
1 1 1
IC 7408
NAND gate
A B C=(A.B
)’
0 0 1
0 1 1
1 0 1
1 1 0
IC 7432 OR A B C=A+B
Gate
0 0 0
0 1 1
1 0 1
1 1 1
IC 7402 NOR
Gate
A B C=A+B
0 0 0
0 1 1
1 0 1
1 1 1
IC 7486 EX-OR
Gate
A B C=A’B
+AB’
0 0 0
0 1 1
1 0 1
1 1 0
IC 7404 NOT
Gate A A’
0 1
1 0
PRECAUTIONS:
EQIPMENT REQUIRED:
LOGIC DIAGRAM:
1. F=A’b+AB’
2. F=xy+x’y’+y’z
PROCEDURE:
1. Connect the trainer kit to ac power supply.
2. Verify the gates and make connections as per circuit diagram-A.
3. Apply various input combinations and observe output for each one.
4. Verify the truth table for each input/ output combination.
5. Repeat the process for circuit diagram-B.
6. Switch off the ac power supply.
Truth Tables:
X Y Z XY X’ Y’Z F
Y
0 0 0 0 0 0 0
0 0 1 0 0 1 1
0 1 0 0 1 0 1
0 1 0 0 1 0 1
1 0 0 0 0 0 0
1 0 1 0 0 1 1
1 1 0 1 0 0 1
1 1 1 1 0 0 1
A B A’B+AB’
0 0 0
0 1 1
1 0 1
1 1 0
Aim: - To design and construct half adder, full adder using logic gates and verify the truth table.
EQUIPMENT REQUIRED:
SL.No Component Specification Quantity
1 AND Gate IC 7408 1
2 OR Gate IC 7432 1
3 NOT Gate IC 7404 1
4 EX-OR Gate IC 7486 1
5 IC trainer Kit - 1
6 Connecting - Asper required
Wires/Patch Chords
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.
CIRCUIT DIAGRAMS:
HALF ADDER:
A B Sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
FULL ADDER:
A B Cin Sum Carryout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
A B Difference Borrow
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
HALF SUBTRACTOR:
FULL SUBTRACTOR:
(i) Verify the gates and make Connections as per logic diagram.
(ii) Connect Pin-14 of all ICs to +5V and Pin-7 to ground.
(iii) Apply various combinations of inputs to A,B,C according to truth table.
(iv) Observe and note down the output readings for SUM and CARRY for different
combinations of inputs and verify the truth table.
RESULT: Implemented half adder and full adder and verified the truth tables
4. BCD TO EXCESS-3 CONVERTER
AIM: To Design and Implement BCD TO EXCESS-3 CONVERTER and verify the truth table
EQUIPMENT REQUIRED:
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 circuit that makes the two systems compatible even though each
uses different binary code.
Excess-3 Code:This is an un-weighted code. Its code assignment is obtained from the
corresponding value of BCD after the addition of (0011)2.
BCD to Excess-3 (or) Excess-3 to BCD:Since each code uses four bits to represent a decimal
digit, there must be four inputs and four output variables. The input variable are designated as
B3, B2, B1, B0 and the output variables are designated as E3, E2, E1, E0 in the truth table.
Four binary variables have sixteen different input combinations, only ten of the input
combinations are listed in the truth table.The six bit combinations not listed for the input
variables are don’t care combination. The Boolean functions are obtained from K-Map
for each output variable. The combinational logic for t he code converters are
designed according the Boolean expressions fromK-Map simplification. The Boolean
expressions from the K-Map are shown below. 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.
TRUTH TABLE:
K-Map:
13
CIRCUIT DIAGRAM:
14
5. BINARY TO GRAY / GRAY TO BINARY CODE CONVERTER
AIM: verify the truth tables of gray to binary and binary to gray code converter.
EQUIPMENT REQUIRED:
TRUTH TABLE:
B3= G3
B2 ⊕ B3
=G2B1 ⊕ B2
=G1B0⊕B1=
G0
GRAYTO BINARYCODECONVERTER
G0⊕G1⊕G2⊕G3=B0G1⊕
G2⊕G3=B1
G2⊕G3=B2G3
=B3
16
GRAY CODE BINARY CODE
G3 G2 G1 G0 B3 B2 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
RESULT:truth tables of Binary to gray/ gray to binary are verified
17
6. VERIFICATION OF 4-BIT COMPARATOR
AIM: 1.To verify the operation of 4 bit comparator using IC 7485.
APPARATUS REQUIRED :
COMPONENTS REQUIRED:
1. IC 7485: 1No.
PIN DIAGRAM:
18
LOGIC DIAGRAM
Truth table :
THEORY:
Magnitude Comparator is a logical circuit , which compares two signals A and B and
generates three logical outputs, whether A > B, A = B, or A < B . The basic function of a
comparator is to compare the magnitudes of two binary quantities to determine the relationship
of those quantities. IC 7485 is a high speed 4-bit Magnitude comparator , which compares two
4-bit words . It consists of three cascading inputs i.e IA<B, IA=B, IA>B with pin numbers
2,3,4. These inputs allow several comparators to be cascaded for comparison of any number of
bits greater than four. The IA = B Input must be held high for proper compare operation.
PROCEDURE:
1. Connect the circuit as per the pin configuration. Feed the 4-bit binary words A0, A1 ,
A2 , A3 and B0 , B1 , B2 , B3 from the logic input switches.
19
2. Pin 3 of IC 7485 should be at logic ‘1’ to enable compare operation and pin2, pin4 at
logic ‘0’.
3. Observe the output A>B, A=B , and A<B on logic indicators. The outputs must be 1 or
0 respectively.
4. Repeat the steps 1 ,2 and 3 for various inputs A0 ,A1 , A2 , A3 and B0 , B1 , B2 , B3
and observe the outputs at A>B , A=B and A<B .
EQUIPMENT REQUIRED:
Logic circuits that incorporate memory cells are called sequential logic circuits; their output
depends not only upon the present value of the input but also upon the previous
values.Sequential logic circuits often require a timing generator (a clock) for their
operation.BThe latch (flip-flop) is a basic bi-stable memory element widely used in sequential
logiccircuits. Usually there are two outputs, Q and its complementary value.Some of the most
widely used latches are listed below.
SR LATCH:
20
An S-R latch neither consists of two cross-coupled NOR gates. An S-R flip-flop can also be
design using cross-coupled NAND gates as shown. The truth tables of the circuits are shown
below. A clocked S-R flip-flop has an additional clock input so that the S and R inputs are
active only when the clock is high. When the clock goes low, the state of flip-flop is latched and
cannot change until the clock goes high again.
Therefore, the clocked S-R flip-flop is also called “enabled” S-R flip-flop. A D latch combines
the S and R inputs of an S-R latch into one input by adding an inverter. When the clock is high,
the output follows the D input, and when the clock goes low, the state is latched. A S-R flip-
flop can be converted to T-flip flop by connecting S input to Qb and R to Q.
CIRCUIT DIAGRAMS:
1. SR FLIPFLOP:
TRUTH TABLE :
21
2. JK FLIP-FLOP:
TRUTH TABLE:
22
3. D FLIP-FLOP:
TRUTH TABLE:
23
4. T FLIP-FLOP:
TRUTH TABLE:
24
PROCEDURE:
25
AIM: To verify the operation and truth table of 3 – 8 decoder using IC 74138.
APPARATUS REQUIRED:
COMPONENTS REQUIRED:
1. IC74138 :1No
PIN DIAGRAM:
LOGIC DIAGRAM:
26
TRUTH TABLE:
27
THEORY:
A decoder is a combinational circuit that connects the binary information from ‘n’ input lines
to a maximum of 2n unique out put lines . If the n – bit decoded information has unused
combinations, the decoder output will have fewer the 2n outputs. Here 3 inputs are decoded into
eight outputs, each output representing one of the minterms of 3 input variables. IC74138 is the
3*8decoder which contains three inputs and eight outputs and also three enables out of them two are
active low and one is active high. Decoders are used in the circuit where required to get more outputs
than that of the inputs which also used in the chip designing process for reducing the IC chip area.
PROCEDURE:
to Y7
28
9. Implementation and verification of Encoder
AIM:
To set up a circuit of Decimal-to-BCD Encoder using
LEARNING OBJECTIVE:
To learn about various applications of Encoders
To learn to do code conversion using encoders
COMPONENTS REQUIRED:
IC 74148
THEORY:-
An encoder is a combinational logic circuit .It is the reverse of a decoder function. It has 2 to
the power n input and n output lines. An encoder accepts an active level on one of its inputs
representing a digit such as a decimal /octal digit and it convert to coded output.
Encoder is used at the starting stage to encode the message into a unique code. Encoder encodes
different types of messages into various forms. In Digital Circuits it encodes a decimal value
into a binary word. The encoded binary word has number of bits associated with it. The number
of bits depends upon the decimal value which is being encoded.
29
IC DIAGRAM & TRUTH TABLE:-
IC DIAGRAM
30
RESULT:Truth table of decoder has been verified
31
10. IMPLEMENTATION OF 8X1 MULTIPLEXER
AIM: To verify the operation and truth table of 8:1 multiplexer using IC 74151.
APPARATUS REQUIRED:
COMPONENTS REQUIRED:
1. IC 74151 :1 No.
PIN DIAGRAM:
32
LOGIC DIAGRAM:
TRUTH TABLE:
E’ C B A I0 I1 I2 I3 I4 I5 I6 I7 Y
0 0 0 0 0 X X X X X X X 0
0 0 0 0 1 X X X X X X X 1
0 0 0 1 X 0 X X X X X X 0
0 0 0 1 X 1 X X X X X X 1
0 0 1 0 X X 0 X X X X X 0
0 0 1 0 X X 1 X X X X X 1
0 0 1 1 X X X 0 X X X X 0
0 0 1 1 X X X 1 X X X X 1
0 1 0 0 X X X X 0 X X X 0
0 1 0 0 X X X X 1 X X X 1
0 1 0 1 X X X X X 0 X X 0
0 1 0 1 X X X X X 1 X X 1
0 1 1 0 X X X X X X 0 X 0
0 1 1 0 X X X X X X 1 X 1
0 1 1 1 X X X X X X X 0 0
0 1 1 1 X X X X X X X 1 1
THOERY:
Multiplexer means many to one. A multiplexer is a circuit with many inputs but
only one output. By using control signals (select lines ) we can select any input to the output.
Multiplexer is also called as data selector because the output bit depends on the input data bit
that is selected. The general idea about the multiplexing the circuit has N input signals, M
control signals and 1 output signal
33
8 X 1 Multiplexer has 8 input signals and one output signal, three data control
or select lines. These data control lines are nothing but 3-bit binary code on the data control
signal inputs which will allow the data on the corresponding data input to pass through to the
data output.
PROCEDURE:
34
11. VERIFICATION OF UNIVERSAL SHIFT REGISTER
AIM: To study the following applications of universal shift register using IC 74194
1. Bread Board
2. Connecting patch chords
3. IC74194
PIN DIAGRAM:
CIRCUIT DIAGRAM:
35
THEORY:
A register is a digital circuit with two basic functions: data storage and data movement. The
storage capacity of a register makes it an important type of memory device. A register can
consist of one or more flip – flops used to store and shift data. The storage capacity of a register
is the total number of bits of digital data it can retain. Each stage(flip flop) in a shift register
represents one bit of storage capacity, therefore the number of stages in a register determines its
storage capacity. The shifting capability of a register permits the movement of data from stage
to stage within the register or into or out of the register upon application of clock pulses.
A universal shift register is one which has both serial and parallel input and output
capability. The IC 74194 is an example of a universal bidirectional shift register in integrated
circuit form. It is a 16-pin IC with two mode control inputs S0, S1, two serial data inputs DSR ,
DSL , four parallel data inputs P0,P1,P2,P3 , and four parallel data outputs Q0,Q1,Q2,Q3.
PROCEDURE:
Set the inputs as below and observe the outputs as per table.
While running the above step, change the logic input DSL to logic ‘ 0 ‘
And S0 to logic ‘ 0 ‘ in the same sequence .Observe the following outputs after each clock
pulse and verify .
36
STEP: 3 SHIFT LEFT LOGIC ‘1’
Now switch DSL input to logic ‘ 1 ‘ and observe the shifting of logic ‘ 1 ‘ s to left as below .
Observe the following outputs after each clock pulse and verify.
in the same sequence . Observe the following outpus after each clock pulse and verify .
37
STEP: 5 SHIFT RIGHT LOGIC ‘1’
Now at this condition of all ‘ 0 ‘ at the outputs switch DSR to logic ‘1’ this will enable all
logic as serial data and logic ‘ 1 ‘ s will be shifted successively with each clock pulse as shown
below .Observe the following table and verify the outputs .
38
12. DESIGN AND VERIFY THE 4-BIT SYNCHRONOUS COUNTER
EQUIPMENT REQUIRED:-
3. OR GATE IC 7432 1
6. IC TRAINER KIT - 1
7. PATCHCORDS - 35
THEORY:-
Synchronous counter: - A simple way of implementing the logic for each bit of an ascending
counter (which is what is depicted in the image to the right) is for each bit to toggle when all of
the less significant bits are at a logic high state. For example, bit 1 toggles when bit 0 is logic
high; bit 2 toggles when both bit 1 and bit 0 are logic high; bit 3 toggles when bit 2, bit 1 and
bit 0 are all high; and so on. Synchronous counters can also be implemented with hardware
finite state machines. Hardware-based counters are of this type and they can be implemented
using the IC 7476
39
IC DIAGRAM:
TRUTH TABLE:
Input Present State Next State A B C
Down
0 0 0 0 1 1 1 1 X 1 X 1 X
0 1 1 1 1 1 0 X 0 X 0 X 1
0 1 1 0 1 0 1 X 0 X 1 1 X
0 1 0 1 1 0 0 X 0 0 X X 1
0 1 0 0 0 1 1 X 1 1 X 1 X
0 0 1 1 0 1 0 0 X X 0 X 1
40
0 0 10 001 0X X1 1X
0 001 000 0X 0X X1
LOGIC DIAGRAM:
PROCEDURE:-
6. After completed the experiments switch off the supply of the apparatus
RESULT: -Study of 4 bit synchronous counters and verified its truth table.
42
13. TO DESIGN AND VERIFY 4-BIT RIPPLE COUNTER ( ASYNCHRONOUS
COUNTER)
APPARATUS REQUIRED:-
3. IC TRAINER KIT - 1
4. PATCHCORDS - 30
THEORY:-
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
43
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.
RIPPLE COUNTER:
44
TRUTH TABLE:-
CLK QA QB QC QD
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 1 0 1
11 1 1 0 1
12 0 0 1 1
13 1 0 1 1
45
14 0 1 1 1
15 1 1 1 1
PROCEDURE:-
RESULT: - Study of 4 bit synchronous counter and verified its truth table .
46