ELEN2021: Microprocessors: Digital Logic and Design
ELEN2021: Microprocessors: Digital Logic and Design
ELEN2021 : Microprocessors
Digital Logic and Design
Chabalala Chabalala
2021
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Page 2
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
• Binary logic,
• Digital abstraction,
• Logic levels.
Page 3
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Page 4
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
In this lecture …
• Noise
• Logic Levels,
• Noise Margin,
• Power Consumption.
Page 5
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Noise
Driver Receiver
5V 4.5 V
Page 6
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Logic levels
• Digital circuits must be designed to be robust against noise.
• Define a range of voltage levels to represent 1’s and 0’s.
• Define different ranges between input and output voltage levels! WHY???
Driver Receiver
Output → Input → IN
OUT
Noise Margin
• The amount of noise that could be added to a worst-case output such that
the signal is still be interpreted as a valid input.
Page 8
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Noise Margin
• The amount of noise that could be added to a worst-case output such that
the signal is still be interpreted as a valid input.
Noise Margin
Example 2.1:
Consider the inverter circuit below with the following characteristics: VDD = 5 V,
VIL = 1.35 V, VIH = 3.15 V, VOL = 0.33 V and VOH = 3.84 V. What are the noise
margins? Can the circuit tolerate 1 V of noise?
Noise
Driver Receiver
V1 V2
1 2
5V 4.5 V
Solution:
• For logic LOW: NML = VIL – VOL = (1.35 V – 0.33 V) = 1.02 V
• For logic HIGH: NMH = VOH – VIH = (3.84 V – 3.15 V) = 0.69 V
• The circuit can tolerate 1 V of noise when the output is LOW (NML = 1.02 V),
BUT not when the output is HIGH (NMH = 0.69 V).
• Example: For the worst case HIGH: VOH = 3.84 V, if noise drops the voltage by 1 V, then
the input at the receiver becomes: V2 = (3.84 – 1V) = 2.84 V. This is less than acceptable
input HIGH value VIH = 3.15 V (i.e. V2 < VIH).
Page 10
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
DC Transfer Characteristics
(a) Ideal Buffer: (b) Real Buffer:
V(Y) V(Y)
A Y
Unity Gain
Points
VOL Slope = 1
DC Transfer Characteristics
A Y
Page 12
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
DC Transfer Characteristics
Ideal Inverter: Real Inverter:
DC Transfer Characteristics
VDD
GND
Page 14
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
– Save power
Page 15
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
– Save power
Page 17
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Power consumption
Page 18
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Dynamic Power
Pdynamic = ½CVDD2f
Page 19
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Static Power
Page 20
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Power Consumption
Example 2.2
• Estimate the power consumption of a mobile phone of a student who is playing a
game with the following characteristics:
– VDD = 0.8 V
– C = 5 nF
– f = 2 GHz
– IDD = 10 mA
Page 21
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Power Consumption
Exercise 2.1
• Suppose a cellphone has a 6 watt-hour (W-hr) battery and operates at 1.2 V. When
it is in use, it operates at 300MHz and the average amount of capacitance in the
chip switching at any given time is 10 nF (10−8 Farads). When is use, it broadcasts 3
W of power out of its antenna. When not in use, the dynamic power drops to
almost zero because the signal processing is turned off. But the phone also draws 40
mA of quiescent current whether it is in use or not.
Page 22
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Summary
• Noise affects the operation of digital circuits, but noise
margin allows for reliable operation.
Page 23
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
• Boolean Algebra:
Page 24
ELEN2021 : Microprocessors
Digital Logic and Design
Introduction to Digital Logic
Thank you!
Page 25