Digital Electronics Lab Manual-Reference
Digital Electronics Lab Manual-Reference
Design and implementation of combinational circuits using basic gates for arbitrary
2.
functions, code converters.
THEORY:
Circuit that takes the logical decision and the process are called logic gates. Each gate has one
or more input and only oneoutput.
OR, AND and NOT are basic gates. NAND and NOR are known as universal gates. Basic gates
form these gates.
AND GATE
The AND gate performs a logical multiplication commonly known as AND function. The
output is high when both the inputs are high. The output is low level when any one of the inputs islow.
OR GATE
The OR gate performs a logical addition commonly known as OR function. The output is
high when any one of the inputs is high. The output is low level when both the inputs are low.
NOT GATE
The NOT gate is called an inverter. The output is high when the input is low. The output is
low when the input is high.
X- ORGATE
The output is high when any one of the inputs is high. The output is low when both the inputs
are low and both the inputs are high.
NAND GATE
The NAND gate is a contraction of AND-NOT. The output is high when both inputs are low
and any one of the input is low .The output is low level when both inputs arehigh.
NOR GATE
The NOR gate is a contraction of OR-NOT. The output is high when both inputs are low. The
output is low when one or both inputs are high.
AND GATE:
SYMBOL: PINDIAGRAM:
OR GATE:
NOT GATE :
SYMBOL: PINDIAGRAM:
X-OR GATE :
SYMBOL : PIN DIAGRAM:
2- INPUT NANDGATE
SYMBOL PINDIAGRAM
3- INPUT NANDGATE
NOR GATE
Ex. No:
VERIFICATION OF BOOLEAN THEOREMS USING BASIC GATES
Date:
Aim:
To verify the truth table of basic Boolean algebric laws by using logic gates.
Components Required:
S.NO COMPONENTS RANGE QUANTITY
3 Bread board - 1
4 Connecting wires - As required
Theory:
Demorgan’s Theorems
First Theorem:
It states that the complement of a product is equal to the sum of the complements.
(AB)′ =A′ +B′
Second Theorem:
It states that the complement of a sum is equal to the product of the complements.
(A+B)′ =A′.B′
Boolean Laws:
Boolean algebra is a mathematical system consisting of a set of two or more distinct elements, two binary
operators denoted by the symbols (+) and (.) and one unary operator denoted by the symbol either bar (-) or prime
(„). They satisfy the commutative, associative, distributive and absorption properties of the Boolean algebra.
Commutative Property:
Boolean addition is commutative, given by A+B=B+A
Boolean algebra is also commutative over multiplication, given by A.B=B.A
De-Morgan’s Theorem: 1
De-Morgan’s Theorem: 2
Associative Property:
The prime implicants are found by using the elimination of complementary function. The circuit diagram for the
function is drawn using AND.OR and NOT gates. The output for the corresponding input of A1, A0, B1, BO is
calculated and the truth table is drawn.
Procedure:
1. Test the individual ICs with its specified verification table for proper working.
2. Connections are made as per the circuit/logic diagram.
3. Make sure that the ICs are enabled by giving the suitable Vcc and ground connections.
4. Apply the logic inputs to the appropriate terminals of the ICs.
5. Observe the logic output for the inputs applied.
6. Verify the observed logic output with the verification/truth table given.
Commutative Law:
Truth Table:
Input Output
A B A+B B+A
0 0 0 0
0 1 1 1
1 0 1 1
1 1 1 1
Associative Law:
Truth Table:
Input Output
0 0 0 0 0 0 0
0 0 1 0 1 1 1
0 1 0 1 1 1 1
0 1 1 1 1 1 1
1 0 0 1 1 0 1
1 0 1 1 1 1 1
1 1 0 1 1 1 1
1 1 1 1 1 1 1
Distributive Law:
Truth Table:
Input Output
A.B+A.
A B C B+C A.(B+C) A.B A.C C
0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0
0 1 0 1 0 0 0 0
0 1 1 1 0 0 0 0
1 0 0 0 0 0 0 0
1 0 1 1 1 0 1 1
1 1 0 1 1 1 0 1
1 1 1 1 1 1 1 1
Result:
Thus the verification of Boolean laws and theorems using digital logic gates were performed.
Ex. No: Design and implementation of combinational circuits using
Date:
basic gates for arbitrary functions, code converters.
Aim:
To design and implement 4-bit
(i) Binary to gray codeconverter
(ii) Gray to binary codeconverter
(iii) BCD to excess-3 codeconverter
(iv) Excess-3 to BCD codeconverter
APPARATUS REQUIRED:
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.
The bit combination assigned to binary code to gray code. Since each code uses four bits
to represent a decimal digit. There are four inputs and four outputs. Gray code is a non-weighted
code.
The input variable are designated as B3, B2, B1, B0 and the output variables are designated
as C3, C2, C1, Co. from the truth table, combinational circuit is designed. The Boolean functions
are obtained from K-Map for each output variable.
A code converter is a circuit that makes the two systems compatible 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 threeoutputs.
Logic Diagram:
BINARY TO GRAY CODE CONVERTOR
G3 = B3
K-Mapfor G1: K-Map forG0:
Truth Table:
| Binaryinput | Graycodeoutput |
B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
1 1 1 1 1 0 0 0
Logic Diagram:
GRAY CODE TO BINARY CONVERTOR
B3 = G3
K-MapforB1: K-Map forB0:
Truth Table:
| GrayCode | BinaryCode |
G3 G2 G1 G0 B3 B2 B1 B0
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
Logic Diagram:
E3 = B3 + B2 (B0 + B1)
B3 B2 B1 B0 G3 G2 G1 G0
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
Logic Diagram:
EXCESS-3 TO BCD CONVERTOR
A = X1 X2 + X3X4X1
K-M apfor C: K-Map forD:
Truth Table:
B3 B2 B1 B0 G3 G2 G1 G0
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
PROCEDURE:
(i) Connections were given as per circuitdiagram.
(ii) Logical inputs were given as per truthtable
(iii) Observe the logical output and verify with the truthtables.
Result:
Thus, binary to gray code converter, Gray to binary code converter, BCD to excess-3
code converter, Excess-3 to BCD code converter was implemented.
Ex. No: DESIGN AND IMPLEMENT HALF/FULL ADDER AND
SUBTRACTOR.
Date:
AIM
To design and implement 4-bit adder / subtractor and BCD adder using IC
Apparatus Required:
1. IC IC 7483 1
3. IC Trainer Kit - 1
4. Patch Cords - 40
Theory:
A binary adder is a digital circuit that produces the arithmetic sum of two
binary numbers. It can be constructed with full adders connected in 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 of ‘B’ are designated by
subscript numbers from right to left, with subscript 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 through the full adder to the output carry C 4.
4 Bit Binary Adder/Subtractor:
The addition and subtraction operation can be combined into one circuit with
one common binary adder. The mode input M controls the operation. When M=0,
the circuit is adder circuit. When M=1, it becomes subtractor.
Consider the arithmetic addition of two decimal digits in BCD, together with
an input carry from a previous stage. Since each input digit does not exceed 9, the
output sum cannot be greater than 19, the 1 in the sum being an input carry. The
output of two decimal digits must be represented in BCD and should appear in the
form listed in the columns.
ABCD adder that adds 2 BCD digits and produce a sum digit in BCD. The 2
decimal digits, together with the input carry, are first added in the top 4 bit adder to
produce the binary sum.
PROCEDURE:
(i) Connections were given as per circuitdiagram.
(ii) Logical inputs were given as per truthtable
(iii) Observe the logical output and verify with the truthtables.
Pin Diagram for IC 7483:
Logic Diagram:
4-Bit Binary Adder
4-Bit Binary Subtractor
5- Bit BinaryAdder/Subtractor
Truth Table:
Input Data A Input Data B Addition Subtraction
A4 A3 A2 A1 B4 B3 B2 B1 C S4 S3 S2 S1 B D4 D3 D2 D1
1 0 0 0 0 0 1 0 0 1 0 1 0 1 0 1 1 0
1 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 0 0
0 0 1 0 1 0 0 0 0 1 0 1 0 0 1 0 1 0
0 0 0 1 0 1 1 1 0 1 0 0 0 0 1 0 1 0
1 0 1 0 1 0 1 1 1 0 0 1 0 0 1 1 1 1
1 1 1 0 1 1 1 1 1 1 0 1 0 0 1 1 1 1
1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 1
BCD ADDER
K- MAP
Y = S4 (S3 + S2)
Truth Table:
S4 S3 S2 S1 C
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 0
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
Result:
Thus, the 4-bit adder / subtractor and BCD adder using IC 7483 was
designed and implement.
Ex. No: Design and implement combinational circuits using MSI devices:
Date:
Application using multiplexers
Aim:
To design and implement multiplexer and De-multiplexer using logic gates and study of
IC 74150 and IC 74154.
Apparatus Required:
2. OR GATE IC 7432 1
2. IC TRAINER KIT - 1
3. PATCH CORDS - 32
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 is controlled by a set of selection lines. Normally there are 2n input line and n selection lines
whose bit combination determine which input isselected.
DEMULTIPLEXER:
Function Table:
S1 S0 INPUTS Y
0 0 D0 → D0 S1’ S0’
0 1 D1 → D1 S1’ S0
1 0 D2 → D2 S1 S0’
1 1 D3 → D3 S1 S0
Truth Table:
S1 S0 Y = OUTPUT
0 0 D0
0 1 D1
1 0 D2
1 1 D3
Block Diagram for 1:4 Demultiplexer:
Function Table
S1 S0 INPUT
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
Truth Table:
INPUT OUTPUT
S1 S0 I/P D0 D1 D2 D3
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
(i) C
o
n
n
e
c
t
i
o
n
s
a
r
e
g
i
v
e
n
PROCEDURE:
a
s (i) Connections were given as per circuitdiagram.
p (ii) Logical inputs were given as per truthtable
e (iii) Observe the logical output and verify with the truthtables.
r
c
i
r
c
u
i
t
d
Result:
i
a Thus, the multiplexer and De-multiplexer was designed using logic gates
g and implement.
r
a
m
.
Ex.No: DESIGN AND IMPLEMENTATION OF MAGNITUDE
COMPARATOR
Date:
APPARATUS REQUIRED:
Sl.No. COMPONENT SPECIFICATION QTY.
1. AND GATE IC 7408 2
2. X-OR GATE IC 7486 1
3. OR GATE IC 7432 1
4. NOT GATE IC 7404 1
5. 4-BIT MAGNITUDE IC 7485 2
COMPARATOR
6. IC TRAINER KIT - 1
7. PATCH CORDS - 30
THEORY:
The comparison of two numbers is an operator that determine one number is greater than, less
than (or) equal to the other number. A magnitude comparator is a combinational circuit that compares
two numbers A and B and determine their relative magnitude. The outcome of the comparator is
specified by three binary variables that indicate whether A>B, A=B (or)A<B.
A = A3 A2 A1A0 B = B3 B2 B1B0
The equality of the two numbers and B is displayed in a combinational circuit designated by
the symbol (A=B).
This indicates A greater than B, then inspect the relative magnitude of pairs of significant
digits starting from most significant position. A is 0 and that of B is 0.
We have A<B, the sequential comparison can be expanded as
DIGITAL ELECTRONICS LAB
The same circuit can be used to compare the relative magnitude of two BCD
digits.
Where, A = B is expanded as,
A = B = (A3 + B3) (A2 + B2) (A1+B1) (A0 +B0)
x3 x2 x1 x0
LOGIC DIAGRAM:
4 BIT MAGNITUDE COMPARATOR
DIGITAL ELECTRONICS LAB
K MAP
TRUTH TABLE
LOGIC DIAGRAM:
2 BIT MAGNITUDE COMPARATOR
LOGIC DIAGRAM:
8 BIT MAGNITUDE COMPARATOR
TRUTH TABLE:
TRUTH TABLE
A B A>B A=B A<B
0000 0000 0000 0000 0 1 0
0001 0001 0000 0000 1 0 0
0000 0000 0001 0001 0 0 1
PROCEDURE:
RESULT:
Thus the 2-bit and 8-bit magnitude comparator circuits are implemented using logic gates and
IC 7485.
Ex. No:
DESIGN AND IMPLEMENTATION OF PARITY
Date: CHECKER/GENERATOR
AIM:
To design and implement 16 bit odd/even parity checker and generator using
IC 74180.
APPARATUS REQUIRED:
THEORY:
A parity bit is used for detecting errors during transmission of binary information. A parity
bit is an extra bit included with a binary message to make the number is either even or odd. The
message including the parity bit is transmitted and then checked at the receiver ends for errors. An
error is detected if the checked parity bit doesn’t correspond to the one transmitted. The circuit that
generates the parity bit in the transmitter is called a ‘parity generator’ and the circuit that checks the
parity in the receiver is called a ‘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 theinformation is passed in even parity, then the bits required
must have an even number of 1’s. An error occur during transmission, if the received bits have an
odd number of 1’s indicating that one bit has changed in value duringtransmission.
PIN DIAGRAM FOR IC 74180:
FUNCTION TABLE:
INPUTS OUTPUTS
Number of High Data PE PO ∑E ∑O
Inputs (I0 – I7)
EVEN 1 0 1 0
ODD 1 0 0 1
EVEN 0 1 0 1
ODD 0 1 1 0
X 1 1 0 0
X 0 0 1 1
LOGIC DIAGRAM:
:
TRUTH TABLE
I7 I6 I5 I4 I3 I2 I1 I0 I7’I6’I5’I4’I3’I2’11’ I0’ Active ∑E ∑O
0 0 0 0 0 0 0 1 0 0 0 0 0 0 00 1 1 0
0 0 0 0 0 1 1 0 0 0 0 0 0 1 10 0 1 0
0 0 0 0 0 1 1 0 0 0 0 0 0 1 10 1 0 1
LOGIC DIAGRAM:
TRUTH TABLE
ODD/EVEN PARITY CHECKER
INPUT OUTPUT
A B C D ODD EVEN
0 0 0 0 1 0
0 0 0 1 0 1
0 0 1 0 0 1
0 0 1 1 1 0
0 1 0 0 0 1
0 1 0 1 1 0
0 1 1 0 1 0
0 1 1 1 0 1
1 0 0 0 0 1
1 0 0 1 1 0
1 0 1 0 1 0
1 0 1 1 0 1
1 1 0 0 1 0
1 1 0 1 0 1
1 1 1 0 0 1
1 1 1 1 1 0
LOGIC DIAGRAM:
16 BIT ODD/EVEN PARITY GENERATOR
TRUTH TABLE:
I7 I6 I5 I4 I3 I2 I1 I0 I7 I6 I5 I4 I3 I2 I1 I0 Active ∑E ∑O
1 1 0 0 0 0 0 0 1 1 0 0 0 0 00 1 1 0
1 1 0 0 0 0 0 0 1 1 0 0 0 0 00 0 0 1
1 1 0 0 0 0 0 0 0 1 0 0 0 0 00 0 1 0
LOGIC DIAGRAM:
4BIT ODD/EVEN PARITY GENERATOR
TRUTH TABLE:
INPUT OUTPUT
A B C ODD EVEN
0 0 0 1 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 0 1
PROCEDURE:
RESULT:
Thus the 16 bit odd/even parity checker and generator circuit designed and implemented
using IC 74180.
Ex. No: DESIGN AND IMPLEMENTATIOIN OF 4 BIT
Date:
RIPPLECOUNTER AND MOD 10/MOD 12
RIPPLECOUNTER
Aim:
To design and verify 4 bit ripple counter mod 10/ mod 12 ripple counter.
Apparatus Required:
3. IC TRAINER KIT - 1
4. PATCH CORDS - 30
Theory:
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
Logic Diagram for Mod - 10 Ripple Counter:
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 0 0 0
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 0 0
PROCEDURE:
Result:
Thus, the 4 bit ripple counter mod 10/ mod 12 ripple counters was designed and verified.
Ex. No: DESIGN AND IMPLEMENTATION OF 3
Date:
BITSYNCHRONOUS UP/DOWN COUNTER
Aim:
Apparatus Required:
3. OR GATE IC 7432 1
6. IC TRAINER KIT - 1
7. PATCH CORDS - 35
Theory:
State Diagram:
Characteristics Table:
Q Qt+1 J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
Logic Diagram:
Truth Table:
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 0 0 0 1 0 X 0 X 1 X
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
Procedure:
Result:
AIM
To design and implement
Apparatus Required:
2. OR GATE IC 7432 1
3. IC TRAINER KIT - 1
4. PATCH CORDS - 35
Theory:
Logic Diagram:
1 1 0
2 0 0
3 0 0
4 1 1
5 X 0
6 X 0
7 X 1
Logic Diagram:
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
Logic Diagram:
CLK Q3 Q2 Q1 Q0 O/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
Logic Diagram:
CLK DA DB DC DD QA QB QC QD
1 1 0 0 1 1 0 0 1
2 1 0 1 0 1 0 1 0
Procedure:
Result:
Thus, the Serial in serial out, Serial in parallel out, Parallel in serial out,
Parallel in parallel out was designed and implemented using flip flops.
Ex. No: DESIGN AND IMPLEMENTATION OF ENCODER AND
DECODER
Date:
AIM
To design and implement encoder and decoder using logic gates and study of IC 7445
and IC 74147.
Apparatus Required:
2. OR Gate IC 7432 3
2. IC Trainer Kit - 1
3. Patch Cords - 27
Theory:
Encoder:
BCD to DecimalDecoder:
Logic Diagram for Encoder:
Truth Table:
INPUT OUTPUT
Y1 Y2 Y3 Y4 Y5 Y6 Y7 A B C
1 0 0 0 0 0 0 0 0 1
0 1 0 0 0 0 0 0 1 0
0 0 1 0 0 0 0 0 1 1
0 0 0 1 0 0 0 1 0 0
0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 1 1 1 1
INPUT OUTPUT
E A B D0 D1 D2 D3
1 0 0 1 1 1 1
0 0 0 0 1 1 1
0 0 1 1 0 1 1
0 1 0 1 1 0 1
0 1 1 1 1 1 0
Procedure:
Result:
Thus, the encoder and decoder were designed using logic gates and implement .