cs3351 Lab Manual FINAL
cs3351 Lab Manual FINAL
COURSE OBJECTIVES:
➢ To analyze and design combinational circuits.
➢ To analyze and design sequential circuits
List of Experiments:
INDEX
MARKS FACULTY
S.NO DATE EXPERIMENT NAMES PAGE NO
AWARDED SIGNATURE
10
11
12
13
14
ROHINI COLLEGE OF ENGINEERING AND TECHNOLOGY
EXPT. NO.:1
DATE:
AIM:
APPARATUS REQUIRED:
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 and
NOR 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 is low.
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.
NAND GATE:
ROHINI COLLEGE OF ENGINEERING AND TECHNOLOGY
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 are high.
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.
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.
ROHINI COLLEGE OF ENGINEERING AND TECHNOLOGY
AND GATE
OR GATE
ROHINI COLLEGE OF ENGINEERING AND TECHNOLOGY
NOT GATE
EX-OR GATE
NOR GATE
Viva Questions:
RESULT:
The logic gates are studied and its truth tables are verified.
lOMoARcPSD|284 453 49
EXPERIMENT:2
DESIGN AND IMPLEMENTATION OF CODE CONVERTERS
DATE:
AIM:
To design and verify the truth table of the following code converters
a. Binary to Gray converter & vice versa
b. BCD to Excess-3 & vice versa.
REQUIREMENTS:
THEORY:
Binary to GRAY Converter:
By representing the ten decimal digits with a four bit Gray code, we have another form of BCD
code. The Gray code however can be extended to any number of bits and conversion between binary
code and Gray code is sometimes useful. The following rules apply for conversion:
1. The MSB in the Gray code is the same as the corresponding bit in the binary number.
2. Going from left to right, add each adjacent pair of binary bits to get the next Gray code bit.
Disregard carries.
GRAY to Binary Converter:
To convert from Gray code to binary code, A similar method is used, at there are some differences.
The following rules apply:
1. The MSB in the binary code is the same as the corresponding digit in the Gray code
2. Add each binary digit generated to the gray digit in the next adjacent position Disregard carries.
lOMoARcPSD|284 453 49
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
lOMoARcPSD|284 453 49
G3 = B 3 G2=B3+B2
G0=B1+B0
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
lOMoARcPSD|284 453 49
B3 = G3
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
lOMoARcPSD|284 453 49
E3 = B3 + B2 (B0 + B1)
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
lOMoARcPSD|284 453 49
A = X1 X2 + X3 X4 X1
PROCEDURE:
Viva Questions :
1.What is the need of code converters?
2.What is Gray code?
3.What is the significance of Gray code?
4.What are applications of Gray code?
5.What are weighted codes and Non weighted codes?
6.What is Excess 3 code?
7.What is binary code?
8.Why binary is different from Gray code?
9.What is K Map?
10.What is don’t care condition?
Results:
Thus the truth tables for Binary to Gray, Gray to Binary and BCD to Excess3 converters were
verified.
lOMoARcPSD|284 453 49
AIM:
To study the 4 bit binary adder/subtractor using IC7483.
REQUIREMENTS:
2 OR gate IC 7432 1
THEORY
The full adder/sub tractors are capable of adding/subtracting only two single digit binary
numbers along with a carry input. But in practice we need to add/subtract binary numbers, which are
much longer than just one bit. To add/subtract two n-bit binary numbers we need to use the n-bit parallel
subtractor/adder.
Binary adder: IC type 7483 is a 4-bit binary parallel adder/subtractor .The two 4-bit input binary
numbers are A1 through A4 and B1 through B4. The sum is obtained from S1 through S4. C0 is the
input carry and C4 the output carry. Test the 4-bit binary adder 7483 by connecting the power supply
and ground terminals. Then connect the four A inputs to a fixed binary numbers such as 1001 and the
B inputs and the input carry to five toggle switches. The five outputs are applied to indicator lamps.
Perform the addition of a few binary numbers and check that the output sum and output carry give the
proper values. Show that when the input carry is equal to 1, it adds 1 to the output sum.
Binary subtractor: The subtraction of two binary numbers can be done by taking the 2’s complement
of the subtrahend and adding it to the minuend. The 2’s complement can be obtained by taking the 1’s
complement and adding. To perform A-B, we complement the four bits of B, add them to the four bits
of A, and add 1 through the input carry. The four XOR gates complement the
bits of B when the mode select M=1(because x Θ 0 = x ) and leave the bits of B unchanged when
M=0(because x Θ 0 = x ) .Thus , when the mode select M is equal to 1, the input carry C0 is equal 1
and the sum output is A plus the 2’s complement of B. when M is equal to 0, the input carry is equal
to 0 and the sum generates A+B.
lOMoARcPSD|284 453 49
Operand1 Operand2
B3 B2 B1 B0 A3 A2 A1 A0
Output
PROCEDURE:
1. Connections are given as per the circuit diagram.
2. Set mode M =0 such that the circuit will operate in addition mode.
3. Set the Value of inputs A as 1001 and B as 1001 note the sum and output carry.
4. Repeat the same step in step 3 by keeping M=1 such that circuit will operate in
subtraction mode.
lOMoARcPSD|284 453 49
Viva Questions:
2. What is a half-adder?
3. What is a full-adder?
5. What is a half-subtractor?
6. What is a full-subtractor?
RESULT:
Thus the 4 bit Binary Adder / Subtractor using IC7483 is been implemented for both additionand subtraction
and the corresponding truth tables are verified.
lOMoARcPSD|284 453 49
EXPERIMENT:
DESIGN AND IMPLEMENTATION OF BCD ADDER
DATE:
AIM:
To design and implement the BCD adder by using IC7483.
REQUIREMENTS:
2 OR gate IC 7432 1
THEORY
The full adder/sub tractors are capable of adding/subtracting only two single digit binary
numbers along with a carry input. But in practice we need to add/subtract binary numbers, which are
much longer than just one bit. To add/subtract two n-bit binary numbers we need to use the n-bit parallel
subtractor/adder.
Binary adder: IC type 7483 is a 4-bit binary parallel adder/subtractor .The two 4-bit input binary
numbers are A1 through A4 and B1 through B4. The sum is obtained from S1 through S4. C0 is the
input carry and C4 the output carry. Test the 4-bit binary adder 7483 by connecting the power supply
and ground terminals. Then connect the four A inputs to a fixed binary numbers such as 1001 and the
B inputs and the input carry to five toggle switches. The five outputs are applied to indicator lamps.
Perform the addition of a few binary numbers and check that the output sum and output carry give the
proper values. Show that when the input carry is equal to 1, it adds 1 to the output sum.
Binary subtractor: The subtraction of two binary numbers can be done by taking the 2’s complement
of the subtrahend and adding it to the minuend. The 2’s complement can be obtained by taking the 1’s
complement and adding. To perform A-B, we complement the four bits of B, add them to the four bits
of A, and add 1 through the input carry. The four XOR gates complement the bits of B when the mode
select M=1(because x Θ 0 = x ) and leave the bits of B unchanged when M=0(because x Θ 0 = x )
.Thus , when the mode select M is equal to 1, the input carry C0 is equal 1 and the sum output is A
plus the 2’s complement of B. when M is equal to 0, the input carry is equal to 0 and the sum
generates A+B.
lOMoARcPSD|284 453 49
Operand1 Operand2
B3 B2 B1 B0 A3 A2 A1 A0
Cout 4 bit IC 7483 Cin
Output
K MAP
Y = S4 (S3 + S2)
LOGIC DIAGRAM OF BCD ADDER
PROCEDURE:
1. Connections are given as per the circuit diagram.
2. Set mode CE =0 such that the circuit will operate in addition mode.
3. Set the Value of inputs A as 1001 and B as 1001 note the sum and output carry.
Viva Questions
1. What are arithmetic circuits?
2. What is a half-adder?
3. What is a full-adder?
5. What is a half-subtractor?
6. What is a full-subtractor?
RESULT:
Thus the BCD Adder using IC7483 is been implemented for and the corresponding truth
tables are verified.
lOMoARcPSD|284 453 49
EXPERIMENT:
DESIGN AND IMPLEMENTATION OF ENCODER
DATE:
AIM:
REQUIREMENTS:
2. OR Gate IC7432 3
THEORY:
Digital Computers, Microprocessors and other digital systems are binary operated whereas
our language of communication is in decimal numbers and alphabetical characters only. Therefore, the
need arises for interfacing between digital system and human operators. To accomplish this task,
Encoder is used
Logic Diagram:
lOMoARcPSD|284 453 49
Truth Table:
INPUT OUTPUT
D0 D1 D2 D3 D4 D5 D6 D7 A B C
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
Outputs:
A = D4 + D5 + D6 + D7
B = D2 + D3 + D6 + D7
C = D1 + D3 + D5 + D7
lOMoARcPSD|284 453 49
PROCEDURE:
1. Construct the circuit as per the diagram
2. Switch on the power supply.
3. Apply the necessary input and observe the outputs to verify the truth table.
Viva Questions
1.Define encoder.
2.What is decimal to BCD Encoder.
3.Draw the general structure of encoder.
4.Write the truth table for octal to binary encoder.
5.Draw the circuit for octal to binary encoder.
6. Write the truth table for 4 bit priority encoder.
7.List the encoder IC’s.
8. What is priority encoder?
9.Design 4 input priority encoder.
RESULTS:
EXPERIMENT:
DESIGN AND IMPLEMENTATION OF DECODER
DATE:
AIM:
To design, construct the decoder circuits and implement the function F (A,B,C) = ∑(1,2,4,7)
using the decoder ICs and also driver along with seven segment LED display unit and verify the
results.
REQUIREMENTS:
THEORY:
The process of taking some type of code and determining what it represents in terms of a
recognizable number or character is called decoding. A decoder is a combinational logic circuit that
performs the decoding function, and produce an output that indicates the (meaning) of the input
code. The decoder is an important part of the system which selects the cells to be read from and
write into. This particular circuit is called a decoder matrix, or simply a decoder, and has a
characteristic that for each of the possible 2n binary input number which can be taken by the n input
cells, the matrix will have a unique one of its 2n output lines selected.
n×2n
n Decoder 2n
Output
Input
lOMoARcPSD|284 453 49
2 X 4 DECODER:
W0
2×4
X1 W1
Decoder
X2 W2
W3
TRUTH TABLE:
INPUTS OUTPUTS
X2 X1 W0 W1 W2 W3
0 0 1 0 0 0
0 1 0 1 0 0
1 0 0 0 1 0
1 1 0 0 0 1
1
7408 3 W0
2
1 2
X2 7404 4 7408 6
W1
5
3
7404 4 9
X1 7408 8
W2
10
12
7408 11
W3
13
lOMoARcPSD|284 453 49
3 X 8 DECODER:
Inputs Output
B C
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
lOMoARcPSD|284 453 49
Solution:
BCD Decoder
The BCD decoder converts each BCD code (8421) into one of ten possible decimal digit
indications. It is typically referred to as a 1 of 10 or 4 to 10 lines decoder, although other types of decoder
also fall into this category (such as an Execs – 3 decoder). A list of the ten BCD code words and their
corresponding decoding functions is shown in Table (2). Each of these decoding functions is
implemented with NAND gates to provide active LOW outputs, as shown in Fig. (2).
DCBA
9 1 1 1 1 1 1 1 1 1 0 DCBA
Truth Table of BDC to Decimal Decoder
A
B
740 0
C
0
D B
A
C
A 1
B
C
D
A 7404 D
A
B
C 3
Each
variable and D
A
B its B
complement C
BCD
are 4
INPUT
connected D
to A
appropriate B
C decode gate
C 5
input. D
A
B
C
6
D D
A
B
C 7
D
A
B
C
lOMoARcPSD|284 453 49
D
A 9
B
C
Logic for BCD Decoder.
lOMoARcPSD|284 453 49
For example if decimal 9 is to be displayed a, b, c, d, f, g must be 0 and the others must be 1 (For
common anode type display units), if decimal 5 is to be displayed then a, f, g, c, d must be 0 and the others must
be 1.
lOMoARcPSD|284 453 49
PROCEDURE:
1. Connect the circuit as per circuit diagram.
2. Apply the inputs to the IC7447(A,B,C&D).
3. Observe the output and verify the result.
lOMoARcPSD|284 453 49
Viva Questions
1.Define Decoder.
2.Define binary decoder.
3.Draw the general structure of decoder.
4.Write the truth table for 2 to 4 decoder.
5.Draw the circuit for 3 to 8 decoder.
6.What are the applications of decoders.
7.List the decoder IC’s.
8.Design 2x4 decoder using NAND gates.
9.What is the realization of Boolean function using decoder.
RESULT:
Thus the decoder, function implementation using decoder and driver unit along with 7
segment display unit is constructed and the results were verified.
lOMoARcPSD|284 453 49
F(A,B,C,D) = Σ (0,1,3,4,8,9,15).
REQUIREMENTS :
S.No. Name of the apparatus Specification Quantity
1 Digital Trainer kit - 1
2 OR gate IC7432 1
6 Connecting wires - -
THEORY:
Multiplexer:
It has a group of data inputs and a group of control inputs. The control inputs are used to select one of
the data inputs and connected to the output terminal. It selects one information out of many information
lines and directed to a single output line.
Demultiplexer:
Demultiplexers perform the opposite function of multiplexers. They transfer a small number of
information units (usually one unit) over a larger number of channels under the control of selection
signals. Fig shows a 1-line to 2-line Demultiplexer circuit. Construct this circuit; connect an LED to
each of the outputs D0 and D1. Set the select signal S to logic 1 or logic 0, and toggle the input I
between logic 1 and logic 0. Which output followed the input when S = 1 and S = 0.
lOMoARcPSD|284 453 49
4:1 MULTIPLEXER:
BLOCK DIAGRAM
Circuit Diagram:
Truth Table:
S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
1 1 I3
lOMoARcPSD|284 453 49
1:4 DEMULTIPLEXER:
BLOCK DIAGRAM
Circuit Diagram:
Truth Table:
Selection Lines
OUTPUT V0
S1 S0
0 0 D0=Di
0 1 D1= Di
1 0 D2= Di
1 1 D3= Di
lOMoARcPSD|284 453 49
TRUTH TABLE:
LOGIC DIAGRAM:
lOMoARcPSD|284 453 49
FUNCTION IMPLEMENTATION :
lOMoARcPSD|284 453 49
Design :
D0 D1 D2 D3 D4 D5 D6 D7
A’ 0 1 2 3 4 5 6 7
A 8 9 10 11 12 13 14 15
1 1 0 A’ A’ 0 0 A
lOMoARcPSD|284 453 49
Table 3:
A B C D F(A,B,C,D)
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
PROCEDURE:
1. Connections are given as per in the circuit diagram.
2. Inputs are given through the logic switches.
3. Outputs are noted and verified with truth table
Viva Questions
1. Define Multiplexer.
2.How many select lines are there for 12 : 1 MUX ?
3.How many input pins are there in a 2:1 MUX ?
4.How can we convert 4:1 Mux into 2:1 Mux ?
5.How many 2:1 MUX require to make 16:1 MUX ?
6.Define demultiplexer.
7.What are the types of demultiplexers?
8.What are the applications of multiplexer?
9.List out the multiplexer IC’s
10.Differentiate multiplexer and demultiplexer.
RESULT:
Thus the truth table of multiplexer and demultiplexer was studied and verified using logic
gates also the given Boolean function were implemented successfully.
lOMoARcPSD|284 453 49
EXPERIMENT:
DESIGN AND IMPLEMENTATION OF SYNCHRONOUS COUNTER
DATE:
AIM:
To construct and verify the synchronous up/down counters.
REQUIREMENTS:
THEORY:
Synchronous Counter
Clock input is applied simultaneously to all flip-flops. The output of the first FLIP-FLOP is
connected to the input of second FLIP-FLOP and so on.
CIRCUIT DIAGRAM:
Design of 3-bit synchronous up:
Pin Diagram
lOMoARcPSD|284 453 49
lOMoARcPSD|284 453 49
Clock Q2 Q1 Q0 Clock Q2 Q1 Q0
0 0 0 0 0 1 1 1
1 0 0 1 1 1 1 0
2 0 1 0 2 1 0 1
3 0 1 1 3 1 0 0
4 1 0 0 4 0 1 1
5 1 0 1 5 0 1 0
6 1 1 0 6 0 0 1
7 1 1 1 7 0 0 0
PROCEDURE:
1. The connections are made as per the circuit diagram.
2. Switch on the power supply.
3. The input is given at the appropriate terminal and corresponding output is observed and
truth table is verified.
Viva Questions
1.What is counter?
2.State types of counters.
3.What is MOD counter?
4.Define synchronous counter.
5.Define Asynchronous counter.
6.Name two sequential switching circuits.
7.What is meant by programmable counter?
8.List the applications of programmable counter.
9.Draw the state diagram of MOD 10 counter
RESULT:
Thus the counters were constructed and their truth tables verified.
lOMoARcPSD|284 453 49
THEORY:
SHIFT REGISTER:
A register is a device capable of storing a bit. The data can be serial or parallel. The register can convert
a data from serial to parallel and vice versa shifting then digits to left and right is theimportant
aspect for arithmetic operations,
A register capable of shifting its binary information either to the right or to the left is called a
shift register. An N bit shift register consists of N flip-flops and the gates that control the shift operation.
A shift register can be used in four different configurations depending upon the way in which the data
are entered into and taken out of it. These four configurations are:
a. Serial-input, Serial-output
. b. Parallel-input, Serial-output
c. Serial-input, parallel-output
d. Parallel-Input, parallel-output
The serial input is a single line going to the input of the leftmost flip-flop of the register. The serial
output is a single line from the output of the rightmost flip-flop of the register, so that the bits stored
in the register can come out through this line one at a time. The parallel output consists of N lines, one
for each of the flip-flops in the register, so the information stored in the register can be inspectedthrough
these lines all at once.
lOMoARcPSD|284 453 49
PIN 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
PROCEDURE:
1. The flip-flop is connected using connecting wires as shown in the circuit.
2.The flip flop are then reset to zero internally with the help of reset to set inputs.
3.The bits are shifted in by giving suitable clock input.
4.Thus the truth table is then verified.
Viva questions:
1.Define registers.
2.Define shift registers.
3.What are the types of shift registers?
4.What are the applications of shift registers?
5.What is bidirectional shift registers?
6.What is buffer register?
7.What do you meant by controlled buffer register?
8.What is universal shift register?
9.Draw the circuit for 4 bit universal shift register.
RESULT:
Thus the operation of 4 bit shift register for SISO, SIPO, and PIPO was studied and verified.
lOMoARcPSD|284 453 49
EXPERIMENT:
IMPLEMENTATION OF MOD-10 RIPPLE COUNTER
DATE:
AIM:
To construct and verify Mod-10 Ripple Counters.
APPARATUS REQUIRED:
S.No. Name of the apparatus SPECIFICATION Quantity
THEORY:
Counters are a group of flip flops connected together to perform counting operation. According
to the way the flip flops are clocked, there are two types of flip flops,
a. Asynchronous Counter
b. Synchronous Counter
In asynchronous counter, the flip flop is clocked by the external clock pulse. Then each
successive flip flop are clock by Q or Q’ output of the previous flip flop. In 4 bit ripple counter, the total
number of states is 16 (24) and this varies from 00002 to 11112 . If the counters are designed with number
of sequence which is less than 2, then those counters are said to be Mod-N counters where N denotes
number of sequence. Thus in Mod-10 counter, total number of states is 10 and number of flip flops are
4. Similarly in Mod-12 counter, total number of states is 12 and number of flip flops are 4.
lOMoARcPSD|284 453 49
PROCEDURE:
Viva Questions
1. How many natural states will there be in a 4-bit ripple counter?
2. What happens to the parallel output word in an asynchronous binary down counter
whenever a clock pulse occurs?
3. How many flip-flops are required to construct a decade counter?
4. How many different states does a 3-bit asynchronous counter have?
5. An asynchronous 4-bit binary down counter changes from count 2 to count 3. How
many transitional states are required?
6. Define flipflop
7. Define ripple counter.
8. Differentiate asynchronous and synchronous counter
RESULT:
Thus the Mod 10 ripple counter was designed and constructed successfully.
lOMoARcPSD|284 453 49
EXPERIMENT:
STUDY OF UNIVERSAL SHIFT REGISTER
DATE:
AIM:
To study and verify the load, shift and rotate operation of a 4-bit shift register.
EQUIPMENT/APPARATUS USED:
S. No. Name of the equipment Range/Rating Quantity
1. Digital IC Trainer .... 1
2. IC 74195 ... 1
3. Connecting Wires ...
THEORY:
A register is a group of binary storage cells capable of holding binary information. A group of flip
flops constitutes a register, since each flip-flop can work as a binary cell. An n-bit register, has n flip-flops
and is capable of holding n-bits of information. In addition to flip-flops a register can have a combinational
part that performs data-processing tasks.
Shift Register: A register capable of shifting its binary contents either to the left or to the right is called a
shift register. The shift register permits the stored data to move from a particular location to some other
location within the register. Registers can be designed using discrete flip-flops (S- R, J-K, and D-type). The
data in a shift register can be shifted in two possible ways: (a) serial shifting and (b) parallel shifting. The
serial shifting method shifts one bit at a time for each clock pulse in a serial manner, beginning with either
LSB or MSB. On the other hand, in parallel shifting operation, all the data (input or output) gets shifted
simultaneously during a single clock pulse. Hence, we may say that parallel shifting operation is much
faster than serial shifting operation.
8- bit Universal Shift Register: IC 74195 is a 4-bit TTL MSI having both serial/parallel input and
serial/parallel output capability. The pinout diagram of IC 74195 is shown in Figure 1.
lOMoARcPSD|284 453 49
When the SH / LD input is LOW, the data on the parallel inputs, i.e., A, B, C, and D are entered
synchronously on the positive transition of the clock. When SH / LD is HIGH, the stored data will shift
right (QA to QD) synchronously with the clock. J and K are the serial inputs to the first stage of the register
(QA); QD can be used for getting a serial output data. The active low clear is asynchronous.
lOMoARcPSD|284 453 49
Example:
Right Shift Operation: :Input data: 1011
Clock QA QB QC QD
0 1 0 1 1
1 0 1 0 1
2 0 0 1 0
3 0 0 0 1
4 0 0 0 0
1 0 0 1 1 0 0 1
0 1 0 0 1 1 0 0
PROCEDURE:
1. Load data using parallel loading
2. Use clock 1(9)
3. Mode Control 6 OFF (0) connect logic input switch
4. Serial input 1 OFF (0) connect logic input switch
5. Press the clock button
Example:
Rotate Right Operation: Input data: 1011
Clock QA QB QC QD
0 1 0 1 1
1 1 1 0 1
2 1 1 1 0
3 0 1 1 1
4 1 0 1 1
lOMoARcPSD|284 453 49
1 0 1 1 0 0 0 1
PROCEDURE:
Viva questions
1. What do you mean by serial data?
2. What do you mean by parallel data?
3. What do you mean by serial data transfer?
4. What is a single bit register?
5. What is a register?
6. What do you mean by the storage capacity of a register?
7. What do you mean by loading a register?
8. What are the types of loading the registers?
9. What is serial loading?
10. What is parallel loading?
RESULT:
Thus the 4-bit Universal Shift Register was studied successfully.
lOMoARcPSD|284 453 49
EXPERIMENT:
DATE:
simulator based study of computer architecture
Categories
Full-system simulators
Cycle-accurate simulator
Viva questions
EXPERIMENT:
DATE:
4 Bit Parallel Adder
Apparatus:-
2. IC 7483
3. Connecting Wires
Theory:-
Parallel Adder:-
A n-bit parallel adder can be constructed using number of full adders
circuit connected inparallel 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 bitsB3 B2 B1 B0→ Addend bitsS3 S2 S1 S0 → Sum
bits
Procedure:-
1 .Conn ect grou nd and Vcc to 7483 IC fro m tr aine r kit th rough pat ch cords.
2. Conn ect in puts A0, A1, A2, A3 a nd B0, B1, B2, B3 to logi c in
put swi tches.
3. Connect carry in from pin no.13 to ground so that
carry input (CY1) will be logic ‘0’state.
4. Connect S0, S1, S2, S3 and carry out (CY0) from pin nos. 9, 6, 2, 15
and 14 to the outputdisplay.5.V e rif y truth tabl es fo r diff erent
combin ations of in puts.
TRUTH TABLE:-
The Truth table operation of the 4-bit Parallel Adder is shown below:
INPUT OUTPUTS
S
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.
lOMoARcPSD|284 453 49
1.The complement of a product of two numbers is the sum of the complements of those
numbers.
Truth Table:
2. The complement of the sum of two numbers is equal to the product of the complement
of two numbers.
(A + B)' = A'B'
Truth Table:
lOMoARcPSD|284 453 49
1. AND gate.
2. OR gate.
3. NOT gate.
10) Which gates are called as Universal gate and what are its
advantages?
lOMoARcPSD|284 453 49
The Universal gates are NAND and NOR. The advantages of these gates are that they can
be used for any logic calculation.
1. Commutative Property.
2. Associative Property.
3. Distributive Property.
1. Propagation delay.
2. Power Dissipation.
3. Fan-in.
4. Fan-out.
5. Noise Margin.
1. It is limited to six variable maps which means more than six variable involving
expressions are not reduced.
2. These are useful for only simplifying Boolean expression which is represented I
standard form.
1. It is not suitable when the number of variables exceeds more than four.
2. For Computer reduction, it is not suitable.
3. We have to take while entering the numbers in the cell-like 0, 1 and don't care terms.
Quad: A Pair of Four adjacent pairs in a karnaugh map is called a quad. It cancels two
variables in a K-Map simplification.
lOMoARcPSD|284 453 49
Octet: A Pair of eight adjacent pair in a karnaugh map is called an octet. It cancels four
variables in a K-map simplification.
Fan-out- The Fan-out is the maximum number of same inputs of the same IC family that
a gate can drive maintaining its output levels within the specified limits.
1. Changing OR operation (+ Sign) to AND operation (. Dot Sign) and vice versa.
2. Complimenting 0 and 1 in the expression by changing 0 to 1 and 1 to 0 respectively.
Power dissipation = Supply voltage * mean current taken from the supply.
4. In this, the memory units are not required. In this, the memory units are required to stor
of inputs.
5. Example: Mux, Demux, encoder, decoder, adders, Example: Shift registers, counters.
subtractors.
2. The Flip flops of these counters are not clocked In these counters, the flip-flops are clocke
simultaneously.
3. Simple logic circuits are there for more number of states. Complex logic circuits are there when t
increases.
D-latch is level sensitive whereas flip-flop is edge sensitive. Flip-flops are made up of
latches.