Digital Combinational Circuits-1
Digital Combinational Circuits-1
III-Sem ECE
Ms. P.Binduswetha
Assistant Professor –ECE department
G Pulla Reddy Engineering College (Autonomous)
Mail: [email protected]
Module-3 COMBINATIONAL LOGIC DESIGN contents
• Combinational circuits
• Half & Full adder
• Binary adder/ Subtractor
• CLA & BCD Adder
• Half & Full subtractor
• Binary multipliers
• Magnitude comparator
• Decoder and its applications for logic implementation
• Encoder & Priority encoder
• Multiplexor & De-multiplexer
• Logic diagrams using MUX
• Hazards
• Unit-2 PLD’s
• Truth table :
X Y HS=(X+Y) CO
0 0 0 0 X
HS
0 1 1 0 Y
1 0 1 0
1 1 0 1 CO
•
HS X Y
CO X Y
• Ripple Adder can be used as a Subtractor by inverting Y and setting the initial carry (
CIN ) to 1
• Ripple Adder can be used as a Subtractor by inverting Y and setting the initial carry (
CIN ) to 1
1.If A3 = 1 and B3 = 0
2.If A3 = B3 and A2 = 1 and B2 = 0
3.If A3 = B3, A2 = B2 and A1 = 1 and B1
=0
4.If A3 = B3, A2 = B2, A1 = B1 and A0 = 1
and B0 = 0
1.If A3 = 0 and B3 = 1
1.If A3 = B3 and A2 = 0 and B2 = 1
2.If A3 = B3, A2 = B2 and A1 = 0 and B1 = 1
3.If A3 = B3, A2 = B2, A1 = B1 and A0 = 0
and B0 = 1
Return Next
4/27/2023 DIGITAL SYSTEM DESIGN ,PASULURRI SWETA 41
Decoders
Binary decoder
The most common decoder circuit is an n-to-2
n
output
input code
code ENCODER
Decoder Encoder
Binary decoders/encoders
n-to-2^n 2^n-to-n encoder
Input code : Binary Code Input code : 1-out-of-2^n.
Output code :1-out-of-2^n. Output code : Binary Code
I0 I1 I2 I3 I4 I5 I6 I7 Y2 Y1 Y0
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
• Simplified implementation: I0
Y2
- From the truth table I1
Y0 = I1 + I3 + I5 + I7
Y1 = I2 + I3 + I6 + I7 I2
Y2 = I4 + I5 + I6 + I7
I3 Y1
• Limitations :
- I0 has no effect on the output I4
- Only one input can be activated I5
• Application: I6 Y0
Handling multiple devices requests
But, no simultaneous requests I7
• Active-low I/O
• Enable Input
• “Got Something": Group Select
• Enable Output
4/27/2023 DIGITAL SYSTEM DESIGN ,PASULURRI SWETA 70
74x148 Truth Table
• 32-input
priority encoder
• 4-input, 2-bit-
wide
– 74x153
+5V
74x85 74x85
1.Static Hazards
2.Dynamic Hazards
3.Essential Hazards
• S-Hazards is those where the signal level should have been constant
but it changes for a small amount of time.
• If the signal is ‘1’ for all time but due to some static hazard it will
become from 1 to 0 for a small amount of time, or If a signal is ‘0’ for
all time but due to some static hazards it will become from ‘0’ to ‘1’.
• if any static hazard comes in digital circuits then both static ‘1’ and
static ‘0’ hazard will come in the circuit simultaneously. Only static
‘1’ or only static ‘0’ hazard will not generate in a digital circuit.
• Static 0 Hazard:
• Static 0 hazard occurs due to different delays experienced by the signal
through the Gates connected in circuits.
• Static 0 hazard always occurs in POS (Product of Sum) terms.
• Static hazard can be eliminated by adding redundant terms which
increases the hardware but removes the glitch.
• Static hazard occur when an input changes and it causes the output
to change at the same moment before output becomes stable.
• Dynamic hazard occur when output changes for two adjacent inputs
while the output should change only once.
• A static hazard is a change of a signal state twice in a row when the
signal is expected to stay constant. When one input signal changes,
the output changes momentarily before stabilizing to the correct
value.
• "A dynamic hazard is the possibility of an output changing more
than once as a result of a single input change" Dynamic hazards
often occur in larger logic circuits where there are different routes to
the output (from the input).
• For the special case when all the input fuses to a gate are kept
intact, a cross is placed inside the gate symbol.
PLD Notation
4/27/2023 DIGITAL SYSTEM DESIGN ,PASULURRI SWETA 108
PROM example: 3-8 Decoder A, B obtained
from fixed AND array
Thanking You