Logic Design Lab Manual
Logic Design Lab Manual
MANUAL
NEC-353
SESSIONAL EVALUATION:-
TOTAL : 50 MARKS
Aim:-
Introduction to digital electronics lab- nomenclature of digital ICs, specifications, study of
the data sheet, concept of Vcc and ground, verification of the truth tables of logic gates
using TTL ICs.
Apparatus Required:-
Digital lab kit, single strand wires, breadboard, TTL IC’s
Gates IC NO.
AND 7408
OR 7432
NAND 7400
NOR 7402
NOT 7404
XOR 74136
Theory:-
Logic gates are idealized or physical devices implementing a Boolean function, which it
performs a logical operation on one or more logical inputs and produce a single output.
Depending on the context, the term may refer to an ideal logic gate, one that has for
instance zero rise time and unlimited fan out or it may refer to anon-ideal physical device.
1. Basic Gates
2. Universal Gates
3. Advanced Gates
1 1 1
1 0 0
0 1 0
0 0 0
IC 7408
2. OR gate: - Function of OR gate is to give output true when one of the either inputs
are true .In the remaining case output becomes false. Following table justify the
statement:-
0 0 0
0 1 1
1 0 1
1 1 1
3. NOT gate: -Function of NOR gate is to reverse the nature of the input .It
converts true input to false and vice versa. Following table justifies the statement :-
Input Output
1 0
0 1
IC 7404
1 1 0
1 0 1
0 1 1
0 0 1
IC 7400
2. NOR gate: - NOR gate gives the output true when both the two provided input
are false. In all the other cases output remains false. Following table justifies the
statement :-
1 1 0
1 0 0
0 1 0
0 0 1
Advanced Gates
1. XOR gate: - The function of XOR gate is to give output true only when both the
inputs are true. Following table explain this:-
1 1 0
1 0 1
0 1 1
0 0 0
IC 74136
If led glows red then output is true, if it glows green output is false, which is
numerically denoted as 1 and 0 respectively. The Color can change based on the
IC manufacturer it’s just verification of the Truth Table not the color change.
Result:-
All gates are verified. Observed output matches theoretical concepts.
Precautions:-
All connections should be made neat and tight.
Digital lab kits and ICs should be handled with utmost care.
While making connections main voltage should be kept switched off.
Never touch live and naked wires.
Ans: Logic gate is a physical device implementing a Boolean function and performs
Logical operation on one or more logic inputs and produces a single logic output.
Ans: NAND and NOR gates are called universal gates as any type of logic gates or logic
(xy)l = xl + yl
5. What is the primary motivation for using Boolean algebra to simplify logic
expressions?
Ans: OR gate
2. Which of the two input logic gate can be used to implement an inverter circuit?
3. Which are the logic gates whose all output entries are logic 1 except for one entry
there is logic 0?
Aim:-Implement of the given Boolean function using logic gates in both SOP and POS
forms
Two input SOP - A.B + A’.B’
Two input POS: - (A+B) (B+C) (A+C’)
Theory:-
a) SOP: - It is the Sum of product form in which the terms are taken as 1. It is
denoted in the K-map expression by sigma (∑)
A.B. + A’B’
A AND
B OR
Y
A NOT A’ AND
B NOTB’
Circuit Diagram
B OR Y
AND AND
C OR
CNOT
NOT OR
Procedure: -
For SOP form: - A.B + A’.B’
Precautions:-
1. Connecting wires should be rubbed with sand papers so that there is no rust.
2. Make sure that the apparatus is switched off while placing ICs and connecting of wires.
3. The connections should be tights.
4. ICs are placed in a proper way in the breadboard. There is no short of current in the in
same inputs.
Ans : A combinational circuit is one where the output at any time depends only on the
present combinations of inputs at that point of time.
Ans: Sequential circuit consists of a combinational circuit to which storage elements are
Connected to form a feedback path.
Ans: Minterms are the product terms which contain all variables either in normal or
complement form.
Ans: Maxterms are the sum terms which contain all variables either in normal or
complement form.
2) Convert the POS expression Y= (A+B) (B+C) (A+C) into canonical POS
expression.
3) Define POS.
Ans: POS form expresson contains two or more OR terms which are ANDed together
to form POS expression.
4) Define SOP.
Ans: If each term in SOP and POS form contains all the literals that are known then these
1. R-S flip-flop
2. J - K flip-flop
3. T Flip-Flop
4. D Flip-Flop
Apparatus:- IC 7400 (NAND Gate), IC 7402 (NOR Gate), IC 7408 (AND Gate).
Theory: -In case of sequential circuits the effect of all previous inputs on the
outputs is represented by a state of the circuit. Thus, the output of the circuit at any time
depends upon its current state and the input. These also determine the next state
of the circuit. The relationship that exists among the inputs, outputs, present states
and next states can be specified by either the state table or the state diagram.
Flip-Flop:-The basic one bit digital memory circuit is known as flip-flop.It can store
either 0or 1. Flip-flops are classifieds according to the number of inputs.
R-S Flip-Flop:- The circuit is similar to SR latch except enable signal is replaced by
clock pulse.
Logic Diagram
J-K Flip-Flop:- In a RS flip-flop the input R=S=1 leads to an indeterminate output. The
RSflip-flop circuit may be re-joined if both inputs are 1 than also the outputs are
complement of each other.
Logic Diagram
Logic Diagram
Procedure:-
1.Connections are made as per circuit diagram.
2.Verify truth-tables for various combinations of input .
1) What is a latch?
Ans: Storage elements that operate with signal levels are referred to as latches.
Ans: Storage elements controlled by a clock transitions are called flip flop.
5) What happens to the JK flip flop if the J input is treated as an inverter is wired
between J and K inputs?
Ans: JK flip flop becomes D flip flop
3) Which is the basic sequential building block in which the output follows the data
input as long as the enable input is active?
Ans: D latch
Ans: The algebraic description of the next state of the flip flop is called characteristic
equation.
Apparatus: -Digital trainer kit, 7432 IC, 7404 IC, 7411 IC and Connecting wires.
Theory:-
Procedure:-
Connect the supply from the trainer kit through patch cords; also connect circuit as
per circuit diagram.
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. For example in case of decimal values ranging from 0 to 7 the number of bits
required to encode these values is 3.
Procedure:-
1. Connect the supply from the trainer kit through patch chords; also connect circuit as
per circuit diagram.
2 . Givetheinputconnectionsto I 0 , I 1 , I 2 a n d I 3 .
4. For different combinations of inputs observe the output and match the truth table
De- multiplexers:-.A demultiplexer sometimes abbreviated d-mux, is a circuit that has one
input and more than one output. It is used when a circuit wishes to send a signal to one of many
devices. This description sounds similar to the description given for a decoder, but a decoder is
used to select among many devices while a demultiplexer is used to send a signal among many
devices.
Procedure:-
1. Connect the supply from the trainer kit through patch chords, also connect circuit
as per circuit diagram
4. For different combinations of inputs observe the output and match the truth table
Precautions:-
All connections should be made neat and tight.
Digital lab kits and ICs should be handled with utmost care.
While making connections main voltage should be kept switched off.
Never touch live and naked wires.
2) What is a demultiplexer?
Ans: Demultoplexer is a combinational logic circuit which accepts one input and
distributes it over several outputs.
4) What is an encoder?
Ans: An encoder is a combinational circuit which has 2n input lines and n output lines.
Ans: In priority encoder if two or more inputs are equal to 1 at the same time, the input
having the highest priority will take precedence.
Ans: Decoder
Ans: Decoders are used for data distribution, code conversion and they are used to route
the input data to a specified output line.
Ans: 4
Apparatus: -Digital trainer kit, AND-7411, OR-7432, NOT-7404 Gate IC, Connecting
wires.
Theory:-
The selection lines decide the number of inputs lines of particular multiplexer.
If the number of n inputs lines is equal to 2m, then m select lines are required
to select one of the n input line.
Note that if a binary zero appears on the data-select lines then data on input line D0
willappear on the output. Thus, data output Y is equal to D0 if and only if S1=0 and S0=0.
S1 S0 SELECTED
0 0 D0
0 1 D1
1 0 D2
1 1 D3
Precautions:-
1. All ICs should be checked before starting the experiment.
2. All the connection should be tight.
3. Always connect ground first and then connect Vcc.
4. Suitable type wire should be used for different types of circuit.
5. The kit should be off before change the connections.
6. After completed the experiments switch off the supply of the apparatus
1) What is a multiplexer?
Ans: A multiplexer accepts two or more streams of data and combines them into one
stream.
Ans: 4
Ans: Because multiplexer selects one of several input signals and directs to the output.
Ans: Multiplexers are used in data routing, data selection, parallel to serial conversion
and waveform generation.
Ans: 4
Apparatus:-
2. IC 7483
3. Connecting Wires
Theory:-
Adder: -An adder is a logic circuit which adds two or three bits at a time and give sum and
carry as the result.
Parallel Adder:-
A n-bit parallel adder can be constructed using number of full adders circuit connected in
parallel the carry output of each is connected to the carry input of the next higher-order
adder. Since all the bits of the augends and addend are fed into the adder circuits
simultaneously and the additions in each position are known as parallel adder.
A3 A2 A1 A0 → Augends bits
B3 B2 B1 B0 → Addend bits
S3 S2 S1 S0 → Sum bits
TRUTH TABLE:-
The Truth table operation of the 4-bit Parallel Adder is shown below:
INPUTS OUTPUTS
A0 A1 A2 A3 B0 B1 B2 B3 CY1 S0 S1 S2 S3 CY0
0 0 0 1 0 1 0 1 1 1 1 0 0 1
1 0 0 0 1 1 1 0 0 0 0 0 0 1
Result:-
For various combinations of selected input lines, observed the LED output and verified the
truth table.
Ans: A logic circuit which performs the operation of two binary bits is called a half
adder.
Ans:
Inputs Outputs
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Ans: A full adder is a combinational logic circuit that performs the arithmetic sum of
three input bits.
Ans: Parallel adders are digital circuits that compute the addition of variable binary strings
of equivalent or different size in parallel.
Ans:
A B C S Co
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) Draw the block diagram of full adder as a combination of two half adder.
Ans:
2) Write the Boolean expression for the outputs S and Co of a full adder from the
truth table.
Ans: S = C ( A B )
Co = AB + C( A B )
Ans: serial adder adds bits serially but parallel adder add bits at the same time.
Serial adder depends on previous outputs but parallel adder does not depends on
previous outputs. Parallel adder takes less time to execute compare to serial adder.
4) How many full adders are required to construct an m-bit parallel adder?
Apparatus:-
3. OR GATE IC 7432 1
6. IC TRAINER KIT - 1
7. PATCH CORDS - 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.Which
are more complex but allow for smoother, more stable transitions?
Hardware-based counters are of this type and they can be implemented using the IC 7476
TRUTH TABLE:-
Input PresentState NextState A B C
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
0 0 1 0 0 0 1 0 X X 1 1 X
0 0 0 1 0 0 0 0 X 0 X X 1
1 0 0 1 0 1 0 0 X 1 X X 1
1 0 1 0 0 1 1 0 X X 0 1 X
1 0 1 1 1 0 0 1 X X 1 X 1
1 1 0 0 1 0 1 X 0 0 X 1 X
1 1 0 1 1 1 0 X 0 1 X X 1
1 1 1 0 1 1 1 X 0 X 0 1 X
1 1 1 1 0 0 0 X 1 X 1 X 1
LOGIC DIAGRAM
Procedure:-
(i) Connections are given as per circuit diagram.
Result: -Study of 4 bit synchronous counters and verified its truth table.
Precautions:-
1. All ICs should be checked before starting the experiment.
6. After completed the experiments switch off the supply of the apparatus
1) What is a register?
Ans Registers are used for temporary storage of binary information. Registers are
also used for shifting the binary information stored in it.
3) What is a counter?
Ans: A counter is a sequential logic circuit capable of counting the number of clock
pulses arriving at its clock input.
Ans: Synchronous counter is one in which all the flip flops are triggered
simultaneously by clock pulse.
5) How the synchronous counter eliminate the delay problems encountered with
asynchronous counters.
Ans: :In synchronous counters all the flip flops are triggered simultaneously by
clock pulse. This eliminates the delay problem.
4) A 4 bit up/down binary counter is in the down mode and in the 1100 state. To
what state does the counter go on the next clock pulse.
Ans: 1011
APPARATUS REQUIRED:-
3. IC TRAINER KIT - 1
4. PATCH CORDS - 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 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.
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
14 0 1 1 1
15 1 1 1 1
Result: -
Study of 4 bit synchronous counter and verified its truth table
Precautions:-
Ans: Asynchronous counter is one in which flip flops are connected in such a way
that the first flip flop output is the clock for the nest flip flop.
Ans: High frequency applications are limited because of internal propagation delay.
Ans: The number of states through which the counter passes before returning to the
starting state is called modulus counter.
Ans: The state table represents the state diagram in tabular form. It consists of
present state, next state and flip flop inputs.
Post ExperimentQuestions:-
Ans: When the signal is high, the counter operates as an up counter, when the
signal is low the counter operates as a down counter.
Ans: 4
Ans: By taking the counter outputs Qlinstead of Q the up counter can be made to
work as a down counter.