Académique Documents
Professionnel Documents
Culture Documents
of CSE & IT
IC 7400
IC 7408
IC 7432 IC 7486
14 13 12 11 10 9 8
Vcc
IC 7411
Gnd
1 2 3 4 5 6 7
Logic Diagram:
~2~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
(A+B) = AB:
AIM:
To verify the following Boolean theorems using digital logic gates.
a) DeMorgans theorem.
b) Consensus theorem.
c) Duality theorem.
Apparatus Required:
3. OR GATE IC 7432 1
7. PATCH CORD - -
Theory:
DeMorgans Theorem:
a) AB = A + B:
The complement of a product of the variables is equal to the sum of complements of the
variables.
~4~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
b) (A+B) = AB:
The complement of a sum of the variables is equal to the product of complements of the
variables.
Consensus Theorem:
In the simplification of Boolean expression, an expression of the form AB+AC+BC the term
BC is redundant and can be eliminated to form the equivalent expression AB+AC. By consensus
theorem,
AB+AC+BC = AB+AC
Logic Diagram:
Consensus Theorem - (AB + AC + BC) = (AB+AC):
(AB + AC + BC):
(AB+AC):
The key to recognize the consensus term is to first find a pair of terms, one of which contains a
variable and the other contains its complement. Now we have to find the third term which should
contain the remaining variables from pair of terms eliminating selected variable and its
complement.
Duality Theorem:
The duality theorem says that, starting with a Boolean relation, you can derive another Boolean
relation by,
a) Changing each OR sign to an AND sign.
b) Changing each AND sign to an OR sign.
c) Complementing any 0 (or) 1 appearing in the expression.
For example, A + 0 = A, applying duality theorem, A.1 = A. This duality property is obtained
by changing the OR sign to an AND sign, and by complementing the 0 to get a 1. Considering
the following distributive law,
A(B+C) = AB+AC
Applying duality theorem on the above equation,
A+BC = (A+B)(A+C)
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. For all input combinations the outputs are verified with the truth table.
Logic Diagram:
Duality Theorem:
A+BC:
(A+B)(A+C):
Result:
Thus the Boolean theorems are verified using logic gates.
Logic Diagram:
Function (Y = ABD+BCD+ACD+ABC):
Truth Table:
The Logic circuit has 4 inputs, output will only be high when majority of the
inputs are high.
INPUTS OUTPUT
A B C D Y
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 1
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 1
1 1 0 0 0
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
AIM:
To design and implement combinational circuits using basic gates for arbitrary functions.
Apparatus Required:
3. OR GATE IC 7432 1
5. PATCH CORD - -
Theory:
When logic gates are connected together to produce a specified output for certain specified
combinations of input variables, with no storage involved, the resulting circuit is called a
combinational logic. In combinational logic, the output variables are at all times dependent on the
combination of input variables.
A combinational circuit consists of input variables, logic gates, and output variables. The logic
gate accepts signals from the input and generates output signals. This process transforms binary
information from given input data to the required output data.
For n input variables, there are 2 n possible binary input combinations. For each possible input
combination, there is one possible output value. Thus, a combinational circuit can be specified
with a truth table that lists the output values for each combination of input variables. A
combinational circuit also can be described by m Boolean functions, one for each output variable.
Each output function is expressed in terms of the n input variables.
~ 10 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. For all input combinations the outputs are verified with the truth table.
Truth Table:
The Logic circuit has 3 inputs P, Q and R, output will be high when P is zero or
whenever Q=R=1.
K-Map:
INPUTS OUTPUT
~ 11 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
P Q R S
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 0 Y = P + QR
1 1 1 1
Result:
Thus digital logic function for combinational circuit was designed and implemented using basic
gates.
~ 12 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Logic Diagram:
BCD to Excess-3 Code Converter:
~ 13 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
To design, implement and verify combinational circuits using basic gates for the following code
converters,
a) BCD to Excess-3 code converter
b) Excess-3 to BCD code converter
Apparatus Required:
3. OR GATE IC 7432 1
7. PATCH CORD - -
~ 14 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Theory:
Code Converters:
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.
B3 B2 B1 B0 X3 X2 X1 X0
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
~ 15 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
X0 = B0
Excess-3 Code:
This is an un-weighted code. Its code assignment is obtained from the corresponding value of
BCD after the addition of (0011)2.
B3 = X0X1X3 + X2X3
_ _ _
B2 = X0X2 + X0X1X2 + X1X2
B 1 = X0 X1
_
B 0 = X0
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. For all input combinations the outputs are verified with the truth table.
~ 17 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
B0 = X0 B1 = X1 X0
Result:
Thus BCD to Excess-3 and Excess-3 to BCD converters are designed and implemented using
basic gates and their truth table was verified.
~ 18 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Logic Diagram:
~ 19 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
To design and implement 4 bit binary adder and 4 bit binary subtractor using basic gates.
Apparatus Required:
2. OR GATE IC 7432 2
5. PATCH CORD - -
~ 20 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
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:
The two 4-bit input binary numbers are A0 through A3 and B0 through B3. The sum is
obtained from S0 through S3. Cin0 is the input carry and Cout3 the output carry. The circuit
consists of four full adders connected in cascade with the inputs to full adders A0 through A3 and
B0 through B3. The output carry of the previous stage is the input carry to current stage. Here the
carry ripples through the 4 full adders.
Binary Subtractor:
The subtraction of two binary numbers can be done by taking the 2s complement of the
subtrahend and adding it to the minuend. The 2s complement can be obtained by taking the 1s
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 input add/sum is 1(because Z xor 1 = Z) and leaves the bits of B unchanged when
add/sub=0 (because Z xor 0 = Z). Thus , when the add/sum is equal to 1, the input carry Cin0
is equal 1 and the sum output is A plus the 2s complement of B. when add/sum is equal to 0,
the input carry is equal to 0 and the sum generates A+B.
~ 21 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply and verify various combinations of input according to the truth
table for 4 bit binary adder/subtractor,
a) By keeping add/sub as low, binary addition takes place.
b) By keeping add/sub as high, binary subtraction takes place.
~ 22 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Result:
Thus the 4 bit binary adder, 4 bit binary subtractor was designed and implement basic gates
with their truth table verified.
Pin Diagram:
~ 23 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
To design and implement 4 bit binary adder and 4 bit binary subtractor using IC 7483 MSI
device.
~ 24 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Apparatus Required:
3. PATCH CORD - -
Theory:
~ 25 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
A4 A3 A2 A1 B4 B3 B2 B1 Cout S4 S3 S2 S1 Bout 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 1 0 1 0 1 1 1 1
1 1 1 0 1 1 1 1 1 1 1 0 1 0 1 1 1 1
1 0 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 1
Procedure:
4. Verify the gates.
5. Make the connections as per the circuit diagram.
~ 26 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
6. Switch on VCC and apply and verify various combinations of input according to the truth
table for 4 bit binary adder/subtractor,
c) By keeping add/sub as low, binary addition takes place.
d) By keeping add/sub as high, binary subtraction takes place.
Result:
Thus the 4 bit binary adder, 4 bit binary subtractor was designed and implement using IC 7483
MSI devices with their truth table verified.
~ 27 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
PO = Odd Input
PE = Even Input
Logic Diagram:
Truth Table:
I0 I1 I2 I3 I4 I5 I6 I7 I8 I9 I10 I11 I12 I13 I14 115 Active E O
1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0
1 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1
1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0
~ 28 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
To design and implement 16 bit odd/even parity generator using IC 74180 MSI device.
Apparatus Required:
4. Patch cord - -
Theory:
When digital data is transmitted from one location to another, it is necessary to know at
the receiving end, whether data received is free from errors. To help make the transmission
accurate, special error detection methods are used. To detect errors there must be constant check
on the data being transmitted. To check accuracy of the data an extra bit can be generated and
transmitted along with the data. This bit is called the parity bit. A parity bit is used for detecting
errors during transmission of binary information.
Parity generators are circuits that accept an n-1 bit data stream and generate an extra bit
that is transmitted with the bit stream. This extra bit is referred to as parity bit. In an even parity
bit scheme, the parity bit is 1 if there are odd number of 1s in the data stream and the parity bit
is 0 if there are even number of 1s in the data stream. In the case of odd parity bit scheme, the
reverse happens, that is the parity bit is 0 for odd number of 1s and 1 for even number of 1s
in the bit stream.
~ 29 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
~ 30 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. For all input combinations the outputs are verified with the truth table.
Result:
~ 31 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Thus a 16-bit parity generator was designed and implemented using IC74180 MSI devices with
its truth table verified.
PO = Odd Input
PE = Even Input
Logic Diagram:
Truth Table:
I7 I6 I5 I4 I3 I2 I1 I0 I7I6I5I4I3I211 I0 Active E O
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1 0
0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0 0 1 0
0 0 0 0 0 1 1 0 0 0 0 0 0 1 1 0 1 0 1
~ 32 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
To design and implement 16 bit odd/even parity checker using IC 74180 MSI device.
Apparatus Required:
4. Patch cord - -
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 as either even or
odd. The message including the parity bit is transmitted and then checked at the receiver end for
errors. An error is detected if the checked parity bit doesnt correspond to the transmitted parity
bit. 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 of 1s as even. In odd
parity, the added parity bit will make the total number of 1s as odd. The parity checker circuit
checks for possible errors in the transmission. If the information is passed in even parity, then the
bits required must have an even number of 1s. An error occur during transmission, if the
received bits have an odd number of 1s indicating that one bit has changed in value during
transmission.
~ 33 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
~ 34 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. For all input combinations the outputs are verified with the truth table.
~ 35 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Result:
Thus a 16-bit parity checker was designed and implemented using IC74180 MSI device with its
truth table verified.
Logic Diagram:
Parity Generator:
INPUT OUTPUT
A B C OP EP
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
OP = (A B C)
Note: From the truth table it is clear that both even parity and odd parity generator are
complementary logic. Therefore the Boolean expression for even generator,
EP = (A B C)
Aim:
To design and implement parity generator using basic gate.
Apparatus Required:
4. Patch cord - -
Theory:
When digital data is transmitted from one location to another, it is necessary to know at
the receiving end, whether data received is free from errors. To help make the transmission
accurate, special error detection methods are used. To detect errors there must be constant check
on the data being transmitted. To check accuracy of the data an extra bit can be generated and
transmitted along with the data. This bit is called the parity bit. A parity bit is used for detecting
errors during transmission of binary information.
Parity generators are circuits that accept an n-1 bit data stream and generate an extra bit
that is transmitted with the bit stream. This extra bit is referred to as parity bit. In an even parity
bit scheme, the parity bit is 1 if there are odd number of 1s in the data stream and the parity bit
is 0 if there are even number of 1s in the data stream. In the case of odd parity bit scheme, the
reverse happens, that is the parity bit is 0 for odd number of 1s and 1 for even number of 1s
in the bit stream.
~ 37 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. For all input combinations the outputs are verified with the truth table.
Result:
Thus parity generator was designed and implemented using basic gates with its truth table
verified.
Logic Diagram:
Parity Checker:
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
Aim:
To design and implement parity checker using basic gate.
Apparatus Required:
4. Patch cord - -
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 as either even or
odd. The message including the parity bit is transmitted and then checked at the receiver end for
errors. An error is detected if the checked parity bit doesnt correspond to the transmitted parity
bit. 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.
~ 39 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
In even parity, the added parity bit will make the total number of 1s as even. In odd
parity, the added parity bit will make the total number of 1s as odd. The parity checker circuit
checks for possible errors in the transmission. If the information is passed in even parity, then the
bits required must have an even number of 1s. An error occur during transmission, if the
received bits have an odd number of 1s indicating that one bit has changed in value during
transmission.
~ 40 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Note: From the truth table it is clear that both even parity and odd parity checker are
complementary logic. Therefore the Boolean expression for even checker,
EPout = (A B C P)
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. For all input combinations the outputs are verified with the truth table.
~ 41 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Result:
Thus the parity checker was designed and implemented using basic gates with its truth table
verified.
Logic Diagram:
~ 42 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
~ 43 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Apparatus Required:
3. OR GATE IC 7432 1
7. PATCH CORD - -
Theory:
The comparison of two numbers is an operation that determines 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 to 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.
Consider two numbers A and B with two digits each. Here A = A1 A0 and B = B1 B0.
Now the Boolean equation for the two numbers to be equal to, greater than and lesser than are as
follows,
0 0 1 0 0 0 1
0 0 1 1 0 0 1
0 1 0 0 1 0 0
0 1 0 1 0 1 0
0 1 1 0 0 0 1
0 1 1 1 0 0 1
1 0 0 0 1 0 0
1 0 0 1 1 0 0
1 0 1 0 0 1 0
1 0 1 1 0 0 1
1 1 0 0 1 0 0
1 1 0 1 1 0 0
1 1 1 0 1 0 0
1 1 1 1 0 1 0
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
~ 45 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
4. For all input combinations the outputs are verified with the truth table.
Result:
D0was
Thus the 2 bit Magnitude Comparator to D7 Data Inputs.
designed and implemented using logic gates with
their truth table verified.
A, B, C Data Select Lines.
Pin Diagram - IC74151: Pin Description:
Vcc, Gnd Power and Ground Inputs.
Y Data Output.
Logic Diagram:
~ 47 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
To design and implement application using multiplexer.
Apparatus Required:
4. PATCH CORD - -
Theory:
Multiplexer:
Multiplexer is a combinational circuit that selects binary information from one of many input
lines and directs it to a single output line. Selection of input lines controlled by a set of selection
lines 2n input lines and n selection lines. Multiplexers are used to form a selected path between
multiple sources and single destination.
IC74151 8 to 1 Multiplexer:
IC74151 is a data selector/multiplexer IC that selects one of the eight data sources D0 to D7.
The STROBE input of the IC must be at a low logic level to enable these devices. A high level at
the STROBE forces the W output high and Y output low. Both W and Y are complement to each
other. Inputs A, B, C are the selector inputs. IC 74150 is used in parallel to serial conversion. In
digital communication, a number of input lines are connected to a single output channel using
multiplexer, so that information transmitted one by one in a time shared basis.
~ 48 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
It is possible to implement any Boolean function of n variables with 2 n-1 to 1 multiplexer. In this
case, out of n variables n-1 variables are connected to the selection lines and the remaining single
variable is used for the multiplexer input. A truth table will be formed according to the given
function F(A,B,C,D).
Implementation Table:
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
~ 49 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
An implementation table is formed to decide the connections to the input and select line in
order to implement the given function. The implementation table contains list of inputs to the
multiplexer and under them listed all the min-terms. The first row lists all the min-terms where A
is complemented. Second row lists all the min-terms with A un-complemented.
The min-term given in the function are circled the column is inspected separately as follows,
If the min-terms in the second row are circled and min-term in the first row is not circled,
A is applied to the corresponding multiplexer input.
If the min-term in the first row is circled and min-term in second row is not circled, A is
applied to the corresponding multiplexer input.
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. For all input combinations the outputs are verified with the truth table.
~ 50 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Result:
Thus the given Boolean function was implemented using multiplexer with its truth table
verified.
G1 Enable Input.
Logic Diagram:
~ 51 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
To design and implement application using de-multiplexer.
Apparatus Required:
1. OR GATE IC 7432 2
4. PATCH CORD - -
Theory:
De-Multiplexer:
De-multiplexer is a circuit that receives information on single line and transmits the
information on one of 2n possible output lines. Selection of specific output lines is controlled by n
selection lines.
IC74154 1 to 8 De-Multiplexer:
IC74153 will act as a 1 to 8 De-Multiplexer by using the 3 address lines A, B and C to address
the active low output lines Y0 to Y7, passing data from one of the enable input G1 with the other
enable inputs low. When either G1 is low or G2A, G2B inputs are high all the outputs are high.
~ 52 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Truth Table:
D = F(A,B,C) = m(1, 2, 4, 7) .
~ 53 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Procedure:
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. For all input combinations the outputs are verified with the truth table.
~ 54 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Result:
Thus full subtractor function was implemented using de-multiplexer with its truth table
verified.
Logic Diagram:
1 1 1 0 0 0 0
2 0 1 1 0 0 0
3 1 0 1 1 0 0
4 0 1 0 1 1 1
5 0 0 1 0 1 1
6 0 0 0 1 0 0
7 0 0 0 0 1 1
8 0 0 0 0 0 0
Aim:
To implement SISO and SIPO shift registers using flip flop with its truth table verified.
Apparatus Required:
3. PATCH CORD - -
Theory:
A register capable of shifting its binary information either to the right or to the left is called a
shift register. The logic types of shift registers in terms of data movement are,
~ 56 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
SIPO shift register accepts data serially and produces the stored information on its output in
parallel form.
Procedure:
1. Verify the flip flop.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. By applying the clock pulse, all input combinations are given and the outputs are verified
with the truth table.
Logic Diagram:
~ 57 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Result:
Thus SISO and SIPO shift registers was designed and implemented using flip flop with its truth
table verified.
~ 58 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
1J, 2J = J Input
1k, 2k = K Input
1Q, 2Q = Q Output
1Q, 2Q = Q Output
Logic Diagram:
Clk Qd Qc Qb Qa
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
EX: NO: DESING AND IMPLEMENTAION ASYNCHRONOUS
DATE: COUNTER:
Aim:
To design and implement 4 bit Ripple Counter.
Apparatus Required:
4. PATCH CORD - -
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 first flip flop is clocked by the external clock pulse. Then each
successive flip flops are clocked 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
~ 60 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Procedure:
1. Verify the flip flop.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. By applying clock pulse, all the input combinations are given and the outputs are verified
with the truth table.
Result:
Thus 4 bit Ripple Counter was designed and implemented with their truth table verified.
1J, 2J = J Input
1k, 2k = K Input
1Q, 2Q = Q Output
1Q, 2Q = Q Output
Logic Diagram:
~ 61 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Qn Qn+1 J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
DATE:
Aim:
To design, implement 3 bit synchronous up/ down counter and verify its truth table.
Apparatus Required:
~ 62 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
3. OR GATE IC 7432 1
6. PATCH CORD - -
Theory:
A counter that advances upward through its sequence (0, 1, 2, 3...0, 1.) is called up counter. A
counter that decrement downward through its sequence (3, 2, 1, 0, 3, 2 ..) is called down
counter. A up/down counter is a counter used to perform both up counting and down counting
operation using up/down control signal.
Procedure:
1. Verify the flip flop.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to truth table.
4. By applying the clock pulse, all input combinations are given and the outputs are verified
with the truth table.
Truth Table:
Input
Up/Down Present State Next State Flip Flop Input
0 0 1 0 1 0 0 X 1 X X 1
0 1 0 0 1 1 0 X X 0 1 X
0 1 1 1 0 0 1 X X 1 X 1
1 0 0 1 0 1 X 0 0 X 1 X
1 0 1 1 1 0 X 0 1 X X 1
1 1 0 1 1 1 X 0 X 0 1 X
1 1 1 0 0 0 X 1 X 1 X 1
1 1 0 1 0 1 X 0 X 1 1 X
1 0 1 1 0 0 X 0 0 X X 1
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 1 0 0 0 1 0 X X 1 1 X
0 0 1 0 0 0 0 X 0 X X 1
0 0 0 1 1 1 1 X 1 X 1 X
1 1 1 1 1 0 X 0 X 0 X 1
K-Map Simplification:
K-Map for JA: K-Map for JB:
JA = 1 JB = XQA+ XQA
~ 64 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
~ 65 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
JC = XQB QA + XQBQA KA = 1
Result:
Thus 3 bit synchronous up/ down counter was designed and implemented with its truth table
verified.
~ 66 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Logic Diagram:
Full Adder:
~ 67 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Truth Table:
0 0 0 0 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 1 1
~ 68 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
To develop and simulate the verilog code for full adder and full subtractor.
Software Required:
Mentor Graphics ModelSim simulator.
Verliog Code:
Full Adder:
module full_adder
(
a,
b,
cin,
sum,
carry
);
input a,b,cin;
output sum,carry;
endmodule
Logic Diagram:
~ 69 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Full Subtractor:
Truth Table:
A B Bin BORROW DIFFERENCE
(Bout) (Diff)
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 1 0
1 0 0 0 1
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
Full Subtrator:
module full_subtractor
(
a,
~ 70 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
b,
bin,
diff,
borrow
);
input a,b,bin;
output diff,borrow;
endmodule
Result:
Thus the verliog code for full adder and full subtractor circuit was developed and functionally
verified using the simulation outputs.
Logic Diagram:
4:1 Multiplexer:
~ 71 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Truth Table:
S0 S1 Output
0 0 D0
0 1 D1
1 0 D2
1 1 D3
Output = D0S0S1+D1S0S1+D2S0S1+D3S0S1
~ 72 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
To develop and simulate the verilog code for multiplexer and de-multipleser.
Software Required:
Mentor Graphics ModelSim simulator.
Verliog Code:
4:1 Multiplexer:
module mux_4to1
(
s1,
s2,
s3,
s4,
sel,
mux_out
);
input s1,s2,s3,s4;
input [1:0] sel;
output reg mux_out;
always @*
begin
case (sel)
2'b00:
mux_out=s1;
2'b01:
mux_out=s2;
2'b10:
mux_out=s3;
2'b11:
mux_out=s4;
endcase
end
endmodule
Logic Diagram:
~ 73 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
1:4 De-Multiplexer:
Truth Table:
Input Output
D S0 S1 D0 D1 D2 D3
1 0 0 D 0 0 0
1 0 1 0 D 0 0
1 1 0 0 0 D 0
1 1 1 0 0 0 D
D0 = DS0S1
D1 = DS0S1
D2 = DS0S1
D3 = DS0S1
1:4 De-Multiplexer:
module demux_1to4
(
~ 74 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
s1,
s2,
s3,
s4,
sel,
mux_in
);
always @*
begin
case (sel)
2'b00:
s1=mux_in;
2'b01:
s2=mux_in;
2'b10:
s3=mux_in;
2'b11:
s4=mux_in;
endcase
end
endmodule
Result:
Thus the verliog code for multiplexer and de-multiplexer was developed and functionally
verified using the simulation results.
Logic Diagram:
Aim:
~ 76 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
To develop and simulate the verilog code for mod-10 and mod-12 ripple counters.
Software Required:
Mentor Graphics ModelSim simulator.
Verliog Code:
input rst,clk;
output reg [3:0] count_out;
Logic Diagram:
~ 77 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
);
input rst,clk;
output reg [3:0] count_out;
Result:
Thus the verliog code for mod-10 and mod-12 ripple counter was developed and functionally
verified using the simulation outputs.
Logic Diagram:
~ 79 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
~ 80 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Aim:
To develop and simulate the verilog code for SISO and SIPO shift registers.
Software Required:
Mentor Graphics ModelSim simulator.
Verliog Code:
endmodule
~ 81 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
Logic Diagram:
~ 82 ~ CS6211-DIGITAL LABORATORY
R.M.K. college of Engg. & Technology Dept. of CSE & IT
input clk,rst,serial_in;
output [3:0] parallel_out;
assign parallel_out=tmp;
endmodule
Result:
Thus the verliog code for SISO and SIPO shift registers was developed and functionally
verified using the simulation results.
~ 83 ~ CS6211-DIGITAL LABORATORY