STLD Lab Manual
STLD Lab Manual
COMPONENTS REQUIRED:
THEORY:
Logic gates are the basic components in digital electronics. They are used to create digital
circuits and even complex integrated circuits. For example, complex integrated circuit may bring
already a complete circuit ready to be used - microprocessors and microcontrollers are the best
example - but inside them they were projected using several logic gates.
A gate is a digital electronic circuit having only one output but one or more inputs. The
output or a signal will appear at the output of the gate only for certain input-signal combinations.
There are many types of logic gates; such as AND, OR and NOT, which are usually called the three
basic gates. Other popular gates are the NAND and the NOR gates; which are simply combinations
of an AND or an OR gate with a NOT gate inserted just before the output signal. Other gates include
the XOR "Exclusive-OR" and the XNOR "Exclusive NOR" gates. All the logic gates used in the
exercises below are known as TTL (transistor-to-transistor) logic. These have the convenient
property that the output of any gate can be used directly as input to another gate. All these TTL
circuits are operated from a 5 V power supply, and the binary digits 0 and 1 are represented by low
and high voltages on the gate terminals.
Boolean algebra is a system of mathematical logic. It differs from both ordinary algebra and
the binary number system. Boolean algebra is formulated by a defined set of elements, together with
two binary operators ‘+’ and ‘.’ and unary operator ‘-‘.
LOGIC GATES:
AND gate:
INPUTS OUTPUT
A B X=A.B
0 0 0
0 1 0
1 0 0
1 1 1
Figure: 2 input AND Gate
The AND gate is an electronic circuit that gives a high output (1) only if all its inputs are
high. A dot (.) is used to show the AND operation i.e. A.B. Bear in mind that this dot is sometimes
omitted i.e. AB.
OR gate:
INPUTS OUTPUT
A B X=A+B
0 0 0
0 1 1
1 0 1
Figure: 2 input OR Gate 1 1 1
The OR gate is an electronic circuit that gives a high output (1) if one or more of its inputs
are high. A plus (+) is used to show the OR operation.
NOT gate :
OUTPUT
INPUT
A X=AI
0 0
0 1
Figure: NOT Gate
The NOT gate is an electronic circuit that produces an inverted version of the input at its
output. It is also known as an inverter. If the input variable is A, the inverted output is known as NOT
A.
This is also shown as A', or A with a bar over the top, as shown at the outputs. The diagrams
below show two ways that the NAND logic gate can be configured to produce a NOT gate. It cannot
also be done using NOR logic gates in the same way.
A Logic Gate which can infer any of the gate among Logic Gates. NAND and NOR Gates
are called Universal Gates because all the other gates can be created by using these gates.
Universal Gates:
NAND gate
INPUTS OUTPUT
A B
X=
0 0 1
0 1 1
1 0 1
1 1 0
Figure: NAND Gate
This is a NOT-AND gate which is equal to an AND gate followed by a NOT gate. The
outputs of all NAND gates are high if any of the inputs are low. The symbol is an AND gate with a
small circle on the output. The small circle represents
INPUTS OUTPUT
inversion. A B X=
NOR gate 0 0 1
0 1 0
1 0 0
1 1 0
This is a NOT-OR gate which is equal to an OR gate followed by a NOT gate. The outputs of
all NOR gates are low if any of the inputs are high. The symbol is an OR gate with a small circle on
the output. The small circle represents inversion.
EX-OR gate
INPUTS OUTPUT
A B
0 0 0
0 1 1
The ex-or gate output is both inputs are equal then the output of the ex-or gate is low (0),
otherwise the ex-or gate output is high (1).
EX-OR gate
INPUTS OUTPUT
A B
0 0 1
0 1 0
1 0 0
1 1 1
Figure: EX-NOR Gate
The ex-nor gate output is both inputs are equal then the output of the ex-nor gate is high (1),
otherwise the ex-or gate output is low (0).
Pin diagrams of all the logic gates are:
RESULT:
All the truth tables of logic gates are verified by using IC’s
VIVA QUESTIONS:
COMPONENTS REQUIRED:
TRUTH TABLE
Pin diagrams of 7404, 7408, 7432 ICs:
PROCEDURE:
1. Plug the 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 chip to the power and ground bus strips on the
breadboard.
4. Switch on VCC and apply various combinations of input according to truth table.
5. Note down the output readings for Boolean expression for different combinations of
inputs.
RESULT:
The Four variable Boolean expression are simplified and verified truth table using digital
IC’s.
Viva Questions:
THEORY:
A decoder is a multi-input, multi-output logic circuit which converts coded inputs into
coded outputs, where the input and output codes are different.
The encoded information is presented as n inputs producing 2n possible outputs. The 2n
output values are from 0 through 2n -1
74LS138 3 to 8 Decoder
The LS138 is a high speed 1-of-8 Decoder/Demultiplexer fabricated with the low power Schottky
barrier diode process. The decoder accepts three binary weighted inputs (A0, A1, A2) and when enabled
provides eight mutually exclusive active LOW Outputs (O0–O7). The LS138 features three Enable
inputs, two active LOW (E1, E2) and one active HIGH (E3). All outputs will be HIGH unless E1 and E2
are LOW and E3 is HIGH. This multiple enable function allows easy parallel expansion of the device to a
1-of-32 (5 lines to 32 lines) decoder with just four LS138s and one inverter. The LS138 can be used as an
8-output demultiplexer by using one of the active LOW Enable inputs as the data input and the other
Enable inputs as strobes. The Enable inputs which are not used must be permanently tied to their
appropriate active HIGH or active LOW state.
PIN DIAGRAM FOR 74138 IC
LOGIC SYMBOL
LOGIC DIAGRAM
TRUTH TABLE
PROCEDURE
RESULT:
A combinational logic circuit of 3 to 8 line Decoder /De-multiplexer is designed and
verified the truth table.
VIVA QUESTIONS:
1. What is a Decoder?
The LS151 provides the ability, in one package, to select from eight sources of
data or control information. By proper manipulation of the inputs, the LS151 can provide any
logic function of four variables and its negation.
LOGIC DIAGRAM
. TRUTH TABLE
PIN DIAGRAM
4 variable logic function using 8 to 1 multiplexer
PROCEDURE
1. Make the connections as per the circuit diagram.
2. Connect +5V and GND pins of each chip to the power and ground bus strips on the
breadboard.
3. Switch on VCC and apply various combinations of input according to truth table and
verify the Truth Table.
RESULT:
VIVA QUESTIONS:
AIM:
To Design full adder circuit and verify its functional table.
COMPONENTS REQUIRED:
Full-Adder: The half-adder does not take the carry bit from its previous stage into account. This
carry bit from its previous stage is called carry-in bit. A combinational logic circuit that adds two
data bits, A and B, and a carry-in bit, Cin , is called a full-adder.
The Boolean functions describing the full-adder are:
S = (A⊕ B) ⊕ Cin
C = AB+BCin +ACin
TRUTH TABLE
LOGIC DIAGRAM
RESULT:
A full adder circuit designed and verified its functional table by using various logic gate
ICs.
VIVA QUESTIONS:
1. What is a half-adder?
2. What is a full-adder?
AIM:
To Verify the various flip-flops of functional tables of
(i) J K Edge triggered Flip –Flop
(ii) J K Master Slave Flip – Flop
(iii) D Flip -Flop.
COMPONENTS REQUIRED:
"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.
D FLIP-FLOP
TRUTH TABLE
JK FLIP FLOP
The J-K flip-flop works very similar to S-R flip-flop.
LOGIC DIAGRAM
GRAPHICAL SYMBOL
TRUTH TABLE
TRUTH TABLE
PIN DIAGRAM FOR 7476 IC
PROCEDURE
RESULT:
Verified the truth tables of different flip flops like. (i) J K Edge triggered Flip –Flop (ii) J K
Master Slave Flip – Flop (iii) D Flip -Flop .
VIVA QUESTIONS:
2. What is a flip-flop?
COMPONENTS REQUIRED:
THEORY:
A digital counter is a set of flip-flops whose states change in response to pulses applied at
the input to the counter. The FFs are interconnected such that their combined state at any time is
the binary equivalent of the total number of pulses that have occurred upto that time. A counter is
used to count pulses. Shift register counters are obtained from serial-in, serial-out shift register
by providing feedback from the output of the last FF to input of the FF. These devices are called
counters. The most widely used shift register counter is the Ring Counter as well as Twisted
Ring Counter (Johnson Counter).
Ring counter is a basic register with direct feedback such that the contents of the register
simply circulate around the register when the clock is running. Here the last output that is QD in
a shift register is connected back to the serial input.
Pin Diagram of IC7474:
D-Flipflop:
Circuit Diagrams:
Logic Diagram of a 4 – bit ring counter using D-flip-flops:
TRUTH TABLE
PROCEDURE
4- Bit Ring counter are designed and their truth table are verified using D-Flipflop.
VIVA QUESTIONS:
COMPONENTS REQUIRED:
THEORY:
A digital counter is a set of flip-flops whose states change in response to pulses applied at
the input to the counter. The FFs are interconnected such that their combined state at any time is
the binary equivalent of the total number of pulses that have occurred upto that time. A counter is
used to count pulses. Shift register counters are obtained from serial-in, serial-out shift register
by providing feedback from the output of the last FF to input of the FF. These devices are called
counters. The most widely used shift register counter is the Ring Counter as well as Twisted
Ring Counter (Johnson Counter).
Ring counter is a basic register with direct feedback such that the contents of the register
simply circulate around the register when the clock is running. Here the last output that is QD bar
is connected back to the serial input.
Pin Diagram of IC7474:
D-Flipflop:
Circuit Diagrams:
Logic Diagram of a 4 – bit Johnson counter using D-flip-flops:
TRUTH TABLE
PROCEDURE
4- Bit Johnson counter are designed and their truth table are verified using D-Flipflop.
VIVA QUESTIONS:
To verify the operation of 4-bit Universal Shift Register for different Modes of operation.
COMPONENTS REQUIRED:
CIRCUIT DIAGRAM:
4 BIT UNIVERSAL SHIFT REGISTER
PIN DIAGRAM
TRUTH TABLE
PROCEDURE
RESULT:
4-bit Universal Shift Register operation is verified for different Modes of operation.
COMPONENTS REQUIRED:
OUTPUT WAVEFORM
PROCEDURE
RESULT:
Mod-8 ripple counter using T-Flipflop are designed and truth table is verified.
VIVA QUESTIONS:
1. What is a counter?
COMPONENTS REQUIRED:
OUTPUT WAVEFORM
PROCEDURE
RESULT:
Mod-8 synchronous counter using T-Flipflop are designed and truth table is verified.
VIVA QUESTIONS:
1. What is a synchronous counter?
To draw the circuit diagram of a single bit comparator and test the output
COMPONENTS REQUIRED:
1-BIT COMPARATOR
TRUTH TABLE
LOGIC DIAGRAM
PIN DIAGRAMS OF IC 7404, IC 7408, IC74266
PROCEDURE
1. Make the connections as per the circuit diagram.
2. Connect +5V and GND pins of each chip to the power and ground bus strips on the
breadboard.
3. Switch on VCC and apply proper inputs of comparator.
4. Check the output on logic section.
5. Change the input and verify the truth tables
RESULT: