DLD LAB Update Version .2
DLD LAB Update Version .2
Lab Manual
For
Life-long Learning
Problem Analysis
Development of
Professionalism
Communication
for Computing
Individual and
Modern Tool
and Society
Computing
Teamwork
Education
Academic
Problems
Solutions
Design/
Usage
Ethics
PLOs
No.
10
1
9
Learning Outcomes
At the end of the course the students will be Domain BT Level* PLO
able to:
Equipment Required
Item Quantity
DM-2000 1
7404 hex inverter 1
7408 Quad 2-input AND gate 1
7432 Quad 2-input OR gate 1
7400 Quad 2-input NAND gate 1
7402 Quad 2-input NOR gate 1
Introduction
• There are 3 hours per week allocated to a laboratory session in Logic Design & Switching
Theory Lab. It is a necessary part of the course at which attendance is compulsory. Each
laboratory experiment is marked and the average of these marks will
contribute to 20% of your Overall marks for the EE 2711 Logic Design & Switching
Theory Lab.
Lab Rules
• Students must attend all scheduled laboratory sessions.
• Students are required to be punctual – late comers may be refused entry.
• Students should come prepared. Read the background information and discuss the
experiment with their colleagues.
• Students must bring the Lab manual on every time they come to the laboratory.
• Do not make walking around, chatting or noise during lab period.
• In the lab perform all steps carefully and show it to instructor for verification.
• Pre-lab questions must be answered prior to the next laboratory session.
• Answer all questions and all sections of the laboratory.
• Here are some guidelines to help you perform the experiments and to submit the
reports:
o Read all instructions carefully and carry them all out.
o Ask a demonstrator if you are unsure of anything.
o Record actual results (comment on them if they are unexpected!)
o Write up full and suitable conclusions for each experiment.
o If you have any doubt about the safety of any procedure, contact the
demonstrator beforehand.
o THINK about what you are doing!
o After finishing the experiment, disconnect the connection wires that you have
connected during the experiment, and put them in the wire kit, take out all IC
chips from the board and put them back in the IC Cabinet, be sure to return
all materials you have used and clean your table, and inform the Lab
instructor and when you depart.
Most experiments involve the use of the Digital Logic Design Trainer which contains almost
all the things that are required to perform the experiment. In some experiments you may in
need of oscilloscope (external) or a signal generator (external) or the multi-meter.
IC Pin Configuration
For Pin Configuration and pin Diagrams refer to the IC Data Handbooks available in the Lab. It is
the responsibility of student to get the IC data sheet well in advance before coming to the Lab.
The best solution is that get the data sheet for the particular IC with the pre-lab sheet. In almost
all labs it is required that student will draw the pin diagram and function table of the IC to be
used in the Lab by himself. IC data sheet handbooks are also available in the Lab.
Sometimes the chip manufacturer may denote the first pin by a small indented circle above
the first pin of the chip. Place your chips in the same direction, to save confusion at a later
stage. Remember that you must connect power to the chips to get them to work.
The 5V supply MUST NOT BE EXCEEDED since this will damage the ICs (Integrated circuits)
used during the experiments. Incorrect connection of power to the ICs could result in them
exploding or becoming very hot - with the possible serious injury occurring to the people
working on the experiment!
Various types of logic, representing different technologies, are available to any logic
designer. The choice of a particular family is determined by factors such as speed, cost,
availability, noise immunity and so forth. The experiments in this lab book use primarily
transistor-transistor logic or TTL. The detailed performance characteristics of TTL depend on
particular sub family. However, all TTL is designed to operate from a 5V power supply, and
the logic levels are the same for all TTL integrated circuits. For any integrated circuit (IC) to
function properly, power and ground must be connected. The connection diagram for the IC
shows these connections. Figure 1-1-1. Shows the connection diagram for a 7404 hex
inverter, which will be used in this experiment.
Pins are numbered counter clock wise from the top, starting with a notch or circle at the top
or next to pin 1; see figure1-1-2
Circle Notch
Pin 1 Pin 14
Pin 7 Pin 8
Figure 1-1-2: Pin numbers of IC & Cut-away View
Logic Trainer
Regulated Power Supply: Power supply with short circuit protection that provides +5V. State
Monitors (led): State monitors are simply light emitting diodes, which are used to indicate
the state of a logical output. Lighted diode represents a logic-1 and unlighted diode means
logic-0. They are total 16 in quantity.
2-input AND: This function is carried out binary circuit (PORT) with two inputs and one only
output.
2-input OR: This function OR is carried out binary circuit (PORT) with two inputs and one
only output.
Digital Logic Design 8
2-input NAND: This function NAND is carried out binary circuit (PORT) with two inputs and
one only output.
2-input NOR: This function NOR is carried out binary circuit (PORT) with two inputs and one
only output.
Inverter: This function Inverter is carried out binary circuit (PORT) with one input and one
only output.
2-input XOR: This function XOR is carried out binary circuit (PORT) with two inputs and one
only output.
3-input OR: This function is carried out binary circuit (PORT) with three inputs and one only
output.
3-input NAND: This function NAND is carried out binary circuit (PORT) with three inputs and
one only output.
3-input AND: This function is carried out binary circuit (PORT) with three inputs and one only
output.
Tri-State Buffer: A tristate buffer has two inputs: a data input x and a control input c. The
control input acts like a valve. When the control input is active, the output is the input. That
is, it behaves just like a normal buffer. The "valve" is open.
J-K Flip flop: Dual JK flip-flop IC, which contains two individual JK type bistable’s within a single
chip enabling single or master-slave toggle flip-flops to be made. Other JK flip flop IC’s include
the IC7476 Dual JK flip-flop with clear, the 74LS109 Dual positive-edge triggered JK flip flop and
the IC7476 Dual negative-edge triggered flip-flop with both preset and clear inputs.
BI Stable Latch: A main memory circuit can be carried out with the cross coupling of two
NAND ports; this kind of connection is called RS flip flop or latch.
Sync BCD Counter: A BCD counter is a special type of a digital counter which can count to
ten on the application of a clock signal. Integrated circuit is basically a MOD-10-decade
counter that produces a BCD output code. The 74160 consists of four master-slave JK flip-
flops internally connected to provide a MOD-2 (count-to-2) counter and a MOD-5 (count-to-
5) counter.
Up/Down Counter: The up/down counter can be carried out by inserting the flip flop
network, and the clock is connected to the last output, this is the up counting while if the
clock is connected to the output Q of the present flip flop, there is the down counting.
The IC-SN74LS192, has an up/down BCD counter. The output of the four flip flop JK changes
when one of the two clock pulses changes from high to low.
Binary Counter: A digital circuit which has a clock input and a number of count outputs
which give the number of clock cycles. The output may change either on rising or falling
clock edges. The circuit may also have a reset input which sets all outputs to zero when
asserted. The counter may be either a synchronous counter or a ripple counter
BCD to 7 segment decoder: This particular logical network enables the display by means of
seven segment display, of the numbers expressed in BCD coding, which range from A to G. It
includes four inputs, which correspond with the four bits of BCD coding, each of which
controls the segment of the display.
Shift Register: if a register has a possibility to transmit information from a cell to another of
the same register, in sequence, so the register is called shift-register.
The IC-74LS95 contains four-bit shift register with series as well as parallel input and output,
it permits the shift to the right as well as left.
Comparator: A comparator compares two binary numbers and signals if the two numbers
are equal, or if one is higher than the other.
The IC-SN74LS85 contains two four bit binary numbers. The inputs A<B, A>B are used to
connect the comparator in cascade to other equal circuits, to obtain N-four bit comparator.
Digital Logic Design 9
BCD to Decimal Decoder: The BCD-to-decimal decoder converts each BCD code to its
decimal equivalent. The technique employed is very similar to the one used in developing
the 3-line-to-8-line decoder
Encoder: An encoder is a device that converts information from one format or code to
another, for the purposes of standardization, speed or compressions.
The IC-SN74LS147 contains four inputs and 10 outputs to carry out encoding function.
State Indicator:
In general, a sequence detector is a sequential logic circuit used to check an input stream of
bits and detect a specific sequence.
Multiplexer: A multiplexer is basically a n-bit binary decoder with an extra input line added
to each product term, and whose outputs are ORed together. Each product term may be
enabled or disabled, by setting their respective extra input line to either logic 1 or logic 0 ,
thus generating the desired sum of min-terms. One may improve on the previous procedure
by using the following artifice:
o Assume n = m +1;
o Use a 2m to 1 multiplexer and connect m input variables to the m select lines;
o The remaining input variable, which for simplicity is labeled as A, is used to
excite the data inputs of the multiplexer. Now these inputs can be excited
with the following.
The IC-SN74LS153 has four input multiplexer, it has two selection inputs which act on both
selectors, two enabling inputs which must be low, four inputs for each channel and last two
outputs.
DE-multiplexer: It is a logic device used for a binary data transmission of serial type, i.e. data
coming from a single line, on one of the N output lines of the circuit and among these, in
particular the one selected with the address.
The SN74LS155 is four output DE-multiplexer, it has two decoding circuits from one to four
lines, with individual strobe commands and common inputs of the binary addresses. The
individual strobes enable the activation of the each of the two four-bit section.
LED display: It is an alpha numeric display of the peripherals of the processor in digital
communication, etc. There are three kind of LED display.
1. Dot matrix (e.g. 5to 7)
2. 14 -16-18 segments
3. 7 segments
Switches: A switch is a device that channels incoming data from any of multiple input ports
to the specific output port that will take the data toward its intended destination. DM-2000
has 16 switches.
• Turn the power of Digital Logic Design Trainer off before you build anything!
• Make sure the power is off before you build anything!
• The +5V and GND pins may be found on the right side of the Digital Logic Design
Trainer.
• Mark each connection on your schematic as you go, so as not to try to make the
same connection again at a later stage.
• Get one of your group members to check the connections, before you turn the
power on.
• If an error is made and is not spotted before you turn the power on. Turn the power
off immediately before you begin to rewire the circuit.
• At the end of the laboratory session, collect your hook-up wires, chips and all
equipment and return them to the demonstrator.
Digital Logic Design 10
• Tidy the area that you were working in and leave it in the same condition as it was
before you started.
Draw figure here using logic symbol Develop the truth table for the IC 74LS00
Develop the truth table for the IC 74LS00
Draw figure here using logic symbol Develop the truth table for the IC 74LS02
Digital Logic Design 11
Draw figure here using logic symbol Develop the truth table for the IC 74LS08
Draw figure here using logic symbol Develop the truth table for the IC 74LS32
Digital Logic Design 12
Learning outcomes:
In this lab we have learned
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 2
Basic Gates
Digital Logic Design 15
Equipment Required
Theory
Binary logic consists of binary variables and logical operators. The variables are designated
by the letters of alphabet such as A, B, X, Y etc., with each variable having two and only two
distinct possible values: 1 and 0. AND is one of the three basic logical operations.
⚫
For a 2-input AND gate, output X is HIGH only when inputs A and B are HIGH.
⚫
X is LOW when either A or B is LOW, or when both A and B are LOW.
⚫
ALL-OR-NOTHING Gate.
⚫
For any AND gate regardless of the number of inputs, the output is HIGH, only when
all inputs are HIGH & LOW when all or any input(s) is LOW.
It should be kept in mind that A, B and X are binary variables and can be equal either to 1 or
0 and nothing else.
Diagram
AND
Pin Configurations:
Procedure
A B F
OFF OFF
OFF ON
ON OFF
ON ON
Learning outcomes:
In this lab we have learned
Questions
3. What will be the output of AND gate if it’s all input are at logic-1?
4. Draw the pin diagram of the 74LS08 IC and mention the inputs and outputs clearly.
7. Develop the truth table for an AND gate having 3-inputs. Also write Boolean
expression.
8. How many inputs should be kept at logic-0 to maintain the output of 3-input
AND gate at logic-0?
Digital Logic Design 19
Equipment Required
Theory
Binary Logic consists of binary variables and logical operators. The variables are designated
by the letters of alphabet such as A, B, X, Y etc., with each variable having two and only two
distinct possible values: 1 and 0. Or is one of the three basic logical operations.
⚫
X is HIGH when either A or B is HIGH, or when both A and B are HIGH.
⚫
For a 2-input OR gate, output X is LOW only when inputs A and B are LOW.
⚫
ANY-OR-ALL Gate.
⚫
For any AND gate regardless of the number of inputs, the output is HIGH, only when any
input(s) is HIGH & LOW when all inputs are LOW.
Diagram
OR
Pin Configurations
Procedure
A B F
OFF OFF
OFF ON
ON OFF
ON ON
Learning outcomes:
In this lab we have learned
3. What will be the output of OR gate if it’s all input are at logic-1?
4. Draw the pin diagram of the 74LS32 IC and mention the inputs and outputs clearly.
6. Develop the truth table for an OR gate having 3-inputs. Also write Boolean expression.
7. How many inputs of OR gate should be at logic-1 to keep the output of gate
at Logic-1?
Digital Logic Design 23
Equipment required
Theory
Binary Logic consists of binary variables and logical operators. The variables are designated
by the letters of alphabet such as A, B, X, Y etc., with each variable having two and only two
distinct possible values: 1 and 0. Or is one of the three basic logical operations.
⚫
The output of an inverter is always complement (opposite) of the input
⚫
When a HIGH level input is applied a LOW level input will appear and vice versa.
⚫
This operation is represented by a prime (sometimes by an over bar) sign , logic symbol for
inversion
A or A’
⚫
When input A is run through two invertors, we end up with same input i.e. ‘A’.
A’’ = A
Diagram
NOT
Pin Configurations
Procedure
A F = A’
OFF
ON
Learning outcomes:
In this lab we have learned
1. How to investigate the behavior of NOT gate?
2. The pin diagram of 74LS04.
3. How to verify the truth table of NOT gate?
Digital Logic Design 25
4. Draw the pin diagram of the 74LS04 IC and mention the inputs and outputs clearly.
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 3
Universal Gates
Digital Logic Design 28
Equipment Required
Theory
The NAND gate is a popular logic element because it can be used as a universal gate; that is,
NAND gates can be used in combination to perform the AND, NOR, OR and NOT operations.
The universal property will be examined thoroughly in the coming experiments but here we
will just say that the term NAND is the contraction of NOT-AND and implies an AND function
with a complemented (inverted) output.
⚫
This operation is opposite that of the AND in terms of the output level i.e. complement of
AND gate function.
⚫
When any input is LOW, the output will be HIGH
⚫
When all input are HIGH, LOW output will appear
Diagram
NAND
Pin Configurations
Procedure
TIME
Learning outcomes:
In this lab we have learned
3. What will be the output of NAND gate if it’s all input are at logic-1?
4. Draw the pin diagram of the 74LS00 IC and mention the inputs and outputs clearly.
7. Develop the truth table for NAND gate having 3-inputs. Also write Boolean expression.
8. Draw the timing wave diagram for NAND gate with 3-inputs.
Digital Logic Design 32
Equipment Required
Theory
The NOR gate is a popular logic element because it can be used as a universal gate; that is,
NOR gates can be used in combination to perform the AND, NAND, OR and NOT operations.
The universal property will be examined thoroughly in the coming experiments but here we
will just say that the term NOR is the contraction of NOT-OR and implies an OR function with
a complemented (inverted) output.
⚫
This operation is opposite that of the OR in terms of the output level i.e. complement of OR
gate function.
⚫
When all input are LOW, the output will be HIGH.
⚫
When any input is HIGH, LOW output will appear.
Diagram
NOR
Pin Configurations
Procedure
A B F
OFF OFF
OFF ON
ON OFF
ON ON
Timing wave diagram of the NOR gate is
TIME
Learning outcomes:
In this lab we have learned
3. What will be the output of NOR gate if it’s all input are at logic-1?
4. Draw the pin diagram of the 74LS02 IC and mention the inputs and outputs clearly.
7. Develop the truth table for NOR gate having 3-inputs. Also write Boolean expression.
8. Draw the timing wave diagram for NOR gate with 3-inputs.
9. Draw equivalent symbol for two input NOR gate using OR-invert symbol.
10. Draw equivalent symbol for two input NOR gate using Invert-AND symbol.
Digital Logic Design 36
Equipment Required
Theory
The NAND gate is a popular logic element because it can be used as a universal gate; that is,
NAND gates can be used in combination to perform the AND, OR, NOT, NOR, XOR and XNOR
operations.
• A NOT gate can be implemented using a NAND gate by connecting both the inputs of
the NAND gate together as shown in Figure 3-3-1 (a).
• A NAND Gate performs the AND-NOT function. Removing the NOT gate at the output
of the NAND gate results in an AND gate as shown in Figure 3-3-1 (b).
• An OR Gate can be implemented using a combination of three NAND gates as shown
in Figure 3-3-1 (c).
• The OR gate implementation using three AND gates is shown in previous figure. A
NOR gate implementation requires addition of an inverter (NOT) gate at the output
as shown in Figure 3-3-1 (d).
• An XOR gate is constructed similarly to an OR gate, except with an additional NAND
gate inserted such that if both inputs are high, the inputs to the final NAND gate will
also be high, and the output will be low. This effectively represents the formula: "(A
NAND N) NAND (B NAND N) where N = A NAND B", or in terms of the similar OR gate:
"(A OR B) AND (A NAND B)" as shown in Figure 3-3-1 (e).
• An XNOR gate is simply an XOR gate with an inverted output as shown in Figure 3-3-1
(f).
Digital Logic Design 37
Diagram
(a) NOT Gate using NAND Gate (b) AND Gate using NAND Gate
Pin Configurations
Procedure
Learning outcomes:
In this lab we have learned
1. Label all figure given in 3-3-1 also write the Boolean expression.
2. Verify all the Boolean expression written by you in Q1 for their respective gate.
Digital Logic Design 40
4. Draw an alternative circuit diagram of XOR Gate & XNOR Gate using NAND gate only.
Digital Logic Design 41
Equipment Required
Theory
The NOR gate is a popular logic element because it can be used as a universal gate; that is,
NOR gates can be used in combination to perform the AND, OR, NOT, NAND, XOR and XNOR
operations.
• A NOT gate can be implemented using a NOR gate by connecting both the inputs of
the NOR gate together as shown in Figure 3-4-1 (a).
• A NOR Gate performs the OR-NOT function. Removing the NOT gate at the output of
the NOR gate results in an OR gate as shown in Figure 3-4-1 (b).
• An AND Gate can be implemented using a combination of three NOR gates as shown
in Figure 3-4-1 (c).
• The AND gate implementation using three NOR gates is shown in previous figure. A
NAND gate implementation requires addition of an inverter (NOT) gate at the output
as shown in Figure 3-4-1 (d).
• An XOR gate is constructed similarly to an AND gate, except with an additional NOR
gate inserted such that if any inputs are low, the inputs to the final NOR gate will also
be low, and the output will be low plus the inverter or gate circuit at the end as
shown in Figure 3-4-1 (e).
• An XNOR gate can be constructed from four NOR gates implementing the expression
"(A NOR N) NOR (B NOR N) where N = A NOR B" as shown in Figure 3-4-1 (f).
Diagram
(a) NOT Gate using NOR Gate (b) OR Gate using NOR Gate
Digital Logic Design 42
Procedure
Learning outcomes:
In this lab we have learned
1. Label all figure given in 3-4-1 also write the Boolean expression.
2. Verify all the Boolean expression written by you in Q1 for their respective gate.
3. Draw an alternative circuit diagram of XOR Gate & XNOR Gate using NAND gate only.
Digital Logic Design 45
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 4
Exclusive Gates
Digital Logic Design 48
Equipment Required
Theory
The Exclusive OR gate has a graphic symbol similar to that of OR gate, except for the additional
curve on the input side. The Exclusive-OR is actually formed by a combination of other gates.
However, because of its fundamental importance in many applications, this gates is treated as
basic logical element with its own unique symbol. In a 2-input Exclusive -OR operation
⚫
The output will be HIGH when both inputs are at opposite level (i.e. different).
⚫
The output will be LOW when both inputs are at same level.
⚫
The gate circuit is often known as in-equality comparator or odd detector.
Diagram
XOR
Pin Configurations:
Procedure
A B F
OFF OFF
OFF ON
ON OFF
ON ON
Learning outcomes:
In this lab we have learned
2. What will be output of the XOR gate if inputs are not equal?
3. What will be the output of XOR gate if it’s all input are at logic-0 or at logic-1?
4. Draw the pin diagram of the 74LS86 IC and mention the inputs and outputs clearly.
5. Write the Boolean expression for 2-input XOR-gate also draw Circuit diagram.
7. Develop the truth table for an XOR gate having 3-inputs. Also write Boolean
expression.
8. Design a circuit that generates an odd parity bit for 2-bit input.
9. Design a circuit that generates an even parity bit for 2-bit input.
Digital Logic Design 52
Equipment Required
Theory
The Exclusive NOR gate has a graphic symbol similar to that of OR gate, except for the
additional curve on the input side and an additional circle on output side. The Exclusive-NOR
is actually formed by a combination of other gates. However, because of its fundamental
importance in many applications, this gates is treated as basic logical element with its own
unique symbol. In a 2-input Exclusive -NOR operation
⚫
Complement of XOR Gate.
⚫
The output will be HIGH when both inputs are at same level.
⚫
The output will be LOW when both inputs are at different level.
⚫
The gate circuit is often known as equality comparator or even detector.
Diagram
XNOR
Pin Configurations
Figure 4-2-2: Pin Diagram 74LS86-Two Figure 4-2-3: Pin Diagram 74LS04 NOT Gate
Input XOR Gate
Procedure
A B F
OFF OFF
OFF ON
ON OFF
ON ON
Learning outcomes:
Questions
.
1. State the behavior of XNOR gate in words
2. What will be output of the XNOR gate if inputs are not equal?
3. What will be output of the XNOR-gate if all its input is at logic-0 or at logic-1?
4. What will be the output of XNOR-gate if its inputs are at different logics?
6. Develop the truth table for 3-input XNOR-gate. Also write the Boolean expression.
Digital Logic Design 55
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 5
Code Converters
Digital Logic Design 58
Equipment Required
• Digital Logic Trainer AM-2000
• Wires
Theory
There is a class of codes, referred to as unit distance codes that are particularly important
when an analog quantity must be converted into digital representation. The basic property
of the unit distance code is that only one-bit change between two successive integers which
are being coded.
Here in this experiment we will make use of the following rule to convert from binary to gray
code.
Consider an n-bit Binary number (Input) = B n-1 B n-2 B n -3 ---------- B 2 B1 B 0
And assume an n-bit Gray Code number (Output) = G n-1 G n-2 G n -3 ------- G 2 G1 G 0
G n - 1 = B n -1
G n - 2 = B n -1 XOR B n - 2
G n - 3 = B n -2 XOR B n – 3
G 2 = B 3 XOR B 2
G 1 = B 2 XOR B 1
G 0 = B 1 XOR B 0
Digital Logic Design 59
Diagram
Figure 5-1-1: The logic diagram Binary code to Gray Code Conversion.
Procedure
Complete the table given below carefully by examining and carrying out the operations
mentioned in the theory.
Learning outcomes:
In this lab we have learned
Questions
2. How can we use Exclusive-OR to convert the binary number of into gray code?
3. Write the rule that converts the binary number into gray code in your own words in
the form of algorithm.
4. Draw the Karnaugh Map for output G4 (B4, B3, B2, B1) and write its simplified
Boolean equation.
5. Draw the Karnaugh Map for output G3 (B4, B3, B2, B1) and write its simplified
Boolean equation.
6. Draw the Karnaugh Map for output G2 (B4, B3, B2, B1) and write its simplified
Boolean equation.
7. Draw the Karnaugh Map for output G1 (B4, B3, B2, B1) and write its simplified
Boolean equation.
Equipment Required
Theory
There is a class of codes, referred to as unit distance codes that are particularly important
when an analog quantity must be converted into digital representation. The basic property
of the unit distance code is that only one-bit change between two successive integers which
are being coded.
Here in this experiment we will make use of the following rule to convert from binary to gray
code.
Consider an n-bit Gray Code number (Input) = G n-1 G n-2 G n -3 ------- G 2 G1 G 0 and assume
an n-bit Binary number (output) = B n-1 B n-2 B n -3 ---------- B 2 B1 B 0
B n - 1 = G n -1
B n - 2 = B n -1 XOR G n - 2
B n - 3 = B n -2 XOR G n – 3
B 2 = B 3 XOR G 2
B 1 = B 2 XOR G 1
B 0 = B 1 XOR G 0
Digital Logic Design 64
Figure 5-2-1: The logic diagram Binary code to Gray Code Conversion.
Procedure
Complete the table given below carefully by examining and carrying out the
operations mentioned in the theory.
Learning outcomes:
In this lab we have learned
2. How can we use Exclusive-OR to convert the Gray code number of into Binary code
number?
3. Write the rule that converts the Gray code number into Binary code in your own
words in the form of algorithm.
4. Draw the Karnaugh Map for output B4 (G4, G3, G2, G1) and write its simplified
Boolean equation.
5. Draw the Karnaugh Map for output B3 (G4, G3, G2, G1) and write its simplified
Boolean equation.
6. Draw the Karnaugh Map for output B2 (G4, G3, G2, G1) and write its simplified
Boolean equation.
7. Draw the Karnaugh Map for output B1 (G4, G3, G2, G1) and write its simplified
Boolean equation.
Equipment Required
Theory
Electronic digital systems use signals that have two distinct values and circuit elements have
two stable states. There is a direct analogy among binary signals, binary circuit elements,
and binary digits. A binary number of n-digits, for example, may be represented by n circuit
elements, each having an output signal equivalent to 0 or a 1.
Binary codes for decimal digits require a minimum of four bits. Numerous different codes
can be obtained by arranging four or more bits in ten distinct possible combinations. The
BCD (binary coded decimal) is a straight assignment of the binary equivalent. It is possible to
assign weights to binary bits according to their positions. The weights in the BCD code are 8,
4, 2, and 1. The bit assignment 0110, for example, can be interpreted by the weights to
represent the decimal digit 6 because
08+14+12+01=6
Here in this experiment we will convert the BCD 8421 to Excess-3 Code.
Consider an 4-bit BCD 8421 number (Inputs) = B4 B3 B2 B 1 and assume an 4-bit Excess-3
Code number (Outputs) = E4 E3 E2 E1
Diagram
BCD 8421
to
Inputs Excess-3 Code Converter Outputs
Figure 5-3-1: The Block diagram BCD 8421 to Excess-3 Code Converter.
Digital Logic Design 69
Procedure
1. Use the pre- lab for Boolean expression and make the connections.
2. Connect the Digital Logic Trainer AM-2000 to 220V Ac power supply
3. Select the logic switches for the Binary Coded Decimal Input and mark them carefully.
4. Select the LED’s for output as Excess-3 code and marks them carefully.
5. Now select the Binary inputs one by one and complete the circuit slowly.
6. Change the inputs starting 0 to 15 and complete the truth table given below.
Complete the table given below carefully by examining and carrying out the operations
mentioned in the theory.
Learning outcomes:
In this lab we have learned
Questions
1. How can you develop the circuit using IC 74LS83 (4-bit full adder) to obtain the
Excess-3 Code from outputs of the IC 74LS83?
2. Perform the whole experiment to get the same results using 4-bit full adder.
3. Draw the Karnaugh Map for output E4 (B4, B3, B2, B1) and write its simplified
Boolean equation.
4. Draw the Karnaugh Map for output E3 (B4, B3, B2, B1) and write its simplified
Boolean equation.
5. Draw the Karnaugh Map for output E2 (B4, B3, B2, B1) and write its simplified
Boolean equation.
6. Draw the Karnaugh Map for output E1 (B4, B3, B2, B1) and write its simplified
Boolean equation.
Equipment Required
Electronic digital systems use signals that have two distinct values and circuit elements have
two stable states. There is a direct analogy among binary signals, binary circuit elements,
and binary digits. A binary number of n-digits, for example, may be represented by n circuit
elements, each having an output signal equivalent to 0 or a 1.
Binary codes for decimal digits require a minimum of four bits. Numerous different codes
can be obtained by arranging four or more bits in ten distinct possible combinations. The
BCD (binary coded decimal) is a straight assignment of the binary equivalent. It is possible to
assign weights to binary bits according to their positions. The weights in the BCD code are 8,
4, 2, and 1. The bit assignment 0110, for example, can be interpreted by the weights to
represent the decimal digit 6 because
08+14+12+01=6
Here in this experiment we will convert the BCD 8421 to Excess-3
Code. Consider 4-bit Excess-3 Code number (Inputs) = E4 E3 E2 E1
Assume 4-bit BCD 8421 number (Outputs) = B4 B3 B2 B 1
Diagram
Excess-3 Code
to
Inputs BCD 8421 Converter Outputs
Figure 5-4-1: The Block Diagram Excess-3 Code to BCD 8421 Converter.
Digital Logic Design 73
Procedure
1. Use the pre- lab for Boolean expression and make the connections.
2. Connect the Digital Logic Trainer AM-2000 to 220V Ac power supply
3. Select the logic switches for the Excess-3 Code Input and mark them carefully.
4. Select the LED’s for output as Binary Coded Decimal and marks them carefully.
5. Now select the Binary inputs one by one and complete the circuit slowly.
6. Change the inputs starting 0 to 15 and complete the truth table given below.
Observations and Results:
Complete the table given below carefully by examining and carrying out the operations
mentioned in the theory.
Learning outcomes:
In this lab we have learned
Questions
1. How can you develop the circuit using IC 74LS83 (4-bit full adder) to obtain the BCD
8421 Code from outputs of the IC 74LS83?
2. Perform the whole experiment to get the same results using 4-bit full adder.
3. Draw the Karnaugh Map for output B4 (E4, E3, E2, E1) and write its simplified
Boolean equation.
4. Draw the Karnaugh Map for output B3 (E4, E3, E2, E1) and write its simplified
Boolean equation.
5. Draw the Karnaugh Map for output B2 (E4, E3, E2, E1) and write its simplified
Boolean equation.
6. Draw the Karnaugh Map for output B1 (E4, E3, E2, E1) and write its simplified
Boolean equation.
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 6
Half Adder
&
Half Subtractor
Digital Logic Design 78
Equipment Required
Theory
Adders are important not only in the computers, but in many types of digital systems in
which numerical data are processed. An understanding of the basic adder operation is
fundamental to the study of digital system. In this lab half adder is introduced.
Half Adder accepts two binary digits on its inputs and produces two binary digits on its
outputs, one output is called sum bit and the other is called carry bit.
Diagram
Procedure
1. Connect the Digital Logic Trainer AM-2000 to 220V AC supply.
2. Carry out the circuit of figure 6-1-1 using an AND and XOR gates on AM-2000 trainer.
3. Connects the inputs X and Y to two switches.
4. Connects the outputs S (sum) and C (carry over) to two LED.
5. Note down the outputs and compare it to the truth table of HALF-ADDER.
Digital Logic Design 79
Inputs Outputs
X Y C S
0 0
0 1
1 0
1 1
Learning outcomes:
In this lab we have learned
3. What will be the output of Sum if it’s all inputs are at logic-0 or at logic-1?
4. Write the Boolean expression for Half Adder circuit? Also Draw the logic and block
diagram.
5. Implement the half adder circuit using minimum number of NAND Gates only.
Digital Logic Design 81
6. Implement the half adder circuit using minimum number of NOR Gates only.
Digital Logic Design 82
Equipment Required
Theory
Adders and Subtractor are important not only in the computers, but in many types of digital
systems in which numerical data are processed. An understanding of the basic adder
operation is fundamental to the study of digital system. In this lab Half Subtractor is
introduced.
Half Subtractor accepts two binary digits on its inputs and produces two binary digits on its
outputs, one output is called difference bit and the other is called barrow bit.
Diagram
Procedure
Inputs Outputs
a b B D
0 0
0 1
1 0
1 1
Learning outcomes:
In this lab we have learned
3. What will be the output of Borrow if it’s all inputs are at logic-0 or at logic-1?
4. Write the Boolean expression for Half Adder circuit. Also draw the logic diagram of
Half Subtractor?
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 7
Full Adder
&
Full Subtractor
Digital Logic Design 88
1. To Study the behavior of Full Adder & Full Subtractor circuit by making truth table.
2. To verify the truth table of Full Adder.
3. To verify the truth table of Full Subtractor.
Equipment Required
Theory
Adders are important not only in the computers, but in many types of digital systems in
which numerical data are processed. An understanding of the basic adder operation is
fundamental to the study of digital system. In this lab Full adder & Subtractor is introduced.
Full Adder accepts three binary digits on its inputs and produces two binary digits on its
outputs, one output is called sum bit and the other is called carry bit.
Diagram
Inputs Outputs
x y z C S
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Learning outcomes:
In this lab we have learned
1. The behavior of Full Adder & Full Subtractor circuit by making truth table.
2. How to verify the truth table of Full Adder?
3. How to verify the truth table of Full Subtractor?
Digital Logic Design 90
Questions
2. Draw the block diagram of Full Adder using Half Adders as building blocks.
Inputs Outputs
x y z C S
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
4. Write the Boolean expression output S(x, y)? Also draw the logic diagram.
Digital Logic Design 91
5. Write the Boolean expression for output C(x, y)? Also draw the logic diagram.
9. Design a full Subtractor by following the same procedure as for Full Adder.
Digital Logic Design 93
2. Draw the block diagram of Full Subtractor using Half Subtractor as building blocks.
Inputs Outputs
x y z B D
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
4. Write the Boolean expression output D(x, y)? Also draw the logic diagram.
Digital Logic Design 94
5. Write the Boolean expression for output B(x, y)? Also draw the logic diagram.
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 8
Decoders
Digital Logic Design 97
Equipment Required
Theory
Decoders are used to translate information from one form to another form. A decoder is a
combinational circuit that converts binary information from n-input lines to a maximum of
2n unique output line. If the n-bit coded information has unused combinations, the decoder
may have fewer than 2n outputs. The decoder presented here are called n-to-m-line
decoders, where m < = 2n, their purpose is to generate the 2n (or fewer) min-terms of n
input variables. The name decoder is also used in conjunction with other code converters
such as BCD-to-seven-segment decoder.
2 4 line decoder has two input lines, four output lines and may or may not have enable
lines. For each possible input combination, there are three outputs that are equal to 0 and
only one that is equal to 1. The output whose value is 1 represents the minterm equivalent
of the binary number presently available in the input lines. Hence decoders are also called
min-term generators. As decoder can implement more than one function easily.
Diagram
Procedure
1. Use the pre- lab for Boolean expression and make the connections.
2. Connect the Digital Connect the Digital Logic Trainer AM-2000 to 220V AC supply.
3. Connect I1 input of Decoder Gate to the Logic Switch 1 of the trainer using wire.
4. Connect I0 input of Decoder Gate to the Logic Switch 2 of the trainer using wire.
5. Connect D0, D1, D2, D3 output of Decoder Gate to the LEDs of trainer using wire.
6. Now change the positions of switch 1 and switch 2 in order to note down the output
of the Decoder Gate according to the truth table.
Complete the table given below carefully by examining and carrying out the operations
mentioned in the theory.
Figure 8-1-1: Function table for 2 4 Decoder.
Inputs Outputs
I1 I0 D0 D1 D2 D3
0 0
0 1
1 0
1 1
Learning outcomes:
In this lab we have learned
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff.
Questions
1. Add an enable line for 2 4 decoder. Write the name of enable line.
2. Draw the block diagram of 2 4 decoder. Mention all inputs, outputs and enable line
clearly.
output. D0 =
D1 =
D2 =
D3 =
Digital Logic Design 100
Equipment Required
Theory
Decoders are used to translate information from one form to another form. A decoder is a
combinational circuit that converts binary information from n-input lines to a maximum of
2n unique output line. If the n-bit coded information has unused combinations, the decoder
may have fewer than 2n outputs. The decoder presented here are called n-to-m-line
decoders, where m < = 2n, their purpose is to generate the 2n (or fewer) min-terms of n
input variables. The name decoder is also used in conjunction with other code converters
such as BCD-to-seven-segment decoder.
3 8 line decoder has three input lines, eight output lines and may or may not have enable
lines. For each possible input combination, there are seven outputs that are equal to 0 and
only one that is equal to 1. The output whose value is 1 represents the minterm equivalent
of the binary number presently available in the input lines. Hence decoders are also called
min-term generators. As decoder can implement more than one function easily.
Diagram
8 Outputs
3 inputs 3 8 Decoder
Logic Diagram
Procedure
1. Use the pre- lab for Boolean expression and make the connections.
2. Connect the Digital Connect the Digital Logic Trainer AM-2000 to 220V AC supply.
3. Connect I0 input of Decoder Gate to the Logic Switch 1 of the trainer using wire.
4. Connect I1 input of Decoder Gate to the Logic Switch 2 of the trainer using wire.
5. Connect I2 input of Decoder Gate to the Logic Switch 3 of the trainer using wire
6. Connect D0, D1, D2, D3, D4, D5, D6, D7 output of Decoder Gate to the LEDs of
trainer using wire.
7. Now change the positions of switches, in order to note down the output of the
Decoder Gate according to the truth table.
Digital Logic Design 103
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
1 1 1
Learning outcomes:
In this lab we have learned
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff
Questions
1. Draw the pin diagram of 3 8 decoder. Mention all inputs, outputs and enable line
clearly.
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
1 1 1
D0 =
D1 =
D2 =
D3 =
Digital Logic Design 105
D4 =
D5 =
D6 =
D7 =
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 9
BCD
to
7-Segment Decoder
Digital Logic Design 109
Equipment Required
Theory
A seven-segment is used for displaying any one of the decimal digits 0 through 9. Usually the
decimal digit is available in BCD. A BCD to seven segment decoder accepts a decimal digit in
BCD and generate the corresponding seven-segment code.
The IC 7447 is a BCD to seven segment decoder/driver. It has four inputs for the BCD digit.
The 4-bit BCD digit is converted to a seven segment code with outputs a through g. The
outputs of the 7447 is applied to the inputs of seven segment display.
The seven segment display IC contains the seven LED (light emitting diode) segments on top
of the package. A 47-ohm resistor to Vcc is needed in order to supply the proper current to
the selected LED’s segments.
Different seven segment display may have different things. So it is mentioned to consult the
particular details of all the IC’s to be used.
Diagram
Figure 9-1-2: (a) Segment designation (b) Numeric designation for display.
Procedure
NOTE
Inputs 1010 through 1111 have no meaning in BCD. Depending upon the decoder, these
values may cause either a blank or meaningless pattern or as mentioned in the data sheets.
Observe and record the output displayed patterns of the six unused input combinations.
Learning outcomes:
In this lab we have learned
1. Draw the block diagram of a BCD to seven-segment-decoder. Mention all input lines
and output lines clearly.
3. Draw the Karnaugh Map and write Boolean expression for output a.
Digital Logic Design 112
4. Draw the Karnaugh Map and write Boolean expression for output b.
5. Draw the Karnaugh Map and write Boolean expression for output c.
6. Draw the Karnaugh Map and write Boolean expression for output d.
7. Draw the Karnaugh Map and write Boolean expression for output e.
Digital Logic Design 113
8. Draw the Karnaugh Map and write Boolean expression for output f.
9. Draw the Karnaugh Map and write Boolean expression for output g.
SECTION B: IC 7447
Questions
5. What do understand by the term common cathode type seven segment indicator?
Digital Logic Design 115
6. How will you make connections of seven segment of common cathode type?
Draw the figure.
7. What do understand by the term common anode type seven segment indicator?
8. How will you make connections of seven segment of common anode type? Draw
the figure.
Digital Logic Design 116
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 10
Encoders
Digital Logic Design 118
Equipment Required
An example of the encoder is 4 2 line encoder, it has four input lines one for each of the
binary digits, two output lines that generate the corresponding binary number. It is assumed
that only one input has a high value of at any given time. The encoder just defined has the
limitation that only one input can be active at any given time: if two inputs are active
simultaneously, the output produces an incorrect combination.
To resolve this ambiguity, some encoder circuit must establish an input priority to ensure
that only one input is encoded. Another ambiguity in the encoder is that an output of all 0’s
is generated when all the inputs are 0, but this output is the same as when first input is
equal to 1. This discrepancy can be resolved by providing one more output to indicate that
at least one input is equal to 1.
Pin Diagram.
Procedure
1. Use the pre- lab for Boolean expression and make the connections.
2. Connect the Digital Connect the Digital Logic Trainer AM-2000 to 220V AC supply.
3. Connect D0, D1, D2, and D3input of Encoder Gate to the Logic Switches of the trainer
using wire.
4. Connect O1, O0 output of Encoder Gate to the LEDs of trainer using wire.
5. Now change the positions of switches, in order to note down the output of the
Encoder Gate according to the truth table.
6. Proceed in a sequential order to complete the whole Functional Table given below.
7. Note down all outputs carefully.
Learning outcomes:
In this lab we have learned
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff
output. I0 =
I1 =
1. Draw the block diagram of 4 2 priority encoder. Mention all input lines and output
lines clearly.
output. I0 =
I1 =
V=
Equipment Required
Theory
Encoder converts an active input signal into a coded output signal. Encoder has n input lines
only one of them is active. The internal logic of the encoder converts this active input into a
coded binary output with m bits.
An example of the encoder is 8 3 line encoder, it has eight input lines one for each of the
binary digits, three output lines that generate the corresponding binary number. It is
assumed that only one input has a high value of at any given time.
The encoder just defined has the limitation that only one input can be active at any given
time: if two inputs are active simultaneously, the output produces an incorrect combination.
IC 74147 is a Decimal-to-BCD Encoder. It has ten decimal inputs and four BCD outputs. It is a
priority encoder because it gives priority to the highest-order input. If more than one line is
active the line with the highest priority will get encoded.
IC 74148 is an Octal to Binary encoder. It has eight decimal inputs and three binary outputs.
It is a priority encoder because it gives priority to the highest-order input. If more than one
line is active the line with the highest priority will get encoded.
Diagram
Procedure
1. Use the pre- lab for Boolean expression and make the connections.
2. Connect the Digital Connect the Digital Logic Trainer AM-2000 to 220V AC supply.
3. Connect D0, D1, D2, D3, D4, D5, D6, D7 input of Encoder Gate to the Logic Switches
of the trainer using wire.
4. Connect O2, O1, and O0 output of Encoder Gate to the LEDs of trainer using wire.
5. Now change the positions of switches, in order to note down the output of the
Encoder Gate according to the truth table.
6. Proceed in a sequential order to complete the whole Functional Table given below.
7. Note down all outputs carefully.
Observations and Results:
Complete the table given below carefully
Inputs Outputs
D0 D1 D2 D3 D4 D5 D6 D7 O2 O1 O0
Learning outcomes:
In this lab we have learned
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff
1. Draw the block diagram of 8 3 encoder. Mention all input lines and output lines
clearly.
output. O0 =
O1 =
O2 =
2. Complete the table given below carefully for IC 74147 Decimal to BCD Encoder
Inputs Outputs
D0 D1 D2 D3 D4 D5 D6 D7 D8 O3 O2 O1 O0
output. O1 =
O2 =
O3 =
O4 =
Digital Logic Design 128
2. Complete the table given below carefully for IC 74148 Octal to Binary Encoder
Inputs Outputs
D0 D1 D2 D3 D4 D5 D6 D7 O2 O1 O0
Digital Logic Design 129
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 11
Multiplexers
Digital Logic Design 131
Equipment Required
Theory
Multiplex means many into one. A multiplexer is a circuit with many inputs but only one
output. By applying control signals, we can steer any input to the output. Figure 11-1-1
illustrates the general idea. The circuit has n input signals, one output signal and m control
signals
Multiplexer is also called data selector because the output bit depends upon the input data
bit selected. Input data bit is selected by the selection lines.
4 1 Multiplexer has four input lines, one output and two selection lines or control lines.
One of the input line is selected (by means of control lines) and transmitted to the output. As
multiplexer has only one output, hence it has only one output function. In other words, it
can implement only one Boolean function.
Diagram
Logic Diagram
Procedure
Complete the table given below carefully by examining and carrying out the operations
mentioned in the theory.
Learning outcomes:
In this lab we have learned
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff
Questions
1. How many control lines are required for 4 1 Multiplexer? Write the names of
control lines.
2. Draw the block diagram of 4 1 Multiplexer. Mention all inputs, output and selection
lines clearly
.
3. Develop the compressed Functional Table (Truth Table).
Equipment Required
Theory
Multiplex means many into one. A multiplexer is a circuit with many inputs but only one
output. By applying control signals, we can steer any input to the output. Figure 1 illustrates
the general idea. The circuit has n input signals, one output signal and m control signals.
Multiplexer is also called data selector because the output bit depends upon the input data
bit selected. Input data bit is selected by the selection lines.
8 1 Multiplexer has eight input lines, one output and three selection lines or control lines.
One of the input line is selected (by means of control lines) and transmitted to the output. As
multiplexer has only one output, hence it has only one output function. In other words, it
can implement only one Boolean function.
Diagram
Logic Diagram
Pin Diagram:
Procedure
1. Use the pre- lab for pin connections and make the connections.
2. Connect the Digital Logic Trainer AM-2000 to 220V AC supply.
3. Connect the inputs for selecting A and B to the outputs B0 and B1 of the pre-scalar.
4. Connect the Strobe input 1G to the output B2 of the pre-scalar and the strobe input
2G to its negated.
5. Connect the common terminal C of the pre-scalar to ground.
6. Connect the outputs of the two multiplexers to an OR port and consequently, the OR
to a Led.
7. Increment the numerical combination of the pre-scalar and each time check which is
the input selected.
Digital Logic Design 138
Complete the table given below carefully by examining and carrying out the operations
mentioned in the theory.
Learning outcomes:
In this lab we have learned
Questions
1. How many control lines are required for 8 1 Multiplexer? Write the names of
control lines.
2. Draw the block diagram of 8 1 Multiplexer. Mention all inputs, output and selection
lines clearly.
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 12
Latches
Digital Logic Design 144
Theory
So far we’ve just worked with combinational circuits, where applying the same inputs always
produces the same outputs. This corresponds to a mathematical function, where every input has
a single, unique output. In programming terminology, combinational circuits are similar to
“functional programs” that do not contain variables and assignments.
In contrast, the outputs of a sequential circuit depend on not only the inputs, but also the
state, or the current contents of some memory. This makes things more difficult to
understand, since the same inputs can yield different outputs, depending on what’s stored in
memory. The memory contents can also change as the circuit runs. We’ll some need new
techniques for analyzing and designing sequential circuits.
Diagram
Procedure
1. Connect the Digital Logic Trainer AM-2000 to 220V AC supply
2. Use two NOR blocks available on the trainer.
3. Connect R input of NOR Gate to the Logic Switch 1 of the trainer using wire.
4. Connect S input of NOR to the Logic Switch 2 of the trainer using wire.
5. Follow the above circuit in Figure 12-1-1.
6. Connect Q and Q* output of the two NOR Gates to the LEDs of trainer using wire.
7. Note down the initial state of the Normal Output Q. Q =
8. Now change the inputs S and R according to the truth table and fill it up.
Observations and Results:
Table 12-1-1: Characteristic table of RS latch
Inputs Outputs
Q Q’ S R Q+ Q+’
Digital Logic Design 146
Learning outcomes:
In this lab we have learned
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff
Questions
1. Draw the graphic symbol of RS latch. Mention all inputs and output clearly,
2. Draw the logic diagram of RS latch neither using NOR gates. Mention all inputs and
output clearly.
9. State the condition when next state will be equal to present state.
.
11. If both S and R at the same logic levels, then what will happen?
Theory
Figure 12-2-1: (a) Logic Diagram of SR latch with control input using NAND gates.
(b) Function table (c) Graphic symbols
Digital Logic Design 149
Procedure
Table 12-2-1: Characteristic table of SR latch with control input using NAND gates.
Inputs Outputs
Q C S R Q+ Q+’
Learning outcomes:
In this lab we have learned
1. How to develop the SR Latch with control input using NAND Gates?
2. How to verify the behavior of SR Latch with control input using NAND Gates?
Digital Logic Design 150
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff
Questions
1. Draw the graphic symbol of SR latch with control input using NAND gates.
Mention all inputs and output clearly.
2. Draw the logic diagram of SR latch with control input using NAND gates. Mention
all inputs and output clearly.
3. Write the behavior of SR latch with control input using NAND gates in your words.
10. State the condition when next state will be equal to present state.
Digital Logic Design 152
Equipment
Theory
Figure 12-3-1: (a) Logic Diagram of D Latch with control input using NAND gates.
(b) Function table (c) Graphic symbols
Digital Logic Design 153
Procedure
C D Q+ Q+’
Learning outcomes:
In this lab we have learned
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff
Questions
1. Draw the graphic symbol of D latch with control input using NAND gates. Mention
all inputs and output clearly.
Digital Logic Design 154
2. Draw the logic diagram of D latch with control input using NAND gates. Mention
all inputs and output clearly.
3. Write the behavior of D latch with control input using NAND gates in your words.
5. Is there any case when the circuit will not behave normally?
8. State the condition when next state will be equal to present state.
9. In case of D Latch the next state follow the input D. justify it.
Digital Logic Design 156
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 13
Flip- Flops
Digital Logic Design 158
Equipment
Theory
Diagram
Figure 13-1-1: (a) Logic diagram of JK flip flop. (b) Characteristics table. (c) Graphic symbol
Procedure
Inputs Outputs
C J K Q+ Q+’
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Learning outcomes:
In this lab we have learned
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff
Questions
1. Draw the graphic symbol of JK flip flop. Mention all inputs and output clearly.
2. Draw the logic diagram of JK flip flop. Mention all inputs and output clearly.
.
8. What will be output if all the inputs are at logic-0?
10. State the condition when next state will be equal to present state.
11. What will be the values of C, J and K if we want to reset the circuit?
12. What will be the values of C, J and K if we want to set the circuit?
13. To keep the current state as next state the value of C = , J = and K =
Equipment
Theory
With a slight modification of a J-K flip-flop, we can construct a new flip-flop called a T
(toggle) flip-flop. If the two inputs J and K of a J-K flip-flop are tied together it is referred to
as a T flip-flop. Hence, a T flip-flop has only one input T and two outputs Q and Q'. The name
T flip-flop actually indicates the fact that the flip-flop has the ability to toggle. It has actually
only two states—toggle state and memory state (i.e. can only maintain or complement its
current state).
Diagram
Figure 13-2-1: (a) Logic Diagram of T flip flop. (b) Characteristics table. (c) Graphic symbol
Digital Logic Design 163
Procedure
Inputs Outputs
C T Q+ Q+’
Learning outcomes:
In this lab we have learned
Questions
1. Draw the graphic symbol of T flip flop. Mention all inputs and output clearly.
2. Draw the logic diagram of T flip flop. Mention all inputs and output clearly.
Inputs Outputs
Q C T Q+ Q+’
Digital Logic Design 165
7. State the condition when next state will be equal to present state.
8. What will be the values of C and T if we want to reset the circuit? Assuming previous
state is set.
9. What will be the values of C and T if we want to set the circuit? Assume any suitable
previous state.
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 14
Counter
Digital Logic Design 168
Equipment Required
Theory
Flip flops can be used to form the basis for counters and registers. The counters are of two
main types. Synchronous and asynchronous. Here in this lab we will see how these flip flop
and logic gates can be combined to produce different types of asynchronous counters.
Consider the figure1 having three JK flip flops. A flip flop is the left most flip flop, B flip flop is
the middle one and C is the right most flip flop. All the inputs JK of all flip flops are
connected to logic-1 level. Assuming flip flops are negatively edge triggered
The clock pulse is applied only to CLK input of A flip flop. Thus flip flop A will toggle each time
the clock pulse makes a negative transition. The normal output of flip flop A acts as a CLK
input for the flip flop B.
So B flip flop will toggle each time the A output goes from 1 to 0. Similarly, the flip flop C will
toggle when B goes from 1 to 0. Flip flops outputs Q0, Q1 and Q2 represents the three-bit
binary number with Q0 as least significant bit and Q2 as most significant bit.
If All flip flops are reset (Q0 = 0, Q1 = 0 and Q2 = 0) then CLK is applied to the A flip flop A.
then after seven clock pulses the outputs will be Q0 = 1, Q1 = 1 and Q2 = 1. It means the
counter has gone through one complete cycle and has recycled back to the initial state.
Table 14-1-1: Function table for IC 74LS76 Dual JK master slave flip flop
Q2 Q1 Q0
Learning outcomes:
In this lab we have learned
Questions
3. Draw the block diagram of a three-bit asynchronous counter using JK flip flop.
Mention all input lines and output lines clearly. The figure must show asynchronous
set or reset inputs.
4. Develop the function table for the IC here. Use data sheet for this.
Inputs Outputs
Preset Clear Clock J K Q Q’
Digital Logic Design 172
Equipment Required
Theory
Flip flops can be used to form the basis for counters and registers. The counters are of two
main types. Synchronous and asynchronous. Here in this lab we will see how these flip flop
and logic gates can be combined to produce different types of asynchronous counters.
Information about the IC 7493 found in the data book is shown in the figure 14-2-1.
Figure 14-2-1. (a) Shows a diagram of the internal logic circuit and its connections to its
external pins. All inputs and outputs are given symbolic letters and assigned to pin numbers.
Figure 14-2-1. (b) Shows the physical layout the IC.
Figure 14-2-1. (c) Shows the schematic of the IC.
The 7493 IC can operate as a three-bit counter using input B and flip flops QB, QC, AND QD.
It can operate as 4-bit counter using input A if output QA is connected to the input B.
therefore to operate the counter as a four bit counter it is therefore required to have a
external connection between pin 12 and pin 1. The reset inputs, R1, and R2, at pin 2 and 3
respectively must be grounded.
Digital Logic Design 174
Figure 14-2-1: (a) internal circuit diagram. (b) Physical layout. (c) Schematic diagram
QD QC QB QA
Learning outcomes:
In this lab we have learned
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff
Questions
1. How many flip flops are required?
2. Draw the block diagram of a four-bit asynchronous counter using JK flip flop.
Mention all input lines and output lines clearly. The figure must show asynchronous
set or reset inputs.
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 15
Registers
Digital Logic Design 180
Equipment Required
Theory
A flip flop is the basic memory unit. It is a 1-bit memory element. A register is a set of flip
flops to store a binary word. To store n-bit binary word a set of n flip flops is used. For
instance, a register used to store an 8-bit binary number must have eight flip flops. Naturally
the flip flop must be connected such that the binary number can be entered (shifted) into
the register and possibly shifted out. A group of flip flops connected to provide either or
both of these functions is called shift registers.
The bits in the binary number can be moved from one place to another in either of two
ways. The first method involves shifting the data 1 bit at a time in a serial fashion, beginning
with either the MSB or with LSB. This technique is referred to as serial shifting. The second
method involves shifting all the data bits simultaneously and is referred to as parallel
shifting. There are two ways to shift data into a register (serial or parallel) and similarly there
are two ways to shift the data out of the register. This leads to the construction of four basic
types of registers.
Serial – in - serial-out register
Serial – in-parallel-out register
Parallel-in-serial-out register
Parallel-in-parallel-out register
In this lab we will develop a 4-bit serial-in-serial-out registers using D flip flops (using the IC
7474). There will be four flip flops used. The output of first flip flop will be fed into the input
of the next coming flip flop.
Digital Logic Design 181
Fill up the table as the pulses arrives and the data moves out of the register. Then 0 is
applied to serial input
Q0 Q1 Q2 Q3
1 1 1 1
Fill up the table as the pulses arrives and the data moves out of the register. Then 1 is
applied to serial input
Q0 Q1 Q2 Q3
1 0 0 1
Fill up the table as the pulses arrives and the data moves out of the register. Then 0011 is
applied to serial input
Q0 Q1 Q2 Q3
0 1 0 1
Digital Logic Design 183
Learning outcomes:
In this lab we have learned
NOTE
Obtain data sheet of all the IC’s required in the Lab from Lab Staff
Questions
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)
Laboratory No: 16
Project
Digital Logic Design 186
Objectives
Useful Websites
• http://www.electronicshub.org/electronics-mini-projects-ideas/
• http://www.myclassbook.org/electronics-mini-project-ideas/
• https://www.elprocus.com/project-ideas-for-final-year-ece-students/
• http://www.realworldengineering.org/library_search.html
Digital Logic Design 187
Each student is required to perform the lab and submit the following Performa along with the
lab report.
1 = Unsatisfactory 2 = Fair 3= Satisfactory 4 = Very good 5= Excellent
Rating
Questions Remarks
(1 to 5)