Академический Документы
Профессиональный Документы
Культура Документы
CS 4341
• Background
• The Game Plan
• The Art of Managing Complexity
• The Digital Abstraction
• Number Systems
• Logic Gates
• Logic Levels
• CMOS Transistors
• Power Consumption
• Abstraction
• Discipline
• The Three –Y’s
– Hierarchy
– Modularity
– Regularity
Application
• Hiding details when Software
programs
instructions
Architecture
registers
adders
Logic
memories
Analog amplifiers
Circuits filters
transistors
Devices
diodes
Physics electrons
• Hierarchy
– A system divided into modules and submodules
• Modularity
– Having well-defined functions and interfaces
• Regularity
– Encouraging uniformity, so modules can be easily
reused
• Hierarchy
– Three main modules:
lock, stock, and
barrel
– Submodules of lock:
hammer, flint,
frizzen, etc.
• Modularity
– Function of stock:
mount barrel and
lock
– Interface of stock:
length and location
of mounting pins
• Regularity
– Interchangeable
parts
Copyright © 2007 Elsevier 1-<11>
The Digital Abstraction
• Designed by Charles
Babbage from 1834 –
1871
• Considered to be the first
digital computer
• Built from mechanical
gears, where each gear
represented a discrete
value (0-9)
• Babbage died before it
was finished
• Decimal numbers
1000's column
10's column
1's column
100's column
5374 10 =
• Binary numbers
8's column
2's column
1's column
4's column
11012 =
• Decimal numbers
1000's column
10's column
1's column
100's column
• Binary numbers
8's column
2's column
1's column
4's column
11012 = 1 × 23 + 1 × 22 + 0 × 21 + 1 × 20 = 1310
one one no one
eight four two one
• 20 = • 28 =
• 21 = • 29 =
• 22 = • 210 =
• 23 = • 211 =
• 24 = • 212 =
• 25 = • 213 =
• 26 = • 214 =
• 27 = • 215 =
• 20 = 1 • 28 = 256
• 21 = 2 • 29 = 512
• 22 = 4 • 210 = 1024
• 23 = 8 • 211 = 2048
• 24 = 16 • 212 = 4096
• 25 = 32 • 213 = 8192
• 26 = 64 • 214 = 16384
• 27 = 128 • 215 = 32768
• Handy to memorize up to 29
Copyright © 2007 Elsevier 1-<19>
Number Conversion
• Base 16
• Shorthand to write long binary numbers
• Bits 10010110
most least
significant significant
bit bit
byte
• Bytes & Nibbles
10010110
nibble
• Bytes CEBF9AD7
most least
significant significant
byte byte
Copyright © 2007 Elsevier 1-<28>
Powers of Two
• Decimal 11 carries
3734
+ 5168
8902
• Binary 11 carries
1011
+ 0011
1110
111
• Add the following 1011
4-bit binary + 0110
numbers 10001
Overflow!
Copyright © 2007 Elsevier 1-<34>
Overflow
• Sign/Magnitude Numbers
• Two’s Complement Numbers
i =0
i =0
• Problems:
– Addition doesn’t work, for example -6 + 6:
1110
+ 0110
10100 (wrong!)
– Two representations of 0 (± 0):
1000
0000
Copyright © 2007 Elsevier 1-<39>
Two’s Complement Numbers
1110
+ 0011
Copyright © 2007 Elsevier 1-<47>
Two’s Complement Addition
• Example 1:
– 4-bit representation of 3 = 0011
– 8-bit sign-extended value: 00000011
• Example 2:
– 4-bit representation of -5 = 1011
– 8-bit sign-extended value: 11111011
• Example 1:
– 4-bit value = 00112 = 310
– 8-bit zero-extended value: 00000011 = 310
• Example 2:
– 4-bit value = 1011 = -510
– 8-bit zero-extended value: 00001011 = 1110
Unsigned 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
1000 1001 1010 1011 1100 1101 1110 1111 0000 0001 0010 0011 0100 0101 0110 0111 Two's Complement
0000
1111 1110 1101 1100 1011 1010 1001
1000
0001 0010 0011 0100 0101 0110 0111 Sign/Magnitude
NOT BUF
A Y A Y
Y=A Y=A
A Y A Y
0 1 0 0
1 0 1 1
NOT BUF
A Y A Y
Y=A Y=A
A Y A Y
0 1 0 0
1 0 1 1
AND OR
A A
Y Y
B B
Y = AB Y=A+B
A B Y A B Y
0 0 0 0 0 0
0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
AND OR
A A
Y Y
B B
Y = AB Y=A+B
A B Y A B Y
0 0 0 0 0 0
0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
A B Y A B Y A B Y A B Y
0 0 0 0 0 1 0 0 1 0 0
0 1 1 0 1 1 0 1 0 0 1
1 0 1 1 0 1 1 0 0 1 0
1 1 0 1 1 0 1 1 0 1 1
A B Y A B Y A B Y A B Y
0 0 0 0 0 1 0 0 1 0 0 1
0 1 1 0 1 1 0 1 0 0 1 0
1 0 1 1 0 1 1 0 0 1 0 0
1 1 0 1 1 0 1 1 0 1 1 1
NOR3 AND4
A A
B Y
B Y C
C D
Y = A+B+C Y = ABCD
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
NOR3 AND4
A
A B
B Y C Y
C D
Y = A+B+C Y = ABCD
A B C Y A B C Y
0 0 0 1 0 0 0 0
0 0 1 0 0 0 1 0
0 1 0 0 0 1 0 0
0 1 1 0 0 1 1 0
1 0 0 0 1 0 0 0
1 0 1 0 1 0 1 0
1 1 0 0 1 1 0 0
1 1 1 0
1 1 1 1
5V 4.5 V
Copyright © 2007 Elsevier 1-<66>
The Static Discipline
Driver Receiver
Unity Gain
Points
VOL Slope = 1
A Y
V(Y)
Output Characteristics Input Characteristics
V DD VDD
V OH
VO H
NMH
Forbidden VIH
Zone VIL
V(A)
0
V IL V IH V DD GND
g OFF ON
s s s
Copyright © 2007 Elsevier 1-<74>
Robert Noyce, 1927 - 1990
Si Si Si Si Si Si Si Si Si
- +
+ -
Si Si Si Si As Si Si B Si
Si Si Si Si Si Si Si Si Si
n n
p substrate
gate
source drain
Copyright © 2007 Elsevier 1-<77>
nMOS
Transistors: nMOS
+++++++
-------
n n n n
channel
p substrate p substrate
GND GND
p p
n
substrate
gate
source drain
Copyright © 2007 Elsevier 1-<79>
Transistor Function
g=0 g=1
d d d
nMOS g OFF
ON
s s s
s s s
pMOS g OFF
ON
d d d
nMOS
pull-down
network
NOT VDD
A Y
P1
Y=A A Y
N1
A Y
0 1
1 0
GND
A P1 N1 Y
0
1
Copyright © 2007 Elsevier 1-<82>
CMOS Gates: NOT Gate
NOT VDD
A Y
P1
Y=A A Y
N1
A Y
0 1
1 0
GND
A P1 N1 Y
0 ON OFF 1
1 OFF ON 0
Copyright © 2007 Elsevier 1-<83>
CMOS Gates: NAND Gate
NAND
A P2 P1
Y Y
B
A N1
Y = AB
B N2
A B Y
0 0 1
0 1 1
1 0 1
1 1 0 A B P1 P2 N1 N2 Y
0 0
0 1
1 0
Copyright © 2007 Elsevier
1 1 1-<84>
CMOS Gates: NAND Gate
NAND
A P2 P1
Y Y
B
A N1
Y = AB
B N2
A B Y
0 0 1
0 1 1
1 0 1
1 1 0 A B P1 P2 N1 N2 Y
0 0 ON ON OFF OFF 1
0 1 ON OFF OFF ON 1
1 0 OFF ON ON OFF 1
Copyright © 2007 Elsevier
1 1 OFF OFF ON ON 0 1-<85>
CMOS Gate Structure
pMOS
pull-up
network
inputs
output
nMOS
pull-down
network
A
B
C
Y
A
Y
B
Y
inputs nMOS
pull-down
network
Pseudo-nMOS NOR4
weak
Y
A B C D
• Cofounded Intel in
1968 with Robert
Noyce.
• Moore’s Law: the
number of transistors
on a computer chip
doubles every year
(observed in 1965)
• Since 1975, transistor
counts have doubled
every two years.
Copyright © 2007 Elsevier 1-<94>
Moore’s Law
• “If the automobile had followed the same development cycle as the
computer, a Rolls-Royce would today cost $100, get one million miles
to the gallon, and explode once a year . . .”
– Robert Cringley
Copyright © 2007 Elsevier 1-<95>
Power Consumption
Pdynamic = ½CVDD2f
Pstatic = IDDVDD
P = ½CVDD2f + IDDVDD
= ½(20 nF)(1.2 V)2(1 GHz) +
(20 mA)(1.2 V)
= 14.4 W
Copyright © 2007 Elsevier 1-<100>