Professional Documents
Culture Documents
2 - Beneath The Digital
2 - Beneath The Digital
Dr Cesar Ortega-Sanchez
Content
The digital abstraction Beneath the digital abstraction Supply voltage Logic levels Noise margins DC transfer characteristics CMOS logic CMOS transistors CMOS gates Power consumption
Analogue world
Digital signals
Digital signals are discrete both in time and in amplitude.
Amplitude
1111 1110 1101 1100 1011 1010 1001 values 1000 0111 0110 0101 0100 0011 0010 0001 0000
2n
t
1. 2. 3. 4. We have an analogue, continuous signal We make time discrete (samples) We make the amplitude discrete. Digital signals are samples of the corresponding continuous one.
Logic levels
The mapping of a continuous variable onto a discrete binary variable is done by defining logic levels.
Noise
Noise is anything that degrades the signal E.g., resistance, power supply noise, coupling to neighboring wires, etc. Example: a gate (driver) could output a 5 volt signal but, because of resistance in a long wire, the signal could arrive at the receiver with a degraded value, for example, 4.5 volts
Noise Margins
Noise margin is the amount of noise that could be added to a worstcase output such that the signal can still be interpreted as valid input. NML = VIL- VOL NMH = VOH - VIH
Advanced Digital Design 320 Dr. Cesar Ortega-Sanchez
DC transfer characteristics
To understand the limits of the digital abstraction, we must delve into the analogue behaviour of a gate. The DC transfer characteristics of a gate describe the output voltages as a function of the input voltage.
Transistors
Logic gates are usually built out of transistors Transistor is a three-ported, voltage-controlled switch Two of the ports are connected depending on the voltage on the third port For example, in the switch below the two terminals (d and s) are connected (ON) only when the third terminal (g) is 1
g=0 d g s
g=1 d
d OFF s
ON s
The two main types of transistors are bipolar transistors (BJT) and metal-oxide-semiconductor field effect transistors (MOSFETS).
Advanced Digital Design 320 Dr. Cesar Ortega-Sanchez
Polysilicon (used to be metal) gate Oxide (silicon dioxide) insulator Doped silicon
drain
gate
source
Polysilicon SiO2
gate
drain
Polysilicon SiO2
n substrate
p n gate source
pMOS
p substrate
drain
nMOS
source gate
drain
source
gate VDD
drain
n substrate
g=1 d ON s s OFF d
inputs output
nMOS pull-down network
This arrangement is called Complementary MOS or CMOS. CMOS processes are used to build the vast majority of all transistors fabricated today.
VDD A P1 Y N1 GND
A 0 1
P1 ON OFF
N1 OFF ON
Y 1 0
Advanced Digital Design 320 Dr. Cesar Ortega-Sanchez
NAND
A B Y = AB A 0 0 1 1 B 0 1 0 1 Y 1 1 1 0 Y
P2 A B
P1 Y N1 N2
A B 0 0 0 1 1 0 1 1
P1 ON ON OFF OFF
P2 ON OFF ON OFF
N1 OFF OFF ON ON
N2 OFF ON OFF ON
Y 1 1 1 0
Other gates
What is the logic function implemented by this 3-input gate?
A B C
A B C Y
0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1
Suggested activities
Think about the analogue nature of digital gates. Why is it important to know about it? Make a list of all the new concepts covered in this lecture and try to create your own definition for each one of them. Research the noise margins of modern, low-voltage logic families. Play the game Engineer of the People, available in: http://jayisgames.com/archives/2009/03/engineer_of_the_people.php