3EC4-22 - Digital System Design Lab
3EC4-22 - Digital System Design Lab
3EC4-22 - Digital System Design Lab
ECL – 07
LABORATORY MANUAL
Table of Content
Page
S.NO. CONTENTS
No.
1 Vision Mission and Quality Policy of Institute 4
7 RTU Syllabus 8
8 List of Experiments 10
Beyond Syllabus Experiments and their mapping with POs and
9 12
PSOs
10 Instructions for the Lab 13
Quality Policy:
All its endeavor’s like admissions, teaching- learning processes, examinations, extra
and co-curricular activities, industry institution interaction, research & development,
continuing education, and consultancy.
Functional areas like teaching departments, Training & Placement Cell, library,
administrative office, accounts office, hostels, canteen, security services, transport,
maintenance section and all other services.”
1) The graduates will be able to pursue their career successfully in the field of
Electronics & Communication Engineering and advance in their profession.
2) The graduates will be able to excel in pursuing higher education and life-long
learning.
3) The graduates will be able to hold high ethical standards and work effectively in
multidisciplinary teams with strong management and team work skills
After the completion of the program, engineering graduates will be able to:
1) Engineering Knowledge: Apply the knowledge of mathematics, science,
engineering fundamentals, and an engineering specialization to the solution of
complex engineering problems.
2) Problem Analysis: Identify, formulate, review research literature, and analyze
complex engineering problems reaching substantiated conclusions using first
principles of mathematics, natural sciences, and engineering sciences.
3) Design/development of solutions: Design solutions for complex engineering
problems and design system components or processes that meet the specified
needs with appropriate consideration for the public health and safety, and the
cultural, societal, and environmental considerations.
4) Conduct investigations of complex problems: Use research-based knowledge and
research methods including design of experiments, analysis and interpretation of
data, and synthesis of the information to provide valid conclusions.
5) Modern tool usage: Create, select, and apply appropriate techniques, resources,
and modern engineering and IT tools including prediction and modeling to
complex engineering activities with an understanding of the limitations.
6) The engineer and society: Apply reasoning informed by the contextual
knowledge to assess societal, health, safety, legal and cultural issues and the
consequent responsibilities relevant to the professional engineering practice.
7) Environment and sustainability: Understand the impact of the professional
engineering solutions in societal and environmental contexts, and demonstrate
the knowledge of, and need for sustainable development.
8) Ethics: Apply ethical principles and commit to professional ethics and
responsibilities and norms of the engineering practice.
9) Individual and team work: Function effectively as an individual, and as a
member or leader in diverse teams, and in multidisciplinary settings.
10) Communication: Communicate effectively on complex engineering activities
with the engineering community and with society at large, such as, being able to
comprehend and write effective reports and design documentation, make
effective presentations, and give and receive clear instructions.
11) Project management and finance: Demonstrate knowledge and understanding of
the engineering and management principles and apply these to one’s own work,
as a member and leader in a team, to manage projects and in multidisciplinary
environments.
12) Life-long learning: Recognize the need for, and have the preparation and ability
to engage in independent and life-long learning in the broadest context of
technological change.
C3EC4-22.4 Apply concept of universal logic gates for digital circuit designing
PO PO PO PS PS
CO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9
10 11 12 O1 O2
C3EC4-22.1 2 2 - 2 - 2 - 1 3 3 1 3 1 1
C3EC4-22.2 2 2 2 2 - 2 - 1 3 3 1 3 3 1
C3EC4-22.3 2 2 2 2 - 2 - 1 3 3 1 3 3 1
C3EC4-22.4 2 2 2 2 - 2 - 1 3 3 1 3 3 1
C3EC4-22.5 2 2 2 2 - 2 - 1 3 3 1 3 3 1
RTU SYLLABUS
S.NO. CONTENTS
Part A: Combinational Circuits
To verify the truth tables of logic gates: AND, OR, NOT, NAND,
Exp:01 NOR, Ex-OR and Ex-NOR.
To verify the truth table of OR, AND, NOR, NAND, NOT, Ex-OR,
Exp:02 and Ex-NOR logic gates realized using NAND & NOR gates.
To design 4-to-1 multiplexer using basic gates and verify the truth
Exp:06 table. Also verify the truth table of 8-to-1 multiplexer using IC
To design 1-to-4 demultiplexer using basic gates and verify the truth
Exp:07 table. Also, to construct 1-to-8 demultiplexer using blocks of 1-to-4
demultiplexer
To design 2x4 decoder using basic gates and verify the truth table. Also
Exp:08 verify the truth table of 3x8 decoder using IC
Design & Realize a combinational circuit that will accept a 2421 BCD
Exp:09 code and drive a TIL -312 seven-segment
Exp:12 Design and construct unidirectional shift register and verify the
function.
Exp:13 Design and construct BCD ripple counter and verify the function.
Exp:14 Design and construct a 4 Bit Ring counter and verify the function
List of Experiments
S.NO. CONTENTS
To verify the truth tables of logic gates: AND, OR, NOT, NAND, NOR,
Exp:01 Ex-OR and Ex-NOR.
To verify the truth table of OR, AND, NOR, NAND, NOT, Ex-OR, and Ex-
Exp:02 NOR logic gates realized using NAND & NOR gates.
To design 4-to-1 multiplexer using basic gates and verify the truth table.
Exp:05 Also verify the truth table of 8-to-1 multiplexer using IC
Design & Realize a combinational circuit that will accept a 2421 BCD code
Exp:06 and drive a TIL -312 seven-segment
Using basic logic gates, realize the R-S, J-K and D-flip flops with and
Exp:07 without clock signal and verify their truth table.
Design and construct unidirectional shift register and verify the function.
Exp:09
Design and construct BCD ripple counter and verify the function.
Exp:10
To realize a 4-bit ripple adder/ Subtractor using basic Half adder/ Subtractor
B1
& basic Full Adder/ Subtractor.
To design 1-to-4 demultiplexer using basic gates and verify the truth table.
B2 Also to construct 1-to-8 demultiplexer using blocks of 1-to-4 demultiplexer
To design 2x4 decoder using basic gates and verify the truth table. Also
B3 verify the truth table of 3x8 decoder using IC
Design and construct a 4 Bit Ring counter and verify the function
B4
Perform input/output operations on parallel in/Parallel out and Serial
B5
in/Serial out registers using clock. Also exercise loading only one of
1) To realize a 4-bit ripple adder/ Subtractor using basic half adder/ Subtractor &
basic Full Adder/ Subtractor.
2) Design a circuit that will do the assigned work as mentioned below:
A lawn-sprinkling system is controlled automatically by certain combinations of
the following variables.
Season (S=1, if summer; 0, otherwise)
Moisture content of soil (M=1, if high; 0, if low)
Outside temperature (T=1, if high; 0, if low)
Outside humidity (H=1, if high; 0, if low)
The sprinkler is turned on under any of the following circumstances.
1. The moisture content is low in winter.
2. The temperature is high and the moisture content is low in summer.
3. The temperature is high and the humidity is high in summer.
4. The temperature is low and the moisture content is low in summer.
5. The temperature is high and the humidity is low.
PO PO PO PO PO PO PO PO PO PO PO PO
Exp. PSO1 PSO2
1 2 3 4 5 6 7 8 9 10 11 12
1 2 2 2 2 - 2 - 1 3 3 1 3 3 1
2 2 2 3 2 - 2 - 1 3 3 1 3 3 1
DO’S
1. Student should get the record of previous experiment checked before starting the
new experiment.
2. Read the manual carefully before starting the experiment.
3. Before starting the experiment, get circuit diagram checked by the teacher.
4. Before switching on the power supply, get the circuit connections checked.
5. Get your readings checked by the teacher.
6. Apparatus must be handled carefully.
7. Maintain strict discipline.
8. Keep your mobile phone switched off or in vibration mode.
9. Students should get the experiment allotted for next turn, before leaving the
lab.
DON’TS
1. Do not touch or attempt to touch the mains power supply wire with bare hands.
Digital System Design is the Lab of electronics and computer science that deals with the
digital inputs and outputs to perform various tasks. It is based upon the digital design
methodologies and consists of digital circuits, IC’s and logic gates. It uses only binary digits,
i. e. either ‘0’ or ‘1’.
We know there are two types of signals, one is analog or continuous signal and the second
one is Digital or discrete signal. Now coming to the area of Digital system design, it is
essential to understand wide range of applications from industrial electronics to the fields of
communication, from micro embedded systems to military equipment. The main and perhaps
the most revolutionary advantage of digital system design is the decrease in size and the
improvement in technology.
The world of electronics was initially dominated by analogue signals—that is, signals
representing a continuous range of values. In digital circuitry, however, there are only two
states: on and off, also referred to as 1 and 0, respectively. Digital information has its roots
back in the Victorian era thanks to George Boole, who developed the idea of Boolean
algebra. Every aspect of our lives is increasingly becoming integrated and connected by the
Internet of Things (IoT), which consists of computers and embedded systems. These devices
are controlled by software which at its core is Boolean logic in conjunction with digital
information. The world around us is analogue, but with every passing day our interaction
with the world is becoming more digital and more integrated.
Some general things to know in this lab are:
• Bread Board/ Proto Board
Your kit includes a plastic board used to wire together electric circuits. This is called a
breadboard or a proto board, since it is used to prototype circuits. Figure 1 above shows how
the terminals are connected internally inside the board. The horizontal connections X and Y
are called buses and are usually for power and ground.
Usually, the top row is connected to the +5V power supply and is called the power bus. The
bottom row is connected to an external ground and is called the ground bus.
Figure 2 shows how the power and ground pins of IC1 and IC2 can be connected together by
the red wires and black wires. It also shows how the output of pin 3 on IC1 can be connected
to the input pin 1 of IC2 with a green wire.
Special care is needed when using the protoboard. If a wire which is too large is forced into
one of the holes, that particular contact point most probably will be damaged. As a result, the
next time the protoboard is used and a wire is inserted into that hole, the wire may not make
contact with the internal connection strip and the circuit will not operate properly.
An even more aggravating situation is when the wire makes contact only part of the time.
This is called an “intermittent fault.” Since the circuit will operate correctly part of the time,
and then mysteriously fail, this type of fault is very hard to find. A good rule to follow is: if
the wire doesn't go in easily, find another wire. Pay particular attention to components such
as resistors, capacitors - etc., since many have lead with diameters which allow insertion into
the protoboard, but still cause damage to the contacts.
You will have to strip the wire leads before using them to interconnect circuits on your
protoboards. The proper way to do this is to use a pair of wire cutters to carefully strip ¼ inch
of insulation off of each end of the wire, taking care not to nick the copper wire. If you take
more than a quarter inch off, you risk having wire exposed above the protoboard, which will
cause a short if it touches another lead or IC pin. If you cut less that a quarter off, the wire
may not make a good connection within the protoboard hole. It also helps to cut the ends of
the wire at an angle, which produces a point on the end of the wire. The wire will then slide
into the protoboard easier.
The IC's are main components for DSD lab. Each looks similar to the one shown below:
Note the numbering system, which progresses counter-clockwise from pin 1. Pin 1 is
designated by a dot or a notch Usually on TTL logic, the last pin is to be connected to the +5
V supply, and the pin diagonally opposite is connected to ground. These are pins 14 and 7,
respectively, for 14-pin IC’s and 16 and 8 for 16-pin IC’s.
Special caution should be taken when inserting and removing IC's from the protoboard.
When shipped from the factory, the leads (legs) of the IC's are slightly bent apart to aid in
machine insertion. It is necessary to straighten the legs prior to insertion into the
protoboards.
When you remove a chip (IC) from the protoboard, it is very easy to bend the legs by not
exercising caution. You should not simply pull on the chip with two fingers to remove it. One
end will invariably rise before the other causing the legs on the other end to bend. It may
even result in a puncture wound to one of your fingers because the legs of the IC’s are very
sharp. Be careful! If an IC extractor is not available, you should use the tip of a pen or pencil
to gently pry up the legs on one end of the chip, and then the other, as shown below.
Usually, if a leg is bent twice, it will break off easily and the IC is virtually useless so.
• Before wiring a circuit, a circuit diagram should be drawn and simulated. This diagram
should include pin numbers as shown below.
You can then check off each connection as it is wired. For example, after the top AND gate is
connected to the OR gate on the right, the line connecting them in the diagram should be
checked off as having been wired. Without some system like this, it is very easy to forget
which gate is which within a system.
• While wiring, rewiring, etc. turn off the power. This prevents the application of power to the
circuit in unwanted places.
• Try to avoid messy "rat's nest" wiring. It is almost impossible to trouble-shoot a messy
wiring job. It is also hard to make changes to a disorganized board. Keep lead wires as short
as possible, and make neat, flat bends. It is also smart not to wire across the top of the IC's.
Wire the power leads of chips first, using a color scheme if possible.
Traditionally, RED = +5 Volts and BLACK = Ground
Experiment No. – 1
Aim: To verify the truth tables of logic gates: AND, OR, NOT, NAND, NOR, Ex-OR and
Ex-NOR
Apparatus / Component Required: IC tester, Digital trainer kit and Digital ICs
Theory:
BASIC GATES:
A Logic OR Gate or Inclusive-OR gate is a type of digital logic gate that has an output which
is normally at logic level "0" and only goes "HIGH" to a logic level "1" when ANY of its
inputs are at logic level "1". The output of a Logic OR Gate only returns "LOW" again when
ALL of its inputs are at a logic level "0". The logic or Boolean expression given for a logic
OR gate is that for Logical Addition which is denoted by a plus sign, (+) giving us the
Boolean expression of: A+B = Q.
2-input OR Gate
2-input OR Gate 1 0 1
1 1 1
Boolean Expression Q = A+B Read as A OR B gives Q
The digital Logic NOT Gate is the most basic of all the logical gates and is sometimes
referred to as an Inverting Buffer or simply a Digital Inverter. It is a single input device
which has an output level that is normally at logic level "1" and goes "LOW" to a logic level
"0" when its single input is at logic level "1", in other words it "inverts" (complements) its
input signal. The output from a NOT gate only returns "HIGH" again when its input is at
logic level "0" giving us the Boolean expression of: A = Q.
Then we can define the operation of a single input logic NOT gate as being:
"If A is NOT true, then Q is true"
Then, with an input voltage at "A" HIGH, the output at "Q" will be LOW and an input
voltage at "A" LOW the Resulting output voltage at "Q" is HIGH producing the complement
of the input signal. Commonly available logic NOT gate and Inverter IC's include
UNIVERSAL GATES:
The Logic NAND Gate is a combination of the digital logic AND gate with that of an
inverter or NOT gate connected together in series. The NAND (Not - AND) gate has an
output that is normally at logic level "1" and only goes "LOW" to logic level "0" when ALL
of its inputs are at logic level "1". The Logic NAND Gate is the reverse or "Complementary"
form of the AND gate we have seen previously.
Figure 1.9: Equivalent circuit of NAND gate using AND and NOT gate
The logic or Boolean expression given for a logic NAND gate is that for Logical Addition,
which is the opposite to the AND gate, and which it performs on the complements of the
inputs. The Boolean expression for a logic NAND gate is denoted by a single dot or full stop
symbol, (.) with a line or Overline, ( ‾‾ ) over the expression to signify the NOT or logical
negation of the NAND gate giving us the Boolean expression of: A.B = Q. Then we can
define the operation of a 2-input logic NAND gate as being:
"If either A or B are NOT true, then Q is true"
The Logic NOR Gate or Inclusive-NOR gate is a combination of the digital logic OR gate
with that of an inverter or NOT gate connected together in series. The NOR (Not - OR) gate
has an output that is normally at logic level "1" and only goes "LOW" to logic level "0" when
ANY of its inputs are at logic level "1". The Logic NOR Gate is the reverse or
"Complementary" form of the OR gate we have seen previously.
Figure 1.14: Equivalent circuit of NOR gate using OR and NOT gate
The logic or Boolean expression given for a logic NOR gate is that for Logical Multiplication
which it performs on the complements of the inputs. The Boolean expression for a logic NOR
gate is denoted by a plus sign, (+) with a line or Over line, ( ‾‾ ) over the expression to signify
the NOT or logical negation of the NOR gate giving us the Boolean expression of: A+B = Q.
Then we can define the operation of a 2-input logic NOR gate as being:
"If both A and B are NOT true, then Q is true"
Figure 1.21: Equivalent circuit of XNOR gate using XOR – NOT gate
In general, an Exclusive-NOR gate will give an output value of logic "1" ONLY when there
are an EVEN number of 1's on the inputs to the gate (the inverse of the Ex-OR gate) except
when all its inputs are "LOW". Commonly available Exclusive-NOR gate IC's include:
TTL Logic Types CMOS
74LS266 Quad 2-input Logic Types
CD4077 Quad
2-input
Quad 2-Input Ex-NOR Gate IC 74267
Procedure:
Output: The truth tables of logic gates: AND, OR, NOT, NAND, NOR Ex-OR and Ex-NOR
are verified using their ICs.
Result: In conclusion, each basic gate works in unique way, which is proved during this
experiment. We used the truth table to examine the operation of the basic logic gate. It is
proved from experiment that logic gates work in basis of Boolean Algebra. AND Gate, OR
Gate and NOT Gate are the basic gates. All the combinational logic gates are made of these
three basic gates. Output from one logic gate can be used as input for another logic gate to
form combinational logic gate. So, we have studied how logic gates work on the basis of
Boolean algebra.
Discussions:
Q5. How many no. of input variables can a NOT Gate have?
Experiment No – 2
Aim: To verify the truth table of OR, AND, NOR, NAND, NOT, Ex-OR and Ex-NOR logic
gates realized using NAND & NOR gates.
Apparatus / Component Required: IC tester, Digital trainer kit, Digital ICs (7400, 7402)
Theory:
To prove that any Boolean function can be implemented using only NAND gates, we will
show that the AND, OR, and NOT operations can be performed using only these gates.
Figure 2.1
2. One NAND input pin is connected to the input signal A while all other input pins are
connected to logic 1. The output will be A’.
Figure 2.2
Figure 2.3
4. An OR gate can be replaced by NAND gates as shown in the figure (The OR gate is
replaced by a NAND gate with all its inputs complemented by NAND gate inverters).
Figure 2.4
Thus, the NAND gate is a universal gate since it can implement the AND, OR and NOT
functions.
Figure 2.5
Figure 2.6
Figure 2.7
To prove that any Boolean function can be implemented using only NOR gates, we will
show that the AND, OR, and NOT operations can be performed using only these gates.
The figure shows two ways in which a NOR gate can be used as an inverter (NOT gate).
1. All NOR input pins connect to the input signal A gives an output A’.
Figure 2.8
2. One NOR input pin is connected to the input signal A while all other input pins are
connected to logic 0. The output will be A’.
Figure 2.9
Figure 2.10
An AND gate can be replaced by NOR gates as shown in the figure (The AND gate is
replaced by a NOR gate with all its inputs complemented by NOR gate inverters)
Figure 2.11
Thus, the NOR gate is a universal gate since it can implement the AND, OR and NOT
functions.
Figure 2.12
Figure 2.14
Procedure:
Test the digital ICs (7400, 7402) with the help of IC tester.
Make the connections on breadboard as per the pin diagram. Connect the inputs of the
logic gate to the logic sources and its output to the logic indicator.
Apply various input combinations and observe output for each one.
Verify the truth table for each input/ output combination.
Output: The truth tables of logic gates: AND, OR, NOT, NAND, NOR Ex-OR and Ex-NOR
are verified using the universal gate ICs 7400 and IC 7402.
Result: The universal gates are the gates which can implement any Boolean function without
need to use any other gate type. Hence all the gates are realized using Universal gates. In
practice, this is advantageous since NAND and NOR gates are economical and easier to
fabricate and are the mostly used gates in digital logic families.
Discussion:
Q1. Why NAND & NOR gates are called universal gates?
Q2. Which gate is equal to AND-inverter Gate?
Q3. Which gate is equal to OR-inverter Gate?
Q4. Draw X= ab + b’a’ by NAND gate?
Q5. What is Demorgan’s theorem?
Q6. Solve following example by Demorgan’s theorem
Experiment No. – 3
Apparatus / Component Required: IC tester, Digital trainer kit, Digital ICs (7400, 7402,
7408, 7432).
Theory:
Introducing two successive inverters at the inputs of the AND gate Results in the shown
equivalent implementation. Since two successive inverters on the same line will not have
an overall effect on the logic as it is shown before.
Procedure:
Output: We have implemented the given Boolean function using logic gates in both SOP
and POS forms.
Result: In the experiment, De-Morgan’s theorem and postulate of Boolean algebra are
verified. Also the Sum of products and product of sum expressions are realized using the
basic gates and the universal gates.
Discussion:
Q1. Express the function f(x, y, z) = 1 in the form of sum of minterms and a product of
maxterms.
Q2. What is D’morgans theorem?
Q3. Solve following example by using D’morgans theorem.
(ABC)’ (AB)’
Q4. Examine this truth table and then write both SOP and POS Boolean expressions
describing the Output:
A B C output
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
Q6. Express the function f(x, y, z) = 1 in the sum of minterms and a product of maxterms?
Minterms =(0,1,2,3,4,5,6,7), Maxterms = No maxterms.
Experiment No: 4
Aim: To realize half adder/ Subtractor & Full Adder/ Subtractor using NAND & NOR gates
and to verify their truth table.
Apparatus/ Component Required: IC tester, Digital trainer kit, Digital ICs (7400, 7402)
Theory: A very useful combinational logic circuit which can be constructed using just a few
basic logic gates and adds together binary numbers is the Binary Adder circuit. The Binary
Adder is made up from standard AND and Ex-OR gates and allow us to "add" together single
bit binary numbers, a and b to produce two outputs, the SUM of the addition and a CARRY
called the Carry-out, ( Cout ) bit. One of the main uses for the Binary Adder is in arithmetic
and counting circuits.
From the truth table we can see that the SUM (S) output is the Result of the Ex-OR gate and
the Carry-out (Cout) is the Result of the AND gate. One major disadvantage of the Half
Adder circuit when used as a binary adder, is that there is no provision for a "Carry-in" from
the previous circuit when adding together multiple data bits. For example, suppose we want
to add together two 8-bit bytes of data, any Resulting carry bit would need to be able to
"ripple" or move across the bit patterns starting from the least significant bit (LSB).
The Full Adder Circuit: The main difference between the Full Adder and the previous seen
Half Adder is that a full adder has three inputs, the same two single bit binary inputs A and
B as before plus an additional Carry-In (C-in) input as shown below. The 1-bit Full Adder
circuit above is basically two half adders connected together and consists of three Ex-OR
gates, two AND gates and an OR gate, six logic gates in total.
A half-subtractor has two inputs and two outputs. Let the input variables minuend and
subtrahend be designated as A and B respectively, and output functions be designated as
DIFF for difference and BORROW for borrow. The truth table of the functions is as follows.
Truth Table
Half Subtractor
A B DIFF BORROW
0 0 0 0
0 1 1 1
1 0 0 1
1 1 0 0
Boolean Expression: DIFF = A ⊕ B BORROW = A’. B
Figure 4.7: Circuit diagram & truth table of half subtractor
Procedure:
1. Insert the IC chips into the breadboard. Point all the chips in the same direction with pin 1
at the upper-left corner. (Pin 1 is often identified by a dot or a notch next to it on the chip
package).
2. Connect +5V and GND pins of each IC chips to the power and ground bus strips on the
breadboard.
3. Make the connections as per the circuit diagram.
4. Switch on VCC and apply various combinations of input according to truth table.
5. Note down the output readings for half/full adder and sum and the carry bit for different
combinations of inputs. Where 5V indicating logic 1 and 0V indicating logic 0.
Output: The truth table for Half adder/Subtractor and Full Adder/Subtractor has been
verified.
Result: By using various logic gate ICs we can design full or half adder and subtractor. Half
adders/subtractors perform their operation on two bits and gives a two bit output. Full
adder/subtractor perform their operation on three bit inputs and gives a two bit output.
Discussion:
Experiment No: 5
Aim: To design 4-to-1 multiplexer using basic gates and verify the truth table. Also verify
the truth table of 8-to-1 multiplexer using IC.
Apparatus / Component Required: IC tester, Digital trainer kit, Digital ICs (74153, 74151,
7408, 7432, 7404, 7411)
Theory:
MULTIPLEXER:
Combinational logic switching devices that operate like a very fast acting multiple position
rotary A data selector, more commonly called a Multiplexer, shortened to "Mux" or "MPX",
are switch. They connect or control, multiple input lines called "channels" consisting of 2, 4,
8 or 16 individual inputs, one at a time to an output. Then the job of a multiplexer is to allow
multiple signals to share a single common output.
Multiplexer means transmitting a large number of information units over a smaller number of
channels or lines. A digital multiplexer is a combinational circuit that selects binary
information from one of many input lines and directs it to a single output line. The selection
of a particular input line is controlled by a set of selection lines. Normally there are 2n input
line and n selection lines whose bit combination determine which input is selected.
Figure 5.1
TRUTH TABLE:
S1 S0 Y = OUTPUT
0 0 D0
0 1 D1
1 0 D2
1 1 D3
Figure 5.2
FUNCTION TABLE:
S1 S0 INPUT
0 0 X → D0 = X S1’ S0’
0 1 X → D1 = X S1’ S0
1 0 X → D2 = X S1 S0’
1 1 X → D3 = X S1 S0
Figure 5.3
Figure 5.4
Figure 5.5
Figure 5.6
Procedure:
Output: Hence the 4:1mux is designed with basic gate as given in the figure and verified
with the truth table. 8:1 mux are designed with 4:1mux as given in circuit.
Result: 4:1 multiplexer and 8:1 multiplexer can be realized using basic logic gates, they can
also be designed by using IC 74153 (multiplexer) and IC 74151 (multiplexer).
Discussion:
Experiment No: 6
Aim: Design and realize a combinational circuit that will accept the 2421 BCD code and
drive a TIL-312 to 7-Segment Display
Apparatus / Component Required: IC tester, Digital trainer kit, Digital ICs (7447), register
(200 Ω / 330 Ω), seven segment display
Theory:
The Binary Coded Decimal (BCD) to 7-Segment Display Decoder. 7-segment LED (Light
Emitting Diode) or LCD (Liquid Crystal) displays, provide a very convenient way of
displaying information or digital data in the form of numbers, letters or even alpha-numerical
characters and they consist of 7 individual LED's (the segments), within from 0 to 9 and A to
F respectively, on the display the correct combination of LED segments need to be
illuminated and BCD to 7-segment Display Decoders such as the 74LS47 do just that. A
standard 7-segment LED display generally has 8 input connections, one for each LED
segment and one that acts as a common terminal or connection for all the internal segments.
There are two important types of 7-segment LED digital display.
The Common Cathode Display (CCD) - In the common cathode display, all the
cathode connections of the LED's are joined together to logic "0" and the individual
segments are illuminated by application of a "HIGH", logic "1" signal to the individual
Anode terminals.
The Common Anode Display (CAD) - In the common anode display, all the anode
connections of the LED's are joined together to logic "1" and the individual segments are
illuminated by connecting the individual Cathode terminals to a "LOW", logic "0" signal.
Figure: 6.1
Combinational circuit for converting 2421 BCD code to seven segment number
Both the 2421 code and BCD code are 4-bit codes and represent the decimal equivalents 0 to
9. To design the converter circuit for the above, first the truth table is prepared with the input
variables W, X, Y, and Z of 2421 code, and the output variables A, B, C, and D. Karnaugh
maps to obtain the simplified expressions of the output functions are shown in Figure.
Unused combinations are considered as don’t-care condition.
Decoder
The output expressions are:
a = F1 (A, B, C, D) = ∑m (0, 2, 3, 5, 7, 8, 9)
b = F2 (A, B, C, D) = ∑m (0, 1, 2, 3, 4, 7, 8, 9)
c = F3 (A, B, C, D) = ∑m (0, 1, 3, 4, 5, 6, 7, 8, 9)
d = F4 (A, B, C, D) = ∑m (0, 2, 3, 5, 6, 8)
e = F5 (A, B, C, D) = ∑m (0, 2, 6, 8)
f = F6 (A, B, C, D) = ∑m (0, 4, 5, 6, 8, 9)
g = F7 (A, B, C, D) = ∑m (2, 3, 4, 5, 6, 8, 9)
Figure: 6.3
Figure: 6.4
Procedure:
1. Test the digital ICs with the help of IC tester.
2. Make the connections as per the circuit diagram on the digital trainer kit.
3. Connect the output pins to the seven segment pins.
4. Switch on VCC and apply various combinations of input according to the truth table.
5. Observe the logical output and verify with the truth tables.
A binary coded decimal (BCD) to 7-segment display decoder such as the TTL 74LS47 or
74LS48, have 4 BCD inputs and 7 output lines, one for each LED segment. This allows a
smaller 4-bit binary number (half a byte) to be used to display all the denary numbers from 0
to 9 and by adding two displays together, a full range of numbers from 00 to 99 can be
displayed with just a single byte of 8 data bits.
The use of packed BCD allows two BCD digits to be stored within a single byte (8-bits) of
data, allowing a single data byte to hold a BCD number in the range of 00 to 99.
Output: Hence the BCD to seven segment display is designed using basic gates and with a
BCD to seven segment display IC as given in the figure and verified with the truth table.
Result: It is possible to display any single digit number on a 7-segment display by sending a
high digital signal to the specific segments that make up the number. It is possible to display
the decimal value of a binary number on a 7-segment display using a BCD decoder.However,
this method will allow displaying only digits from 0 to 9. In the case of the decoder circuit,
any binary number between 1010 through 1111 (A to F) is an invalid input and would
provide distorted shapes on the LCD display.The usage of a 7-segment display paired with a
BCD decoder is opening the door for an application using digital computation requiring a
human-readable That application can be for instance: “a clock, a timer, a calculator,
counter…” Thus we had concluded that 7 segment display can be implemented using IC,s
and we had seen different numbers 0-9.
Discussion:
Q1. What is code conversion?
Q2. Can a decoder function as a Demultiplexer?
Q3. Give the applications of seven segment display?
Q4. What are happened if the input given in between A to F.
Experiment No: 7
Aim: Using basic logic gates realize the R-S, J-K and D flip flops with and without clock
pulse and verify truth table.
Apparatus / Component Required: IC tester, Digital trainer kit, connecting wires, Digital
ICs (7400, 7402, 7404, 7408, 7432)
Theory:
Sequential Logic circuits have some form of inherent "Memory" built in to them as they are
able to take into account their previous input state as well as those actually present, a sort
of "before" and "after" is involved with sequential circuits.
In other words, the output state of a sequential logic circuit is a function of the following
three states, the "present input", the "past input" and/or the "past output". Sequential Logic
circuits remember these conditions and stay fixed in their current state until the next clock
signal changes one of the states, giving sequential logic circuits "Memory".
Sequential logic circuits are generally termed as two state or Bistable devices which can have
their output or outputs set in one of two basic states, a logic level "1" or a logic level "0" and
will remain "latched" (hence the name latch) indefinitely in this current state or condition
until some other input trigger pulse or signal is applied which will cause the bistable to
change its state once again.
Simple sequential logic circuits can be constructed from standard Bistable circuits such as
Flip-flops, Latches and Counters and which themselves can be made by simply connecting
together universal NAND Gates and/or NOR Gates in a particular combinational way to
produce the required sequential circuit.
FLIP-FLOP:-
"Flip-flop" is the common name given to two-state devices which offer basic memory for
sequential logic operations. Flip-flops are heavily used for digital data storage and transfer
and are commonly used in banks called "register" for the storage of binary numerical data.
S-R Flip Flop
The SR flip-flop can be considered as a 1-bit memory, since it stores the input pulse even
after it has passed. Flip-flops (or bi-stables) of different types can be made from logic gates
and, as with other combinations of logic gates, the NAND and NOR gates are the most
versatile, the NAND being most widely used. This is because, as well as being universal, i.e.
it can be made to mimic any of the other standard logic functions, it is also cheaper to
construct. The SET-RESET flip flop is designed with the help of two NOR gates and also
two NAND gates. These flip flops are also called S-R Latch.
The design of such a flip flop includes two inputs, called the SET [S] and RESET [R]. There
are also two outputs, Q and Q’. The diagram and truth table is shown below.
The circuit of the S-R flip flop using NAND Gate and its truth table is shown below.
Figure 7.4: Logic Diagram of NAND based Clocked S-R Flip flop
D Flip Flop
D flip flop is actually a slight modification of the above explained clocked SR flip-flop. From
the figure you can see that the D input is connected to the S input and the complement of the
D input is connected to the R input.
D Flip Flop without clock
The circuit diagram of D latch with NAND gates:
IC 7474 (D FF)
Figure 7.7
JK flip-flop is basically an SR flip flop with feedback which enables only one of its two input
terminals, either SET or RESET to be active at any one time thereby eliminating the invalid
condition seen previously in the SR flip flop circuit. The only difference is that the
intermediate state is more refined and precise than that of an S-R flip flop.
JK Flip Flop without clock
JK latch is similar to RS latch. This latch consists of 2 inputs J and K as shown in the below
figure 6. The ambiguous state has been eliminated here: when the inputs of J-K latch are
high, then output toggles. The output feedback to inputs is the only difference, which is not
there in the RS latch.
When both the inputs J and K have a HIGH state, the flip-flop switches to the complement
state. So, for a value of Q = 1, it switches to Q=0 and for a value of Q = 0, it switches to Q=1.
When logic 1 inputs are applied to both J and K simultaneously, the flip-flop switches to
its complement state, ie., if Q=1, it switches to Q=0 and vice versa
The circuit diagram and truth-table of a J-K flip flop is shown below.
The output may be repeated in transitions once they have been complimented for J=K=1
because of the feedback connection in the JK flip-flop. This can be avoided by setting a time
duration lesser than the propagation delay through the flip-flop. The restriction on the pulse
width can be eliminated with a master-slave or edge-triggered construction.
IC 7476 (JK FF)
Procedure:
1. Test the digital ICs with the help of IC tester.
2. Make the connections as per the circuit diagram.
3. Connect the output pin of LED on Digital Trainer Kit.
4. Switch on VCC and apply various combinations of input according to the truth table.
5. Observe the logical output and verify with the truth tables.
Observtions:
Output: Hence the S-R, J-K, D flip flops with and without clocks are designed with basic
gates IC and verified with the truth table.
Result:
The function of the S – R flip-flop is to store a bit value of either 0 or 1 for later use
based on the S and R input values. When S is high, the flip-flop stores a logic value of
1 and stores a logic 0 when input R is high.
The D – Flip-flop operates by propagating the logic level placed on the input D to the
OutputQ on the high edge of the clock. When the clock level is low, the state of the
flip-flop latches and output does not change
The J-K flip-flop sequential operation is the same as the S-R flip-flop with set and
reset inputs. But it has no forbidden or invalid input states of the S-R Latch, when
both inputs, S and R, are both equal to logic 1.
Discussion:
Q1. What is sequential circuit?
Q2. What is Synchronous sequential circuit?
Q3. What is an excitation table?
Q4. What do you mean by triggering of flip-flop?
Q5. What is called latch?
Q6. What advantage does a J-K Flip-flop have over an S-R?
Q7. What is meant by Race around condition?
Experiment No: 8
Aim: Construct a divide by 2, 4 & 8 asynchronous counter. Construct a 4-bit binary counter
and ring counter for a particular output pattern using D flip flop.
Theory: A counter is a register capable of counting number of clock pulse arriving at its
clock input. Counter represents the number of clock pulses arrived. An up/down counter is
one that is capable of progressing in increasing order or decreasing order through a certain
sequence. An up/down counter is also called bidirectional counter. Usually up/down
operation of the counter is controlled by up/down signal.
Asynchronous or ripple counters are arranged in such a way that the output of one flip flop
changes the state of the next. In a long chain of ripple counter stages, the last flip flop
changes its state considerably later than the first FF due to propagation delays in each stage.
If the output lines are connected to logic which can respond to these in-between states,
glitches can occur that are so fast the error may be difficult to track down.
The 2-bit ripple counter circuit has four different states, each one corresponding to a count
value. Similarly, a counter with n flip-flops can have 2 to the power n states. The number of
states in a counter is known as its mod (modulo) number. Thus a 2-bit counter is a mod-4
counter.
A mod-n counter may also describe as a divide-by-n counter. This is because the most
significant flip-flop (the furthest flip-flop from the original clock pulse) produces one pulse
for every n pulses at the clock input of the least significant flip-flop (the one triggers by the
clock pulse). Thus, the above counter is an example of a divide-by-4 counter.
Since the Q output of the first flip flop changes every time the clock input goes low, it
effectively divides the input frequency by 2. The other output of the flip flop becomes the
clock input to the next stage, so the output of the second flip flop divides the original input
frequency by 4. Hence the term "divide-by-4" or "modulo-4".
Ring Counter
A ring counter is a Shift Register (a cascade connection of flip-flops) with the output of the
last flip flop connected to the input of the first. It is initialized such that only one of the flip
flop output is 1 while the remainder is 0. The 1 bit is circulated so the state repeats every n
clock cycles if n flip-flops are used. The "MOD" or "MODULUS" of a counter is the number
of unique states. The MOD of the n flip flop ring counter is n.
The following is a 4-bit ring counter constructed from D flip-flops. The output of each stage
is shifted into the next stage on the positive edge of a clock pulse. If the CLEAR signal is
high, all the flip-flops except the first one FF0 are reset to 0. FF0 is preset to 1 instead.
Since the count sequence has 4 distinct states, the counter can be considered as a mod-4
counter. Only 4 of the maximum 16 states are used, making ring counters very inefficient in
terms of state usage. But the major advantage of a ring counter over a binary counter is that it
is self-decoding. No extra decoding circuit is needed to determine what state the counter is
in.
Procedure:
1. Make the connections as per the circuit diagram.
2. Connect the output pin on LED through Resistor.
3. Switch on VCC and apply various combinations of input according to truth table.
4. Observe the logical output and verify with the truth tables.
Output: counters are designed with the help of trainer kit and verified with the truth table.
Result: Divide by 2, 4 & 8 asynchronous counter,4-bit binary counter and ring counter for a
particular output pattern using D flip flop are designed and their truth table are verified.
When the value of output voltage is greater than 2.4V then it will be represented by logic 1
and if output voltage is less than 0.4 volt it will be represented by logic 0.
Discussion:
Q1. What is the difference between synchronous and asynchronous counter?
Q2. What is up and down counter?
Q3. How many flip flops are required for designing the decade counter?
Q4. How the synchronous counters eliminate the delay problems encountered in
asynchronous counters.
Q5. Design Mod 5 counter in synchronous mode.
Experiment No: 9
Aim: Design and construct unidirectional shift register and verify the function.
Apparatus / Component Required: IC tester, Digital trainer kit, Digital ICs 7474
Theory:
A flip-flop stores 1-bit of digital information. It is also referred to as 1-bit register. An array
of flip-flops is required to store the no. of bits. This is called register. The data can be entered
into or retrieved from the register. A register is capable of shifting its binary information in
one or both directions is known as shift register. The logical configuration of shift register
consists of a D-Flip flop cascaded with output of one flip flop connected to input of next flip
flop. All flip flops receive common clock pulses which causes the shift in the output of the
flip flop. The simplest possible shift register is one that uses only flip-flops, as shown in
figure. The Q output of a given flip-flop is connected to the D input of the flip-flop at its
right. Each clock pulse shifts the contents of the register one bit position to the right. The
serial input determines what goes into the leftmost flip-flop during the shift. The serial output
is taken from the output of the rightmost flip-flop prior to the application of a pulse. Although
this register shifts its contents to the right, if we turn the page upside down; we find that the
register shifts its contents to the left. Thus, a unidirectional shift register can function either
as a shift-right or as shift-left register.
The register in figure shifts its contents with every clock pulse during the positive edge of the
pulse transition. If we want to control the shift so that it occurs only with certain pulses but
not with others, we must control CLK input of the register.
Shift registers can be used for converting serial data to parallel, and vice versa. If we have
access to all the flip-flop outputs of a shift register, then information entered serially by
Department of ECE Page 77
Digital System Design Lab
shifting can be taken out in parallel from the outputs of the flip-flops. If a parallel-load
capability is added to a shift register, then data entered in parallel can be taken out in serial
fashion by shifting the data stored in the register.
The operation of the serial-in Serial-out shift register can be easily explained. Consider the
circuit shown. On each clock edge (rising in this case) we can say the following about the
outputs of each stage of the register (i.e. each D-type flip-flop in the register):
Waveforms
Truth Table
Clock Pulse No QA QB QC QD
0 0 0 0 0
1 1 0 0 0
2 0 1 0 0
3 0 0 1 0
4 0 0 0 1
5 0 0 0 0
The Parallel-in to Serial-out shift register acts in the opposite way to the serial-in to parallel-
out one above. The data is loaded into the register in a parallel format i.e. all the data bits
enter their inputs simultaneously, to the parallel input pins PA to PD of the register. The data is
then read out sequentially in the normal shift-right mode from the register at Q representing
the data present at PA to PD. This data is outputted one bit at a time on each clock cycle in a
serial format. It is important to note that with this system a clock pulse is not required to
parallel load the register as it is already present, but four clock pulses are required to unload
the data.
As this type of shift register converts parallel data, such as an 8-bit data word into serial
format, it can be used to multiplex many different input lines into a single serial DATA
stream which can be sent directly to a computer or transmitted over a communications line.
The final mode of operation is the Parallel-in to Parallel-out Shift Register. This type of
register also acts as a temporary storage device or as a time delay device similar to the SISO
configuration above. The data is presented in a parallel format to the parallel input pins PA to
PD and then transferred together directly to their respective output pins QA to QA by the same
clock pulse. Then one clock pulse loads and unloads the register. This arrangement for
parallel loading and unloading is shown below.
TRUTH TABLE:
1 1 0 0 1 1 0 0 1
2 1 0 1 0 1 0 1 0
Figure 9.8: Pin-diagram and truth-table of SISO & SIPO register IC 7495
PISO
Figure 9.9: Pin-diagram and truth-table of PISO & PIPO register IC 7495
PROCEDURE:
Output: Thus, the Serial in serial out, Serial in parallel out, Parallel in serial out and Parallel
in parallel out shift registers were implemented using IC 7495.
Result: Shift registers using IC 7495 in all its modes i.e.SIPO/SISO, PISO/PIPO are verified
by their truth table. When the value of output voltage is greater than 2.4V then it will be
represented by logic 1 and if output voltage is less than 0.4 volt it will be represented by logic
0.
Discussion:
Experiment No: 10
Aim: Design and construct BCD ripple counter and verify the function.
Apparatus / Component required: - IC tester, Digital trainer kit, Digital ICs 7476
Theory: A decimal counter follows a sequence of ten states and returns to 0 after the count
of 9. Such counter must have at least four flip-flops to represent each decimal digit, since a
decimal digit is represented by a binary code with at least four bits. The sequence of states in
a decimal counter is indicated by the binary code used to represent a decimal digit. If BCD is
used, the sequence of states is as shown in the state diagram of figure fig.1. This is similar to
a binary counter, except that the state after 1001 (code for decimal 9) is 0000 (code for
decimal 0).
The logic diagram of a BCD ripple counter is shown in fig.2. The four outputs are designed
by the letter symbol Q with a numeric subscript equal to the binary weight of the
corresponding bit in the BCD code. The flip-flops trigger on the negative edge. Note that the
output Q1 is applied to the Clk inputs of both Q2 and Q8 and the output of Q2 is applied to
the Clk input of Q4. The J and K inputs are connected either to a permanent 1 signal or to
outputs of flip-flops, as shown in the diagram.
The following are the conditions for each flip-flop state transition: -
1. Q1 is complemented on the negative edge of every count pulse.
2. Q2 is complemented if Q8 = 0 and Q1 goes from 1 to 0.
Q2 is cleared if Q8 = 1 and Q1 goes from 1 to 0.
3. Q4 is complemented when Q2 goes from 1 to 0.
4. Q8 is complemented when Q4Q2 = 11 and Q1 goes from 1 to 0.
Q8 is cleared if either Q4 or Q2 is 0 and Q1 goes from 1 to 0.
Other presentation of BCD ripple counter will be as follows:
1. We need four flip-flops, for example JK flip flops where J and K are high.
2. Count from 0-9, so when counter reaches 9 it will make the 10 to be 0.
3. Decimal 10 = (1010)2, clear = D C' B A'
4. Take ones as inputs of NAND and take output of NAND to CLR.
TRUTH TABLE
Output: We had designed a BCD ripple counter that counts from 0 to 9 and then return to 0.
Result: as we had studied in course that BCD is valid up to 9 so we designed the circuit for
that and got same response as studied.
Discussion:
Aim: To realize a 4-bit ripple adder/Subtractor using basic half adder/ Subtractor and basic
full adder/ Subtractor.
Apparatus / Component Required: IC tester, Digital trainer kit, Digital ICs (7483, 7486,
7404, 7408, and 7432)
Theory:
LOGIC DIAGRAM:
Logic Diagram for 4-Bit Binary Adder
Figure 11.6
Logic Diagram for 4-Bit Binary Subtractor:
Figure 11.7
Department of ECE Page 93
Digital System Design Lab
Figure 11.8
Observations for IC 7483
Procedure:
1. Test the digital ICs with the help of IC tester.
2. Make the connections as per the circuit diagram.
3. Connect the output pin on LED through Resistor.
4. Switch on VCC and apply various combinations of input according to truth table.
5. Observe the logical output and verify with the truth tables.
Output: Thus the 4-bit adder and subtractor using IC 7483 was designed and implemented.
Result: A four-bit ripple carry adder/subtractor can be designed by using four full
adders/subtractors. They can also be designed by using IC 7483 by using appropriate
selection mode (M).
Discussion:
Aim: To design 1-to-4 demultiplexer using basic gates and verify the truth table. Also, to
construct 1-to-8 demultiplexer using blocks of 1-to-4 demultiplexer
Apparatus / Component Required: IC tester, Digital trainer kit, connecting wires, Digital
ICs (74155, 7408, 7432, 7404, 7411)
Theory:
DEMULTIPLEXER:
The function of De-multiplexer is in contrast to multiplexer function. It takes information
from one line and distributes it to a given number of output lines. For this reason, the de-
multiplexer is also known as a data distributor. Decoder can also be used as de-multiplexer.
In the 1: 4 de-multiplexer circuit, the data input line goes to all of the AND gates. The data
select lines enable only one gate at a time and the data on the data input line will pass through
the selected gate to the associated data output line.
BLOCK DIAGRAM FOR 1:4 DEMULTIPLEXER:
TRUTH TABLE:
OUTPUT
INPUT
S1 S0 I/P D0 D1 D2 D3
0 0 0 0 0 0 0
0 0 1 1 0 0 0
0 1 0 0 0 0 0
0 1 1 0 1 0 0
1 0 0 0 0 0 0
1 0 1 0 0 1 0
1 1 0 0 0 0 0
1 1 1 0 0 0 1
TRUTH TABLE OF 1:4 DEMUX (IC 74155) WITH ACTIVE LOW MODE:
Input(Channel A) Output
Ea S0 S1 D0 D1 D2 D3
1 × × 1 1 1 1
0 0 0 0 1 1 1
0 0 1 1 0 1 1
0 1 0 1 1 0 1
0 1 1 1 1 1 0
Figure: 12.4
Figure: 12.5
Procedure:
Output: Hence the 1:4 de-mux is designed with basic gate as given in the figure and verified
with the truth table. 1:8 de-mux is designed with 1:4 de-mux as given in circuit.
Result: 1:8 Demultiplexer is designed by using two 1:4 demultiplexer (IC 74155) by
choosing appropriate selection lines. The demultiplexer was also designed USING IC 74155
and verified the truth table.
Discussion:
Q1. How many select lines will a 32:1 multiplexer will have.
Q2. Give the applications of Demultiplexer.
Q3. The logic realized by the circuit shown in figure is
Aim: To design 2x4 decoder using basic gates and verify the truth table. Also verify the truth
table of 3x8 decoder using IC.
Apparatus / Component required: - IC tester, Digital trainer kit, Digital ICs 74138, 7404,
7408
Theory:
Decoder: -
In a digital system, discrete quantities of information are represented with binary codes. A
binary code of n bits can represent up to 2n distinct elements of the coded information. A
decoder is a combinational circuit that converts n bits of binary information of input lines to a
maximum of 2n unique output lines. Usually, decoders are designated as an n to m lines
decoder, where n is the number of input lines and m (=2n) is the number of output lines.
The 2-to-4 line decoder consists of two input variables and eight output lines. Note that each
of the output lines represents one of the minterms generated from two variables. The internal
combinational circuit is realized with the help of INVERTER gates and AND gates. Block
diagram of 2-to-4 line decoder is shown below.
TRUTH TABLE
INPUTS OUTPUTS
0 0 0 0 0 0 0
0 0 1 1 0 0 0
0 1 0 0 0 0 0
0 1 1 0 1 0 0
1 0 0 0 0 0 0
1 0 1 0 0 1 0
1 1 0 0 0 0 0
1 1 1 0 0 0 1
The 3-to-8 line decoder consists of three input variables and eight output lines. Note that each
of the output lines represents one of the minterms generated from three variables. The
internal combinational circuit is realized with the help of INVERTER gates and AND gates.
By using IC-74LS138 we can perform the 3X8 Decoder and by using 2 3X8 Decoder and
also the NOT Gate we can perform 4X16 Decoder. We can also check the truth table.
Procedure:
Using basic gates, make circuit of 2:4 decoder on breadboard and check out as done
earlier.
Draw block diagram, truth table and pin diagram for 74138 IC and 7404 IC.
According to pin assignment, connect the circuit as shown in fig. by using connecting
wires.
Switch ‘ON’ the power supply.
Apply the corresponding inputs and verify the truth table.
Note down the output reading according to the truth tables for 3 X 8 Decoders.
Output: By using basic gates and IC-74LS138 we can perform the different line decoder and
verify the truth table.
Result: Thus, we have concluded that the inputs to a decoder are the bits 1, 0 and their
combinations. The output is the corresponding decimal number. It converts binary
information from n input lines to a maximum of 2n unique output lines.
Discussion:
Q1. What is the difference between Encoder and Decoder?
Q2. What is the difference between combinational and sequential circuits?
Q3. What is the difference between decoder and demultiplexer?
Q4. Design a Full adder using two half adders.
Aim: Design and construct a 4 Bit Ring counter and verify the function.
Apparatus / Component required: - IC tester, Digital trainer kit, Digital ICs 7474
Theory: The ring counter is basically a shift register and is therefore also called ring shift
register. In a ring counter the output of the last flip-flop is connected to the input of the first
flip-flop. In a ring counter, the information is shifted at each clock signal Clk by one position
or flip-flop. Once the information reaches the last flip-flop, at the next clock signal it is
pushed back to the first flip-flop...
Take a look at the circuit diagram. The shown ring counter consists of four D flip-flops.
With Reset you set the counter to (1000). Thereafter, the ring counter at each clock signal
passes through four states (mod-4 counter).
As it can be seen from the truth table there are four unique output stages for this counter. The
modulus value of a ring counter is n, where n is the number of flip flops. Ring counter is
called divided by N counter where N is the number of FF.
Result: as we had studied in course that Ring counter make ring of different sequences and
repeat it, so we designed the circuit for that and got same response as studied.
Discussion:
Aim: Perform input/output operations on parallel in/Parallel out and Serial in/Serial out
registers using clock. Also exercise loading only one of multiple values into the register using
multiplexer.
Apparatus / Component Required: IC tester, Digital trainer kit, Digital ICs 7474
Theory:
A shift register is an n-bit register with provision for shifting its stored data by one position at
each clock pulse. The logical configuration of a shift register consists of a chain of flip-flops
connected in cascade, with the output of one flip-flop connected to the input of the next flip-
flop. All flip-flops receive a common clock pulse which causes the shift from one stage to
the next. Fig. 1 shows a simple shift register configuration. The new bit to be shifted into
one end must be specified, and the bit shifted off the other end is lost unless it is saved
externally. Although Fig. 1 shows a right-shift register, the same register can obviously be
used for left shifts simply by reversing the sense of the bits. Most shift registers have
provision for shifting only in one direction, but some have a control input that allows either
left or right shifting to be specified at each clock.
Depending on the way how the data can be entered or retrieved there are four possible modes
of operation.
1) Serial in serial out (SISO)
2) Serial in parallel out (SIPO)
3) Parallel in serial out (PISO)
4) Parallel in parallel out (PIPO)
Waveforms
TRUTH TABLE:
1 1 0 0 1 1 0 0 1
2 1 0 1 0 1 0 1 0
PROCEDURE:
Serial In Serial Out (SISO):
1. Connections are made as per circuit diagram.
2. Load the shift register with 4 bits of data one by one serially.
3. At the end of 4th clock pulse the first data ‘d0’ appears at QD.
4. Apply another clock pulse; the second data ‘d1’ appears at QD.
5. Apply another clock pulse; the third data appears at QD.
6. Application of next clock pulse will enable the 4th data ‘d3’ to appear at QD. Thus the data
applied serially at the input comes out serially at QD
Output: Thus, the Serial in serial out, Parallel in serial out and Parallel in parallel out shift
registers were implemented using IC 7495.
Result: shift registers using IC 7495 in all its modes i.e. SISO, PISO/PIPO are verified and
outputs are same as studied.
Discussion:
Aim: Design a circuit that will do the assigned work as mentioned below:
Apparatus / Component Required: Digital trainer kit, connecting wires, Digital ICs 7400
Theory:
The given circumstances in 1,2,3,4,5 are expressed in terms of the defined variables S, M, T
and H as M’S’, TM’S, THS, T’M’S, and TH’, respectively.
F = S’M’+SM’T+STH+SM’T’+TH’
= 00XX+101X+1X11+100X+XX10
F = ⅀ m (0,1,2,3,6,9,10,11,14,15)
= П M (4,5,7,12,13)
Figure 16.1
Figure 16.2
Implementation:
Logic diagram for SOP form is made with help of NAND gate:
Output: Thus, the automated lawn sprinkling system is designed by using digital IC which
will work according to the specified conditions.
Result: Digital IC’s can be used to design any kind of combinational circuits as well as
sequential circuits like air-conditioning unit, room sensing system etc.
Discussion: