Professional Documents
Culture Documents
Engineering
Introduction T4 2
Asynchronous Counters
T4 321-322
Logic Gates
6. OR Laws A +0 = A
A +1 = 1
A + A= A
A + A̅ = 1
7. Other Important Laws A+BC = (A +B) (A +C)
A̅ + AB = A̅ + B
A̅ + AB̅ = A̅ + B̅
A + AB = A
A + A̅B = A+B
EQUAL
DeMorgan’s Theorem #1
A · B = A + B
A
B
=
EQUAL
DeMorgan’s Theorem #2
A + B = A · B
A A
B
= B
AND
OR
AND
• Because there are three inputs to this circuit, eight rows are required to describe all
possible input combinations
• This same circuit represented using Boolean algebra:
X = (AB + AC)
Dept. of Electronics and Telecommunication November 29, 202 30
3
Now let’s go the other way;
let’s take a Boolean expression and draw
• Consider the following Boolean expression: A.(B + C)
• Now compare the final result column in this truth table to the truth table for
the previous example
• They are identical
Dept. of Electronics and Telecommunication November 29, 202 32
3
Logic Circuits
Sequential Combinational
Circuits Circuits
• Adders
• Flip-flips • Decoder
• Counters • Comparators
• Shift Registers • Multiplexers &
• Demultiplexers
• Digital systems may be divided into two broad categories:
– Combinational Logic
• where the outputs are determined by the current states of the inputs.
– Sequential Logic
– Truth Table – A truth table defines the function of a logic gate by providing a concise list that shows all the
output states in tabular form for each possible combination of input variable that the gate could encounter.
– Logic Diagram – This is a graphical representation of a logic circuit that shows the wiring and connections of
each individual logic gate, represented by a specific graphical symbol, that implements the logic circuit.
• f(A,B,C) = Σ m(3,5,7)
Then f(A,B,C) = ∏M ( )
43
Representation of SOP on K-Map
47
Half Adder
• A half-adder is an arithmetic circuit block that can be used to add two bits. Such
a circuit thus has two inputs that represent the two bits to be added and two
outputs, with one producing the SUM output and the other producing the
CARRY.
• Adding two single-bit binary values A, B produces a sum S bit and a carry C bit.
A
S
Half C
B
Adder
Input Output
A B SUM CARRY Sum = S = ?
0 0 0 0
0 1 1 0 Carry = C = ?
1 0 1 0
1 1 0 1
Input Output
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
A B Cin S Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Bcin
A 00 01 11 10
0 1 3 2 A’BCin’
A B Cin S Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
m select inputs
One output
• n = 2^m
D0
Laptop
MUX
D1
Sound Card Y
D2
D3
DEMUX
1
• DEMUX Types Input Outputs
(source) (destinations)
– 1-to-2 (1 select line)
– 1-to-4 (2 select lines) m
– 1-to-8 (3 select lines)
Select
– 1-to-16 (4 select lines) Lines
1 Din 0 1 0 0 Din 0
E Din S2 S1 S0 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
1 Din 0 0 0 0 0 0 0 0 0 0 Din
1 Din 0 0 1 0 0 0 0 0 0 Din 0
1 Din 0 1 0 0 0 0 0 0 Din 0 0
1 Din 0 1 1 0 0 0 0 Din 0 0 0
1 Din 1 0 0 0 0 0 Din 0 0 0 0
1 Din 1 0 1 0 0 Din 0 0 0 0 0
1 Din 1 1 0 0 Din 0 0 0 0 0 0
1 Din 1 1 1 Din 0 0 0 0 0 0 0
Fax
Machine
D0
DEMUX
X D1
D2 Color Inkjet
Printer
D3
B A Selected Destination
0 0 B/W Laser Printer Pen
0 1 Fax Machine Plotter
Q
Flip-Flop
Clock
S = J. Q
R = K. Q
Jn Kn
0 0
1 0 1
0 1 0
1 1
• Shifting in the data present at its input and shifting out the last bit in the
array, at each transition of the clock input.
• Shift registers can have both parallel and serial inputs and outputs.
Continued…
• It is a temporary data storage device
• Uses 1 FF per bit, e.g.: 4 bit register uses 4 FF and can store 4 bits
• ..or in parallel,
• ..or in parallel,
• ..or in parallel,
• Parallel communications: provides a binary number as binary digits through multiple data lines
at the same time.
• Once the binary digits are shifted in, the individual Flip-Flops will retain a bit, and the
whole configuration will be stored as a binary number.
D Q D Q D Q
10110
10110
10110
• PISO: Parallel In, Serial Out
10110
10110
10110
• PISO: Parallel In, Serial Out
10110
10110
10110
Dept. of Electronics and Telecommunication November 29, 202 99
3
Serial-in/Serial out Shift Register
• 5-bit serial in/serial out shift register implemented with D flip-flops.
C C C C C
CLK
CLK
100
Siso [shift right]
Input D Q D Q D Q
Q Q Q
D0 D1 D2 D3
SHIFT/LOAD
G1 G5 G2 G6 G3 G7 G4
Serial data
D D D D
Q0 Q1 Q2 Q3 out
C C C C
D Q D Q D Q
Q Q Q
• Sequential circuit
• Counting pulses
Counters
Synchronous Asynchronous
Counters
• Output of the last flip-flop (MSB) divides the input clock frequency by the MOD number
of the counter, hence a counter is also a frequency divider.
CLK 1 2 3 4 HIGH
Q0 J Q0 J Q1
CLK C C
Q0
Q0 0 1 0 1 0 K K
FF0 FF1
Q1 0 0 1 1 0
Timing diagram
00 01 10 11 00 ...
CLK 1 2 3 4 5 6 7 8 9 10
Q0
Q1
Q2
Q3
Q4
Q5
Q6
Q7
115
Dept. of Electronics and Telecommunication
Thank You…
Q&A
• Additional links
• Lecture series on Digital Circuits & Systems by
Prof.S.Srinivasan, Department of Electrical
Engineering, IIT Madras.For more details on NPTEL
visit http://nptel.ac.in
Dept. of Electronics and Telecommunication November 29, 202 117
3