All Tutorials
All Tutorials
Experiment: 01
Aim: Introduction to Digital IC trainer kit & verification of truth table of all the logic gates.
Objective 1: To identify and locate all the digital blocks available on the trainer kit.
The Digital IC trainer has well-laid out component patch containing all the popular
Digital IC’s. The component is soldered on a PCB, which lies below the patch panel. All the
important pins are brought out on the patch panel for external connection. The philosophy
behind this approach is that the learner or the student needs not to worry about pin numbers,
and thus save time in setting up experiments.
When experiments are carried out using Digital ICs one needs general instruments like
multimeters, pulse generators, and oscilloscope. The details of the Digital IC trainer can be
divided into 29 blocks.
Block 9: Breadboard
This consists of terminal strips breadboard (with 640 tie points) with a matrix
of 128 terminal for components and interconnection and contains 5
electrically connected tie points spaced on a continuous 0.1” matrix to
accept any components with 0.1 lead spacing.
Tutorial - 2
Theory:
AND Gate:
An AND gate has two or more but only one output. The output assumes the
logic 1 state, only and only when each one of its inputs is at logic 1 state. The
output assumes the logic 0 state even if one of its inputs is at logic 0 state.
The AND gate may, therefore, be defined as a device whose output is 1, if
and only if all its inputs are 1. Hence the AND gate is also called all or
nothing gate.
Logic symbol: Truth table:
Inputs Output
2-input AND Gate is
A B X
0 0 0
0 1 0
1 0 0
1 1 1
Page |5
OR Gate:
An OR gate may have two or more inputs but only one output. The output
assumes the logic 1 state, even if one of its inputs is in logic 1 state. Its
output assumes the logic 0 state, only when each one of its inputs is in logic
0 state. An OR gate may, therefore, be defined as a device whose output is
1, even if one of its input is 1. Hence an OR gate is also called an any or
all gate.
Logic symbol: Truth table:
Inputs Output
A B X
0 0 0
0 1 0
1 0 0
2 input OR Gate 1 1 1
Page |6
NOT Gate:
A NOT gate, also called an inverter, has only one input and, only one
output. It is a device whose output is always the complement of its input.
That is, the output of a NOT gate assumes the logic 1 state when its input
is in logic 0 state and assumes the logic 0 state when its input is in logic 1
state.
Input Output
A X
0 1
1 0
NOT gate
Page |7
NAND Gate:
NAND means NOT AND, i.e. the AND output is NOTed. So, a NAND gate is a
combination of an AND gate and a NOT gate. In fact NAND is a contraction of
the word NOT-AND. The expression for the output of the NAND gate can,
therefore, be written
as X ABC.... The output is logic 0 level, only when each of the inputs
assumes a
logic 1 level. For any other combination of inputs, the output is
logic 1 level.
Outpu
Inputs
t
A B X
0 0 1
0 1 1
1 0 1
2 input NAND Gate 1 1 0
Page |8
NOR Gate:
NOR means NOT OR, i.e. the OR output is NOTed. So, a NOR gate is a
combination of an OR gate and a NOT gate. In fact NOR is a contraction of
the word NOT-OR. The expression for the output of the NOR gate is,
X A B C The output is logic 1 level, only when each one of its inputs assumes a
logic 0 level. For any other combination of inputs, the output is a logic 0 level.
Inputs Output
A B X
0 0 1
0 1 0
1 0 0
2 input NOR Gate 1 1 0
Page |9
X-OR Gate:
An X-OR(Exclusive OR) gate is a two input, one output logic circuit, whose
output assumes a logic 1 state when one and only one of its two inputs
assumes a logic 1 state. Under the conditions when both the inputs assume
the logic 0 state, or when both the inputs assume the logic 1 state, the
output assumes a logic 0 state. Since X- OR gate produces an output 1 only
when the inputs are not equal, it is called an anti- coincidence gate or
inequality detector. The output of the X-OR gate is the modulo-2 sum of
the two inputs.
Whenever the inputs have an odd number of one’s the output is one. Thus
the Exclusive-OR us an odd function.
It can be used as an inverter by connecting one of the two input terminals
to logic 1 and feeding the input sequence to be inverted to the other
terminal.
Logic symbol: Truth table:
Inputs Output
A B X
0 0 0
0 1 1
1 0 1
2 input X-OR Gate 1 1 0
P a g e | 10
X- NOR Gate:
The XNOR gate (sometimes XORN'T, ENOR, EXNOR oyr NXOR and pronounced
as Exclusive NOR) is a digital logic gate whose function is the logical complement of the
exclusive OR (XOR) gate.
A high output (1) results if both of the inputs to the gate are the same. If one but not
both inputs are high (1), a low output (0) results.
Inputs Output
A B X
0 0 1
0 1 0
1 0 0
2 input X-NOR Gate 1 1 1
- -XXXX
P a g e | 11
Experiment: 03
Aim: Implementation of basic gates using Universal gates & simplification of given
Boolean function.
Objective 1: To verify the function of NAND gate and NOR gate as a Universal gate.
Apparatus:
Logisim Simulator.
Theory:
AND, OR, and NOT (Invert) gates are the basic building blocks of a digital computer. They are
called the basic gates. Any digital circuit of any complexity can be built using only these three
gates. A universal gate is a gate which alone can be used to build any logic circuit. With the
help of NAND and NOR gate we can perform the functions of all the three basic gates (AND,
OR, and NOT). AOI logic can be converted to NAND logic or NOR logic. Hence, NAND and NOR
gates are called as universal gates.
The diagrams given below show the realization of AND, OR, and NOT functions
using NOR gates.
-XXXX
P a g e | 16
Experiment: 04
Aim: Identification of logic diagram & Realization of EX-OR gate through universal
gates.
A.
B.
C.
D.
A B A’ B’ AB A’B’ X=AB+A’B’
0 0 1 1 0 1 1
1 0 0 1 0 0 0
0 1 1 0 0 0 0
1 1 0 0 1 0 1
2. DerivetheBooleanexpressionforthefollowingswitchingcirc
uit. Drawthetruthtable.
3. Construct EX-OR gate using NAND & NOR gates. Test the circuit using
logisim. Also draw necessary truthtable.
---xxx---
P a g e | 18
Tutorial 5
-------------
AIM: Implement the following Boolean functions without & with simplification.
1. F = AB + A(B + C) + B(B + C)
2. F = (A + B)(A + C)
3. F = A′B+BC′+BC+AB′C′
4. F = AB + ABC’D + B’C + ABCD
Output/Truth Table:
Distributive law :
F = (A+B)(A+C) A.A = A
= A+AC+BA+BC AC+BA = A+BC, distribu ive Law
t
= A+A+BC+BC
= A+BC
Output/Truth Table:
Distributive law :
F = A’B+BC’+BC+AB’C’ C’+C=1
= B(A’+C’)+BC+AB’C’ A’B+B=B, Absorption Law
= B+(A’+C’+C)+AB’C’
= B(A’+1)+AB’C’
=A’B+B+AB’C’
=B+AB’C’
Output/Truth Table:
F=
AB+ABC’D+B’C+ABCD
= AB+B’C+ABD(C’+C) Distributive law :
= AB+B’C+ABD C’+C=1
= AB(1+D)+B’C D+1=1, Identity Law
=AB+B’C
Output/Truth Table:
22
P a g e | 23
TUTORIAL :6
Aim: To implement half adder, full adder, half Subtractor and full Subtractor using logic gates.
Apparatus:
Theory:
The binary addition and subtraction are very basic operations in the digital computer. To
perform addition the adder circuit is used and for subtraction the subtractor circuit is used.
There are two types of Adders according to the number of inputs:
1. HalfAdder
2. FullAdder
Also, there are two types of Subtractor according to the number of inputs:
1. HalfSubtractor
2. FullSubtractor
ADDERS
HALF ADDER:
A Half-Adder is a combinational circuit with two binary inputs (augend and addend bits) and
two binary outputs (Sum and Carry bits). It adds the two inputs (A and B) an produces the
sum (S) and the carry (C) bits. It is an arithmetic circuit used to perform the arithmetic
operation of addition of two single bit words.
Inputs Outputs
A
HALF A B S C
ADDER
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Logic Equations:
C =AB
P a g e | 24
FULLADDER:
The full-Adder is a combinational circuit that adds two bits and a carry and outputs a sum bit
and a carry bit. The full-adder adds the bits A and B and the carry from the previous column
called the carry-in Cin and outputs the sum bit S and the carry bit called the carry-out Cout. The
variable S gives the value of the least significant bit of sum. The variable C out gives the
outputcarry.
BlockDiagram: Truthtable:
A S
FULL Inputs Outputs
ADDER
B A B Cin S Cout
Cout
Cin 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
Logic equations:
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
P a g e | 25
HALF SUBTRACTOR:
Half Subtractor Subtracts a single-bit binary value B from another A (i.e. A -B)
and produces a difference bit D and borrow out bit Bo. This operation is called
half subtraction and the circuit to realize it is called a half subtractor.
Bo = A’ B
Truthtable:
Inputs Outputs
A B D Bo
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
P a g e | 26
FULL SUBTRACTOR:
Subtracting two single-bit binary values, B, Cin from a single-bit value A produces a
difference bit D and a borrow out bit Bo. This is called full subtraction. The Boolean
functions describing the full-subtractorare:
Truthtable:
Inputs Outputs
A B Cin D Bo
0 0 0 0 0
0 0 1 1 0
0 1 0 1 1
0 1 1 0 1
1 0 0 1 1
1 0 1 0 0
1 1 0 0 0
1 1 1 1 0
P a g e | 27
---xxx---
P a g e | 28
P a g e | 29
EXPERIMENT : 07
Aim: To design and set up various logic circuits using 4-bit binary parallel adder IC 7483:
Theory:
The Full adder can add single-digit binary numbers and carries. The largest sum
that can be obtained using a full adder is (11)2. Parallel adders can add multiple-
digit numbers. If full adders are placed in parallel, we can add two- or four-digit
numbers or any other size desired. Figure below uses STANDARD SYMBOLS to
show a parallel adder capable of adding two, two-digit binary numbers. The
addend would be on A inputs, and the augend on the B inputs. For this
explanation we will assume there is no input to C0 (carry from a previous circuit)
Figure 3.1: 4-Bit Binary Parallel Adder (IC 7483 – internal architecture)
The 74LS83A is a high-speed 4-Bit binary Full Adder with internal carry look-
ahead. It accepts two 4-bit binary words (A1–A4, B1–B4) and a Carry Input
(C0). It generates the binary Sum outputs (S1–S4) and the Carry Output (C4)
from the most significant bit. The LS83A operates with either active HIGH or
active LOW operands (positive or negative logic). The 74LS283 is
recommended for new designs since it is identical in function with this device
and features standard corner powerpins.
• Check the outputs and note them down in the table for the
correspondinginputs.
• Verify that the outputs match with the expectedresults.
74LS
Schematicdi agram:
Pindiagr am:
ObservationTablefortheAdd
er
Cin Input A (Augend) Input B (Addend) Output S (Sum) Cout
C0 A3 A2 A1 A0 B3 B2 B1 B0 S S S S0 C3
3 2 1
0 0 0 1 1 1 0 1 0 1 1 0 1 0
0 0 0 0 1 1 1 0 0 1 1 0 1 0
Example: 8 + 3 = 11 (1011)
8 is realized as A3 A2
A 1A0 =1000
3 is realized as B3 B2
B 1 B0 =0011
0
P a g e | 31
Theory:
Example: 8 – 3 = 5 (0101)
8 is realized as A 3 A2A1A0 =1000
3 is realized as B 3 B2B1 B0 =0011
Output of NOT gate is 1’s complementof3=1100
Adder output is realized as S4 S3S2S1 = 0101 (After adding Cin = 1 and neglecting
MSB1)
• ConnectonesetofinputsfromA1toA4
pinsandtheothersetofinputsfromB1toB4 to the input of NOT gates as
shown in figure givenabove.
• Connect the pins from S1 to S4 & C4 to outputterminals.
• Connect C0 to Vcc. Make other connections as per above logic
diagram. Switch onthe kit.
• Apply the inputs to the subtractor as shown in the truth tables givenbelow.
P a g e | 32
• Check the outputs and note them down in the table for the
correspondinginputs.
• Verify that the outputs match with the expectedresults.
Output D
Cin Input A (subtrahend) Input B (minuend) Bout
(Difference)
C0 A4 A3 A2 A1 B4 B3 B2 B1 D4 D3 D2 D1 B4
1 1 1 0 1 1 0 1 1 1 0 0 0 1
1 1 1 1 0 0 1 1 1 1 0 1 1 1
Theory:
Procedure:
• Make connections as per above logic diagram using X-OR gates
and 7483IC.
• Connect M to either manual pulser or toggleswitch.
• Switch on the trainerkit.
• In order to Perform Addition, keep M = 0, supply required inputs
and recordyour results in table givenbelow.
• In order to implement the IC 7483 as a subtractor, keepM=1.
• Apply the B input through XOR gates (essentially taking complement ofB).
• Check the outputs and note them down in the table for the
the
expectedresults.
M = 0 (ADDER) M= 1 (SUBTRACTOR)
Conclusion:
By using this kind of circuit we can easily add and subtract binary
numbers and get the answer very quickly
They are also used in microcontrollers for arithmetic addition, PC(program counter)
and timers
P a g e | 36
Tutorial : 8
AIM:
A. To implement/design 4-bit binary to Gray codeconverter
B. To implement/design 4-bit Gray to binary code converter usingLogisim.
Theory:
These conversion methods strongly follow the operation of Exclusive-OR gate.
[Link] following steps let you know how to achieve Binary Code to Gray Code conversi n:
1. The left most significant bit of a given Gray code number is same as the mostleft
significant bit of thebinarynumber.
2. To obtain the successive binary bits to produce the equivalent binary number for the
givenGraycodenumber,addthefirstbitofGraycodetothesecondoneandwritedown
theresultnexttothefirstbit,addthesecondGraycodebittothirdoneandwritedown the result
andsoonnextto thesecondbitandrepeatthesameoperationuntilthelastbit.
These conversion techniques are used in digital computation to represent position of the
rotating disk. When it comes to
conversion as you online calculation, this converter
required. assists you to perform the
CIRCUITDIAGRAM: TruthTable
Tutorial : 9
AIM:
A. To implement/design a SR Flip Flop using cross-coupled NAND gates
&verify its functionality with SR Flip Flop Device.
Theory:
A basic NAND gate SR flip-flop circuit provides feedback from both of its outputs back to its
opposinginputsandiscommonlyusedinmemorycircuitstostoreasingledata [Link] flip-flop
actually has three inputs, Set, Reset and its current output Q relating to its current state
[Link]“Flip-flop”relatestotheactualoperationofthedevice,asitcanbe“flipped” into one
logic Set state or “flopped” back into the opposing logic Resetstate.
Conclusion:
A basic NAND gate SR flip-flop circuit provides feedback from both of its
output back to its opposing inputs and is commonly used in memory circuits to store a
single data bit.
P a g e | 39
Tutorial 10
AIM: To study/implement various Registers using Logisim.
Solution:
• Implement 4-bit Parallel In Serial Out Shift Register using D Flip Flop
• Implement 4-bit Parallel In Parallel Out Shift Register using D Flip Flop
P a g e | 41
Tutorial 11
AIM: To study about how to design acounter
Ring Counter:
---xxx---
P a g e | 42
Tutorial 12
Tutorial 13
AIM: To study about how to design acounter