DECO Fil
DECO Fil
DECO Fil
SCHOOL OF TECHNOLOGY
PANDIT DEENDAYAL ENERGY UNIVERSITY
SESSION 2024-25
SUBMITTED BY
NAME : Kouadio Akotto Daniel
ROLL NO. : 23BCP471
DIVISION : 7
COURSE NAME : Digital Electronics and
Computer Organization
COURSE CODE : 20CP203P
AND Gate :
• Definition: The AND gate outputs a high signal (1) only if all of its inputs are high
(1).
• Output Operation: For inputs A and B, the output X= A*B
• Truth table
OR Gate
• Definition: The OR gate outputs a high signal (1) if at least one of its inputs is high
(1).
• Output Operation: For inputs A and B, the output X= A+B
• Truth table
NOT Gate
• Definition: The NOT gate, also known as an inverter, outputs the opposite of its input.
• Output Operation: For input AAA, the output X= ¬A
• Truth table
NAND Gate
• Definition: The NAND gate outputs a low signal (0) only if all of its inputs are high
(1); it’s the inverse of the AND gate.
• Output Operation: For inputs A and B, the output X= ¬(A*B)
• Truth table
NOR Gate
• Definition: The NOR gate outputs a high signal (1) only if all of its inputs are low (0);
it’s the inverse of the OR gate.
• Output Operation: For inputs AAA and BBB, the output X=¬(A+B)
• Truth table
• Definition: The XOR gate outputs a high signal (1) only if exactly one of its inputs is
high (1). It’s often used for binary addition.
• Output Operation: For inputs AAA and BBB, the output X=A⊕B
• Truth table
XNOR Gate (Exclusive NOR)
• Definition: The XNOR gate outputs a high signal (1) if both inputs are the same,
either both 0 or both 1. It is the inverse of the XOR gate.
• Output Operation: For inputs AAA and BBB, the output X=¬(A⊕B)
• Truth table
EXPERIMENT 2: HALF ADDER
AIM: To design half adder using gates and verify their truth tables.
SOFTWARE USED: Logisim
THEORY What
is an Adder?
An adder is a digital logic circuit in electronics that is extensively used for the addition of
numbers. In many computers and other types of processors, adders are even used to calculate
addresses and related activities and calculate table indices in the ALU and even utilized in other
parts of the processors. These can be built for many numerical representations like excess-3 or
binary coded decimal. Adders are basically classified into two types: Half Adder and Full
Adder.
HALF ADDER
A half adder is a type of adder, an electronic circuit that performs the addition of numbers.
The half adder is able to add two single binary digits and provide the output plus a carry
value. It has two inputs, called A and B, and two outputs S (sum) and C (carry). The common
representation uses a XOR logic gate and an AND logic gate.
1. EQUATIONS
AIM: To design Full Adder using gates and verify their truth tables.
THEORY
1. FULL ADDER:
Full Adder is the adder which adds three inputs and produces two outputs. The first two inputs
are A and B, and the third input is an input carry as C-IN. The output carry is designated as C-
OUT and the normal output is designated as S which is SUM.
A full adder logic is designed in such a manner that can take eight inputs together to create a
byte-wide adder and cascade the carry bit from one adder to the another.
1. EQUATIONS:
EXPERIMENT 4
Block Diagram:
Truth Table:
SOP Expressions:
Difference (D) = A’B+AB’
Borrow (B) = A’B
Truth Table:
SOP Expressions:
Difference (D) = (A B) 'Borrowin'
Borrow (B) = A'.B + (A B)'
Observations:
(1) Half Subtractor
(a) Normal Gates:
EXPERIMENT 5
Aim: To simulate 2:1 MUX, 4:1 MUX and 8:1 MUX using normal gates and
NAND gate.
Software: logisim
Theory:
Multiplexer is a data selector which takes several inputs and gives a single
output. In multiplexer we have 2n input lines and 1 output lines where n is the
number of selection lines. They are also termed as “Data n selector, parallel to
serial convertor, many to one circuit, universal logic circuit”. There are 4 types
of multiplexers:
(1) 2:1 MUX
(2) 4:1 MUX
(3) 8:1 MUX
(4)16:1 MUX
Block Diagram:
Truth Table:
Logical Expression:
Z=A’0+A1
Block Diagram:
Truth Table:
0 0
0 1
1 0
1 1
Logical Expression:
Y= 0′1′0 + 1′10 + 21′0 + 310
Block Diagram:
Truth Table:
Logical Expression:
Observations:
(1) 2:1 MUX
(2) 4:1 MUX
(a) Normal Gates:
The 2:1 MUX, 4:1 MUX and 8:1 MUX circuits have been simulated using
normal gates and NAND gate.
EXPERIMENT 6
Aim: To simulate 4-bit Parallel Adder and Parallel Subtractor
Software: Logisim
Theory:
(1) Parallel Adder:
A binary adder that is capable of forming sum and carry outputs for addend and
augend words of greater than one bit in length by operating on corresponding
pairs of addend and augend bits in parallel, i.e. at the same time is known as a
parallel adder.
It consists of full adders connected in a chain where the output carry from each
full adder is connected to the carry input of the next higher order full adder in
the chain.
An n-bit parallel adder requires n full adders to perform the operation.
Observations:
(1) Parallel Adder
Result:
The 4-bit parallel adder and parallel subtractor circuits have been simulated.
EXPERIMENT 7
Aim: To design a 1:4 DEMUX and 1:8 DEMUX using NAND Gate.
Software: logisim
Theory:
A De-multiplexer (DEMUX) performs the reverse operation of a multiplexer i.e.
it receives one input and distributes it over several outputs. De-multiplex means
one into many.
De-multiplexing is the process of taking information from one input and
transmitting the same over one of several outputs.
They are classified into four types:
(1) 1:2 DEMUX
(2) 1:4 DEMUX
(3) 1:6 DEMUX
(4) 1:8 DEMUX
Block Diagram:
Truth Table:
SELECT OUTPUT
0 0 Data 0 0 0
0 1 0 Data 0 0
1 0 0 0 Data 0
1 1 0 0 0 Data
Logical Expressions:
Y0= S′1S′0
Y1= S′1S0
Y2= S1S′0
Y3= S1S0
Block Diagram:
Truth Table:
A
Logical Expressions:
Y0= S′2S′1S′0
′2 S1S′0
Y3=S′2 S1S0
Y4= S2S′1S′0
Y7=S2 S1S0
Observations:
(1) 1:4 DEMUX
(a)
(b)
(c)
(d)
(e)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
Result:
The circuit for 1:4 DEMUX has been simulated.
EXPERIMENT 8
(1) 2:4 Decoder: A 2:4 Decoder has 2 input lines 0 and 1, an enable line ‘E’
and 4 output lines Y0, Y1, Y2 and Y3.
Logical Expressions:
= E.A1. A0
= E.A1. A′0
= E.A′1. A0
= E.A′1. A′0
(2) 3:8 Decoder: A 3:8 Decoder has 3 input lines S0, S1 and S2 , an enable line
‘E’ and 8 output lines D0, D1, D2, D3, D4, D5, D6, D7.
Block Diagram:
= E.S′2. S′1. S′0
= E. S′2. S′1. S0
= E. S2. S′1. S0 = E.
S′2. S1. S0
= E. S2. S1. S0
Observations:
(1) 2:4 Decoder
(a)
(b)
(c)
(d)
(c)
(d)
(e)
(f)
(g)
(h)
Block Diagram:
Truth Table:
Observations:
(a) Sum
(b) AND
(c) OR
(d) XOR
Result:
ALU logic circuit has been designed.
OPEN-ENDED EXPERIMENT
Aim: To design a 4-bit combinational shifter using logic gates
Software: Logisim
Theory:
Shift micro-operations are used for serial transfer of data.
Information transferred through the serial input determines the type of shift.
There are three types of shift.
(1) Logical shift
(2) Circular shift
(3) Arithmetic shift
Block Diagram:
Observations:
Result:
4-bit combinational shifter using logic gates has been designed successfully.