Unit2 1
Unit2 1
OR Gate
The OR gate is a digital logic gate with ‘n’ i/ps and one o/p, that performs logical
conjunction based on the combinations of its inputs. The output of the OR gate is true
only when one or more inputs are true. If all the i/ps of the gate are false, then only the
output of the OR gate is false. The symbol and truth table of an OR gate with two inputs
is shown below.
NOT Gate
The NOT gate is a digital logic gate with one input and one output that operates an
inverter operation of the input. The output of the NOT gate is the reverse of the input.
When the input of the NOT gate is true then the output will be false and vice versa. The
symbol and truth table of a NOT gate with one input is shown below. By using this gate,
we can implement NOR and NAND gates
Exclusive-OR Gate
The Exclusive-OR gate is a digital logic gate with two inputs and one output. The short
form of this gate is Ex-OR. It performs based on the operation of the OR gate. . If any
one of the inputs of this gate is high, then the output of the EX-OR gate will be high. The
symbol and truth table of the EX-OR are shown below.
Exclusive-NOR Gate
The Exclusive-NOR gate is a digital logic gate with two inputs and one output. The short
form of this gate is Ex-NOR. It performs based on the operation of the NOR gate. When
both the inputs of this gate are high, then the output of the EX-NOR gate will be high.
But, if any one of the inputs is high (but not both), then the output will be low. The symbol
and truth table of the EX-NOR are shown below.
UNIVERSAL LOGIC GATES:
Universal logic gates are logic gates that can be used to implement any Boolean
function without the need to use any other type of logic gate.
NAND Gate
The NAND gate is a digital logic gate with ‘n’ i/ps and one o/p, that performs the operation
of the AND gate followed by the operation of the NOT gate.NAND gate is designed by
combining the AND and NOT gates. If the input of the NAND gate high, then the output
of the gate will be low.The symbol and truth table of the NAND gate with two inputs is
shown below.
NOR Gate
The NOR gate is a digital logic gate with n inputs and one output, that performs the
operation of the OR gate followed by the NOT gate. NOR gate is designed by combining
the OR and NOT gate. When any one of the i/ps of the NOR gate is true, then the output
of the NOR gate will be false. The symbol and truth table of the NOR gate with the truth
table is shown below.
FLIP-FLOPS:
Flip flop is a sequential circuit which consist of single binary state of information or
data. The digital circuit is a flip flop which has two outputs and are of opposite states.
It is also known as a Bistable Multivibrator .
Types of flip-flops:
1. SR Flip Flop
2. JK Flip Flop
3. D Flip Flop
4. T Flip Flop
Logic diagrams and truth tables of the different types of flip-flops are as
follows:
1. SR Flip Flop:
SR flip-flop operates with only positive clock transitions or negative clock
transitions. Whereas, SR latch operates with enable signal. The circuit
diagram of SR flip-flop is shown in the following figure.
D FLIP FLOP
T Flip Flop:
T flip-flop is the simplified version of JK flip-flop. It is obtained by connecting
the same input ‘T’ to both inputs of JK flip-flop. It operates with only positive
clock transitions or negative clock transitions. The circuit diagram of T flip-
flop is shown in the following figure.
T FLIP FLOP
Combinational Circuits:
Combinational circuit is a circuit in which we combine the different gates in
the circuit, for example encoder, decoder, multiplexer and demultiplexer.
The output of combinational circuit at any instant of time, depends only
on the levels present at input terminals.
The combinational circuit do not use any memory. The previous state of
input does not have any effect on the present state of the circuit.
A combinational circuit can have an n number of inputs and m number
of outputs.
Block diagram
Half Adder
Half adder is a combinational logic circuit with two inputs and two outputs.
The half adder circuit is designed to add two single bit binary number A and
B. It is the basic building block for addition of two single bit numbers. This
circuit has two outputs carry and sum.
Block diagram
Truth Table
Circuit Diagram
Full Adder
Full adder is developed to overcome the drawback of Half Adder circuit. It can
add two one-bit numbers A and B, and carry c. The full adder is a three input
and two output combinational circuit.
Block diagram
Truth Table
DIGITAL LOGIC CIRCUITS-||
Shift Registers
Shift Register is a group of flip flops used to store multiple bits of data. The bits stored in
such registers can be made to move within the registers and in/out of the registers by applying
clock pulses.
Types of Shift Registers:
Serial In Serial Out shift register
Serial In parallel Out shift register
Parallel In Serial Out shift register
Parallel In parallel Out shift register
The shift register, which allows serial input (one bit after the other through a single data line)
and produces a serial output is known as a Serial-In Serial-Out shift register.
Serial-In Parallel-Out Shift Register (SIPO):
The shift register, which allows serial input (one bit after the other through a single data line)
and produces a parallel output is known as the Serial-In Parallel-Out shift register.
The shift register, which allows parallel input (data is given separately to each flip flop and
in a simultaneous manner) and produces a serial output is known as a Parallel-In Serial-Out
shift register.
The shift register, which allows parallel input (data is given separately to each flip flop and
in a simultaneous manner) and also produces a parallel output is known as Parallel-In
parallel-Out shift register.
Binary Counters
In digital electronics, a binary counter is a type of sequential logic circuit which is able
to count in binary numbers. A binary counter can counter from 0 to 2(n-1), where n is
the total number of bits in the counter.
DECODERS
A decoder is a multiple-input, multiple-output logic circuit that converts coded
inputs into coded outputs, where the input and output codes are different.
CIRCUIT DIAGRAM
Truth table
EX=2*4 DECODER
Truth Table:
Logic Diagram:
Multiplexer
A multiplexer is a combinational circuit that has 2n input lines and a single output line. Simply, the
multiplexer is a multi-input and single-output combinational circuit.
2×1 Multiplexer:
In 2×1 multiplexer, there are only two inputs, i.e., A0 and A1, 1 selection line, i.e., S0 and single outputs, i.e., Y.
Block Diagram:
Truth Table:
Logic Diagram
4×1 Multiplexer:
In the 4×1 multiplexer, there is a total of four inputs, i.e., A0, A1, A2, and A3, 2 selection lines, i.e.,
S0 and S1 and single output, i.e., Y.
Block Diagram:
Truth Table:
Logic Diagram
Programmable Logic Devices
Programmable Logic Devices PLDs are the integrated circuits. They contain
an array of AND gates & another array of OR gates.
There are three kinds of PLDs based on the type of array s:
Programmable Read Only Memory
Programmable Array Logic
Programmable Logic Array
Read Only Memory ROM is a memory device, which stores the binary
information permanently. That means, we can’t change that stored
information by any means later. If the ROM has programmable feature, then
it is called as Programmable Read Only Memory
Block Diagram
Example
A(X,Y,Z)=∑m(5,6,7)
B(X,Y,Z)=∑m(3,5,6,7)
The given two functions are in sum of min terms form and each function is
having three variables X, Y & Z. So, we require a 3 to 8 decoder and two
programmable OR gates for producing these two functions.
Logic Diagram
PAL is a programmable logic device that has Programmable AND array & fixed
OR array. The advantage of PAL is that we can generate only the required
product terms of Boolean function instead of generating all the min terms by
using programmable AND gates.
Logic Diagram
Example
A=XY+XZ,
A=XY′+YZ′
Logic Diagram
Programmable Logic Array
PLA is a programmable logic device that has both Programmable AND array
& Programmable OR array. Hence, it is the most flexible PLD.
Logic Diagram
Example
A=XY+XZ′
B=XY′+YZ+XZ′
Logic Circuit