DPCO Manual
DPCO Manual
DPCO Manual
AIM:
To study about logic gates and verify their truth tables.
APPARATUS REQUIRED:
SL No. COMPONENT SPECIFICATION QTY
1. AND GATE IC 7408 1
2. OR GATE IC 7432 1
3. NOT GATE IC 7404 1
4. NAND GATE 2 I/P IC 7400 1
5. NOR GATE IC 7402 1
6. X-OR GATE IC 7486 1
7. NAND GATE 3 I/P IC 7410 1
8. IC TRAINER KIT - 1
9. PATCH CORD - 14
THEORY:
Circuit that takes the logical decision and the process are called logic gates.
Each gate has one or more input and only one output.
OR, AND and NOT are basic gates. NAND, NOR and X-OR are known as
universal gates. Basic gates form these gates.
AND GATE:
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.
NAND GATE:
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.
X-OR GATE:
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. When number of inputs
for an ex-or gate exceeds two the operation can be described as follows: “When the
input contains odd number of 1s then the output becomes high, when the number
of 1s in the input contains even number of 1s or zero 1s then the output becomes low.
PROCEDURE:
(i) Connections are given as per circuit diagram.
(ii) Logical inputs are given as per circuit diagram.
(iii) Observe the output and verify the truth table.
AND GATE:
OR GATE
NOT GATE:
NOR GATE:
RESULT:
Ex. No: 2 DESIGN AND IMPLEMENTATION OF COMBINATIONAL
Date: CIRCUITS USING BASIC GATES FOR ARBITRARY FUNCTIONS
OBJECTIVE:
To design and implement the circuit for the following function
1. F=ABC+C’
2. F=A’B’+C
OUTCOME:
It gives the idea about the construction of combinational circuits for arbitrary functions.
PRE-REQUSITE:
Users must have basic ideas about the gates and their truth table and also the idea about
combinational circuits.
INTRODUCTION:
The purpose of this experiment is to construct the combinational circuits for arbitrary
functions using the basic gates.
APPARATUS REQUIRED:
2. OR GATE IC 7432 1
5. IC TRAINER KIT - 1
6. PATCH CORDS - 35
PROCEDURE:
LOGIC DIAGRAM:
TRUTH TABLE:
F=ABC+C’ F=A’B’+C
OUTPUT INPUT OUTPUT
A B C F=ABC+C’ A B C F=A’B’+C
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 1 0 1 0 1 0 0
0 1 1 0 0 1 1 1
1 0 0 1 1 0 0 0
1 0 1 0 1 0 1 1
1 1 0 1 1 1 0 0
1 1 1 1 1 1 1 1
RESULT:
EXPT NO. : 3 IMPLEMENTATION OF 4-BIT
DATE : ADDER AND SUBTRACTOR
AIM:
To design and implement 4-bit adder and subtractor using IC 7483.
APPARATUS REQUIRED:
THEORY:
4 BIT BINARY ADDER:
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 C4.
4 BIT BINARY SUBTRACTOR:
The circuit for subtracting A-B consists of an adder with inverters, placed
between each data input ‘B’ and the corresponding input of full adder. The input
carry C0 must be equal to 1 when performing subtraction
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.
4 BIT BCD ADDER:
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.
LOGIC DIAGRAM:
4-BIT BINARY SUBTRACTOR
LOGIC DIAGRAM:
4-BIT BINARY ADDER/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
LOGIC DIAGRAM:
BCD ADDER
K – Map:
Y = S4 (S3 + S2)
TRUTH TABLE:
BCD SUM CARRY
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
PROCEDURE:
(iii) Observe the logical output and verify with the truth tables.
RESULT:
EXPT NO. : 4
DATE :
APPARATUS 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.
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 three outputs.
LOGIC DIAGRAM:
BINARY TO GRAY CODE CONVERTOR
K-Map for G3:
G3 = B3
K-Map for G2:
TRUTH TABLE:
| Binary input | Gray code output |
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-Map for B2:
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)
K-Map for E2:
TRUTH TABLE:
| BCD input | Excess – 3 output |
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:
K-Map for A:
A = X1 X2 + X3 X4 X1
K-Map for B:
K-Map for C:
K-Map for D:
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:
(iii) Observe the logical output and verify with the truth tables.
RESULT:
EXPT NO. : 5
DATE :
AIM:
APPARATUS REQUIRED:
2. OR GATE IC 7432 3
2. IC TRAINER KIT - 1
3. PATCH CORDS - 27
THEORY:
ENCODER:
An encoder is a digital circuit that perform inverse operation of a decoder.
An encoder has 2n input lines and n output lines. In encoder the output lines
generates the binary code corresponding to the input value. In octal to binary encoder
it has eight inputs, one for each octal digit and three output that generate the
ambiguila that when all inputs are zero the outputs are zero. The zero outputs can
also be generated when D0 = 1.
DECODER:
58
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
59
LOGIC DIAGRAM FOR DECODER:
TRUTH TABLE:
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
60
PROCEDURE:
RESULT:
61
EXPT NO. : 6
DATE :
DESIGN AND IMPLEMENTATION OF MULTIPLEXER
AIM:
To design and implement multiplexer and demultiplexer using logic gate and study
of IC 74150 and IC 74154.
APPARATUS REQUIRED:
S. No. COMPONENT SPECIFICATION QTY.
3 I/P AND GATEICICIC
1. IC IC 7411 2
2. OR GATE IC 7432 1
3. NOT GATE IC 7404 1
2. IC TRAINER KIT - 1
3. PATCH CORDS - 32
THEORY:
MULTIPLEXER:
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
62
BLOCK DIAGRAM FOR 4:1 MULTIPLEXER:
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
63
CIRCUIT DIAGRAM FOR MULTIPLEXER:
TRUTH TABLE:
S1 S0 Y = OUTPUT
0 0 D0
0 1 D1
1 0 D2
1 1 D3
64
PIN DIAGRAM FOR IC 74150:
65
PROCEDURE:
RESULT:
66
EXPT NO. : 7
DATE :
APPARATUS REQUIRED:
THEORY:
67
K - MAP
STATE DIAGRAM:
68
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:
69
TRUTH TABLE:
PROCEDURE:
RESULT:
70
EXP NO :08
DATE :
IMPLEMENTATION OF A UNIVERSAL SHIFT
REGISTER
AIM:
APPARTUS REQUIRED
71
THEORY :
TRUTH TABLE
73
PROCEDURE:
RESULT :
74
EXP NO :9
DATE :
9.Width of Bus:
Width of Bus means at a time how many amount of data (bit) can betransferred.
Disadvantages:
Only one data transfer at a time.
Time consuming to any program.
Advantages:
77
Disadvantage:
Costly
Implementation is very difficult
System Bus:
A bus that connect major components (Processor, memory, I/O).
It consists of 50 to 100 separate lines; each line is used for aparticular
purpose.
50 to 100 lines can classify into functional groups.
i. Data lines.
ii. Address lines.
iii. Control lines.
78
i. Address bus:
Address lines are collectively called address bus.
4-bit address bus means 24 = 16 B. So, if address width
is 20 bit then 220 = 1 MB.
Bus Arbitration:
The process of selecting bus master. That means select the devicewhich can
transmit data on the bus right now.
Only one bus master at a time.
Daisy Chaining Approach:
8. Advantage:
9. Disadvantage:
Starvation problem (bored for waiting)
Propagation delay
The entire system fails if the higher priority device fails. 79
Distributed Arbitration:
Distributed Arbitration means that all devices waiting to use the bus that have
equal responsibility in carrying out the arbitration process, without using a
central arbiter.
Each device on the bus is assigned a 4-bit identification number.
When one or more devices request the bus, they assert the
̅S̅ta̅r̅t̅−
rbı̅tr̅at̅ı̅o̅nsignal and place their 4-bit ID numbers on their
A open collector lines,
̅B
O̅ through̅A
A
R ̅R
̅.3
B
80
PCI Bus:
PCI means Peripheral Component Interaction.
It has high bandwidth & it is very popular.
It is an independent bus that can function as a peripheral bus.
It requires very few chips to implement & supports other busses
connected to it.
It used centralized arbitration scheme.
It can be used in both signal Processor (desktop system) &
multiprocessor (server system) system.
PnP:
81
It is a process in which several storages of the CPU are used to
execute more than one instruction concurrently.
It is an effective way of organizing concurrently activity in any
system.
A pipelined processor may process each instruction in four steps:
Fig: Pipelining
Super Pipelining:
82
It’s an alternative approach to achieve better performance.
Many pipeline stages perform task that requires less than half of a
clock cycle, so a double interval clock speed allow the performance
of two tasks in one clock cycle.
Branch Condition:
A conditional branch instruction introduces the added caused by the dependency of
the branch condition on the result of a preceding instruction.
Branch Penalty:
F & D steps block the buffer until solve of the branch condition, inthis
situation we need some time to free this buffer. This time is called branch penalty.
83
Logic to deal with branch:
86
Fig: Distributed Memory
For pipelining it has fast execution rate.
Uses VLSI technology.
Disadvantages:
Needed more instruction than CISC to perform the same task. So,
it is less effective than CISC.
CISC:
CISC means “Complex Instruction Set Computer”.
Small number of general purpose registers (8).
Complex and huge number of instruction set (215).
MIMD:
87
Program size or length smaller.
Consume less memory for storing a program.
Low page fault due to smaller program.
Disadvantage:
MISD:
88
Example: Systolic Array.
Fig: Shared Memory Schema. Fig: Distributed Memory System.
ROM:
89
Advantages:
Disadvantages:
PROM:
PROM means “Programmable Read Only Memory”.
Creating ROM chip is time consuming & expensive. So, we need
to think another device like PROM.
PROM inexpensive & can be programmed with a tool called
programmer.
Like ROM it has grids of columns & rows but the difference is in
every intersection between rows and columns there is a fuse.
Fuse is connected to logical 1 [+5V to +10V]. So, at the initial
state, all cells contain logical 1. To change the value of a cell 1 to
0 the programmer is used to set a specific amount current to the
cell. The higher voltage breaks the connection between rows and
columns by burning out the fuse that means burning out the
PROM.
If we want bring logical 1 to 0 then apply fixed amount of current
then it goes 1 to 0 and fuse is burn.
Advantage:
90
After manufacture can be programmed but only once.
Disadvantage:
EPROM:
Advantages:
Easy to program.
Rewritten many times.
Disadvantages:
EEPROM:
EEPROM means “Electrically Erasable Programmable Read
OnlyMemory”.
The entire chip does not have to completely erase to change
aspecific portion. 91
Changing the content does not need additional requirement instead
of UV light, the electron are return to the normal position by
applying electric field to each cell. This erases the target cell of the
EEPROM.
EEPORM sort by hybrid between a static RAM and EPROM So
that data can be changed easily.
Advantages:
Disadvantage:
Advantages:
Flash devices have greater density, which leads to higher
capacity and a lower cost per bit.
They require a single power supply voltage and consume less
power in their operation
92