SlideShare a Scribd company logo
1 of 58
Computer Architecture Slide 1
Computer Architecture Slide 2
1 Combinational Digital Circuits
First of two chapters containing a review of digital design:
• Combinational, or memoryless, circuits in Chapter 1
• Sequential circuits, with memory, in Chapter 2
Topics in This Chapter
1.1 Signals, Logic Operators, and Gates
1.2 Boolean Functions and Expressions
1.3 Designing Gate Networks
1.4 Useful Combinational Parts
1.5 Programmable Combinational Parts
1.6 Timing and Circuit Considerations
Computer Architecture Slide 3
1.1 Signals, Logic Operators, and Gates
Figure 1.1 Some basic elements of digital logic circuits, with
operator signs used in this book highlighted.
x  y

AND
Name XOR
OR
NOT
Graphical
symbol
x  y
Operator
sign and
alternate(s)
x  y
x  y
xy
x  y
x 
x or x
_
x y or xy
Arithmetic
expression
x  y 2xy
x  y  xy
1  x
Output
is 1 iff:
Input is 0
Both inputs
are 1s
At least one
input is 1
Inputs are
not equal
Add: 1 + 1 = 10
Computer Architecture Slide 4
The Arithmetic Substitution Method
z = 1 – z NOT converted to arithmetic form
xy AND same as multiplication
(when doing the algebra, set zk = z)
x  y = x + y  xy OR converted to arithmetic form
x  y = x + y  2xy XOR converted to arithmetic form
Example: Prove the identity xyz  x  y  z ? 1
LHS = [xyz  x]  [y  z]
= [xyz + 1 – x – (1 – x)xyz]  [1 – y + 1 – z – (1 – y)(1 – z)]
= [xyz + 1 – x]  [1 – yz]
= (xyz + 1 – x) + (1 – yz) – (xyz + 1 – x)(1 – yz)
= 1 + xy2z2 – xyz
= 1 = RHS This is addition,
not logical OR
Oct. 2014 Computer Architecture, Background and Motivation Slide 5
Variations in Gate Symbols
Figure 1.2 Gates with more than two inputs and/or with
inverted signals at input or output.
OR NOR
NAND
AND XNOR
Bubble = Inverter
Oct. 2014 Computer Architecture, Background and Motivation Slide 6
Gates as Control Elements
Figure 1.3 An AND gate and a tristate buffer act as controlled switches
or valves. An inverting buffer is logically the same as a NOT gate.
Enable/Pass signal
e
Data in
x
Data out
x or 0
Data in
x
Enable/Pass signal
e
Data out
x or “high impedance”
(a) AND gate for controlled transfer (b) Tristate buffer
(c) Model for AND switch.
x
e
No data
or x
0
1
x
e
ex
0
1
0
(d) Model for tristate buffer.
Computer Architecture Slide 7
Wired OR and Bus Connections
Figure 1.4 Wired OR allows tying together of several
controlled signals.
e
e
e Data out
(x, y, z,
or high
impedance)
(b) Wired OR of tristate outputs
e
e
e
Data out
(x, y, z, or 0)
(a) Wired OR of product terms
z
x
y
z
x
y
z
x
y
z
x
y
Oct. 2014 Computer Architecture, Background and Motivation Slide 8
Control/Data Signals and Signal Bundles
Figure 1.5 Arrays of logic gates represented by a single gate symbol.
/
8
/
8
/
8
Compl
/
32
/
k
/
32
Enable
/
k
/
k
/
k
(b) 32 AND gates (c) k XOR gates
(a) 8 NOR gates
Oct. 2014 Computer Architecture, Background and Motivation Slide 9
1.2 Boolean Functions and Expressions
Ways of specifying a logic function
 Truth table: 2n row, “don’t-care” in input or output
 Logic expression: w (x  y  z), product-of-sums,
sum-of-products, equivalent expressions
 Word statement: Alarm will sound if the door
is opened while the security system is engaged,
or when the smoke detector is triggered
 Logic circuit diagram: Synthesis vs analysis
Oct. 2014 Computer Architecture, Background and Motivation Slide 10
Table 1.2 Laws (basic identities) of Boolean algebra.
Name of law OR version AND version
Identity x  0 = x x 1 = x
One/Zero x  1 = 1 x 0 = 0
Idempotent x  x = x x x = x
Inverse x  x  = 1 x x  = 0
Commutative x  y = y  x x y = y x
Associative (x  y)  z = x  (y  z) (x y) z = x (y z)
Distributive x  (y z) = (x  y) (x  z) x (y  z) = (x y)  (x z)
DeMorgan’s (x  y) = x  y  (x y) = x   y 
Manipulating Logic Expressions
Computer Architecture Slide 11
Proving the Equivalence of Logic Expressions
Example 1.1
 Truth-table method: Exhaustive verification
 Arithmetic substitution
x  y = x + y  xy
x  y = x + y  2xy
 Case analysis: two cases, x = 0 or x = 1
 Logic expression manipulation
Example: x  y ? xyxy
x + y – 2xy ? (1–x)y + x(1–y) – (1–x)yx(1–y)
Computer Architecture Slide 12
1.3 Designing Gate Networks
 AND-OR, NAND-NAND, OR-AND, NOR-NOR
 Logic optimization: cost, speed, power dissipation
(a) AND-OR circuit
z
x
y
x
y
z
(b) Intermediate circuit (c) NAND-NAND equivalent
z
x
y
x
y
z
z
x
y
x
y
z
Figure 1.6 A two-level AND-OR circuit and two equivalent circuits.
(a  b  c) = abc
Computer Architecture Slide 13
Seven-Segment Display of Decimal Digits
Figure 1.7 Seven-segment display
of decimal digits. The three open
segments may be optionally used.
The digit 1 can be displayed in two
ways, with the more common right-
side version shown.
Optional segment
I swear I didn’t use a calculator!
Slide 14
BCD-to-Seven-Segment Decoder
Example 1.2
Figure 1.8 The logic circuit that generates the enable signal for the
lowermost segment (number 3) in a seven-segment display unit.
x3
x2
x1
x0
Signals to
enable or
turn on the
segments
4-bit input in [0, 9]
e0
e5
e6
e4
e2
e1
e3
1
2
4
5
0
3
6
Slide 15
1.4 Useful Combinational Parts
 High-level building blocks
 Much like prefab parts used in building a house
 Arithmetic components (adders, multipliers, ALUs)
will be covered in Part III
 Here we cover three useful parts:
multiplexers, decoders/demultiplexers, encoders
Slide 16
Multiplexers
Figure 1.9 Multiplexer (mux), or selector, allows one of several inputs
to be selected and routed to output depending on the binary value of a
set of selection or address signals provided to it.
x
x
y
z
1
0
x
x
z
y
x
x
y
z
1
0
y
/
32
/
32
/
32 1
0
1
0
3
2
z
y1 0
1
0
1
0
y1
y0
y0
(a) 2-to-1 mux (b) Switch view (c) Mux symbol
(d) Mux array (e) 4-to-1 mux with enable (e) 4-to-1 mux design
0
1
y
1
1
1
0
0
0
x
x
x
x
1
0
2
3
x
x
x
x
0
1
2
3
z
e (Enable)
1 0
x2
Computer Architecture, Background and Motivation Slide 17
Decoders/Demultiplexers
Figure 1.10 A decoder allows the selection of one of 2a options using
an a-bit address as input. A demultiplexer (demux) is a decoder that
only selects an output if its enable signal is asserted.
y1
y0
x0
x3
x2
x1
1
0
3
2
y1
y0
x0
x3
x2
x1
e
1
0
3
2
y1
y0
x0
x3
x2
x1
(a) 2-to-4 decoder (b) Decoder symbol
(c) Demultiplexer, or
decoder with “enable”
(Enable)
1
1 0
1
1 0
1
1
1
Oct. 2014
Slide 18
Encoders
Figure 1.11 A 2a-to-a encoder outputs an a-bit binary number
equal to the index of the single 1 among its 2a inputs.
(a) 4-to-2 encoder (b) Encoder symbol
x0
x3
x2
x1
y1
y0
1
0
3
2
x0
x3
x2
x1
y1
y0
1 0
1
0
0
0
Slide 19
1.5 Programmable Combinational Parts
 Programmable ROM (PROM)
 Programmable array logic (PAL)
 Programmable logic array (PLA)
A programmable combinational part can do the job of
many gates or gate networks
Programmed by cutting existing connections (fuses)
or establishing new connections (antifuses)
Slide 20
PROMs
Figure 1.12 Programmable connections and their use in a PROM.
. . .
.
.
.
Inputs
Outputs
(a) Programmable
OR gates
w
x
y
z
(b) Logic equivalent
of part a
w
x
y
z
(c) Programmable read-only
memory (PROM)
Decoder
Slide 21
PALs and PLAs
Figure 1.13 Programmable combinational logic: general structure and
two classes known as PAL and PLA devices. Not shown is PROM with
fixed AND array (a decoder) and programmable OR array.
AND
array
(AND
plane)
OR
array
(OR
plane)
. . .
. . .
.
.
.
Inputs
Outputs
(a) General programmable
combinational logic
(b) PAL: programmable
AND array, fixed OR array
8-input
ANDs
(c) PLA: programmable
AND and OR arrays
6-input
ANDs
4-input
ORs
Slide 22
1.6 Timing and Circuit Considerations
 Gate delay d: a fraction of, to a few, nanoseconds
 Wire delay, previously negligible, is now important
(electronic signals travel about 15 cm per ns)
 Circuit simulation to verify function and timing
Changes in gate/circuit output, triggered by changes in its
inputs, are not instantaneous
Slide 23
Glitching
Figure 1.14 Timing diagram for a circuit that exhibits glitching.
x = 0
y
z
a = x  y
f = a  z
2d 2d
Using the PAL in Fig. 1.13b to implement f = x  y  z
AND-OR
(PAL)
AND-OR
(PAL)
x
y
z
a
f
Slide 24
CMOS Transmission Gates
Figure 1.15 A CMOS transmission gate and its use in building
a 2-to-1 mux.
z
x
x
0
1
(a) CMOS transmission gate:
circuit and symbol
(b) Two-input mux built of two
transmission gates
TG
TG
TG
y
P
N
Slide 25
2 Digital Circuits with Memory
Second of two chapters containing a review of digital design:
• Combinational (memoryless) circuits in Chapter 1
• Sequential circuits (with memory) in Chapter 2
Topics in This Chapter
2.1 Latches, Flip-Flops, and Registers
2.2 Finite-State Machines
2.3 Designing Sequential Circuits
2.4 Useful Sequential Parts
2.5 Programmable Sequential Parts
2.6 Clocks and Timing of Events
Slide 26
2.1 Latches, Flip-Flops, and Registers
Figure 2.1 Latches, flip-flops, and registers.
R
Q
Q
S
D
Q
Q
C
Q
Q
D
C
(a) SR latch (b) D latch
Q
C Q
D
Q
C Q
D
(e) k-bit register
(d) D flip-flop symbol
(c) Master-slave D flip-flop
Q
C Q
D
FF
/ /
k k
Q
C Q
D
FF
R
S
Slide 27
Latches vs Flip-Flops
Figure 2.2 Operations of D latch and
negative-edge-triggered D flip-flop.
D
C
D latch: Q
D FF: Q
Setup
time
Setup
time
Hold
time
Hold
time
D
C
Q
Q
D
C
Q
Q
FF
Slide 28
Reading and Modifying FFs in the Same Cycle
Figure 2.3 Register-to-register operation with edge-triggered
flip-flops.
/ /
k k
Q
C Q
D
FF
/ /
k k
Q
C Q
D
FF
Computation module
(combinational logic)
Clock
Propagation delay
Combinational delay
Oct. 2014 Computer Architecture, Background and Motivation Slide 29
2.2 Finite-State Machines
Example 2.1
Figure 2.4 State table and state diagram for a vending
machine coin reception unit.
Dime
Dime
Quarter
Dime
Quarter
Dime
Quarter
Dime
Quarter
Reset
Reset
Reset
Reset
Reset
Start
Quarter
S00
S10
S20
S25
S30
S35
S10
S25
S00
S00
S00
S00
S00
S00
S20
S35
S35
S35
S35
S35
S35
S30
S35
S35
------- Input -------
Dime
Quarter
Reset
Current
state
S00
S35
is the initial state
is the final state
Next state
Dime
Quarter
S00
S10
S20
S25
S30
S35
Slide 30
Sequential Machine Implementation
Figure 2.5 Hardware realization of Moore and Mealy
sequential machines.
Next-state
logic
State register
/
n
/
m
/
l
Inputs Outputs
Next-state
excitation
signals
Present
state
Output
logic
Only for Mealy machine
Slide 31
2.3 Designing Sequential Circuits
Example 2.3
Figure 2.7 Hardware realization of a coin reception unit (Example 2.3).
Output
Q
C Q
D
e
Inputs
Q
C Q
D
Q
C Q
D
FF2
FF1
FF0
q
d
Quarter in
Dime in
Final
state
is 1xx
Slide 32
2.4 Useful Sequential Parts
 High-level building blocks
 Much like prefab closets used in building a house
 Other memory components will be covered in
Chapter 17 (SRAM details, DRAM, Flash)
 Here we cover three useful parts:
shift register, register file (SRAM basics), counter
Slide 33
Shift Register
Figure 2.8 Register with single-bit left shift and parallel load
capabilities. For logical left shift, serial data in line is connected to 0.
Parallel data in
/
k
/
k
/
k
Shift
Q
C Q
D
FF
1
0
Serial data in
/
k – 1 LSBs
Load
Parallel data out
Serial data out
MSB
0 1 0 0 1 1 1 0
Slide 34
Register File and FIFO
Figure 2.9 Register file with random access and FIFO.
Decoder
/
k
/
k
/
h
Write
enable
Read address 0
Read address 1
Read
data 0
Write
data
Read
enable
2 k-bit registers
h
/
k
/
k
/
k
/
k
/
k
/
k
/
k
/
h
Write
address
Muxes
Read
data 1
/
k
/
h
/
h
/
h
/
k
/
h
Write enable
Read
addr 0
/
k
/
k
Read
addr 1
Write
data
Write
addr
Read
data 0
Read enable
Read
data 1
(a) Register file with random access
(b) Graphic symbol
for register file
Q
C Q
D
FF
/
k
Q
C Q
D
FF
Q
C Q
D
FF
Q
C Q
D
FF
/
k
Push
/
k
Input Output
Pop
Full
Empty
(c) FIFO symbol
Slide 35
SRAM
Figure 2.10 SRAM memory is simply a large, single-port register file.
Column mux
Row
decoder
/
h
Address
Square or
almost square
memory matrix
Row buffer
Row
Column
g bits data out
/
g
/
h
Write enable
/
g
Data in
Address
Data out
Output
enable
Chip
select
.
.
.
. . .
. . .
(a) SRAM block diagram (b) SRAM read mechanism
Slide 36
Binary Counter
Figure 2.11 Synchronous binary counter with initialization capability.
Count register
Mux
Incrementer
0
Input
Load
IncrInit
x + 1
x
0 1
1
c in
cout
Slide 37
2.5 Programmable Sequential Parts
 Programmable array logic (PAL)
 Field-programmable gate array (FPGA)
 Both types contain macrocells and interconnects
A programmable sequential part contain gates and
memory elements
Programmed by cutting existing connections (fuses)
or establishing new connections (antifuses)
Slide 38
PAL and FPGA
Figure 2.12 Examples of programmable sequential logic.
(a) Portion of PAL with storable output (b) Generic structure of an FPGA
8-input
ANDs
D
C
Q
Q
FF
Mux
Mux
0 1
0 1
I/O blocks
Configurable
logic block
Programmable
connections
CLB
CLB
CLB
CLB
Slide 39
2.6 Clocks and Timing of Events
Clock is a periodic signal: clock rate = clock frequency
The inverse of clock rate is the clock period: 1 GHz  1 ns
Constraint: Clock period  tprop + tcomb + tsetup + tskew
Figure 2.13 Determining the required length of the clock period.
Other inputs
Combinational
logic
Clock period
FF1 begins
to change
FF1 change
observed
Must be wide enough
to accommodate
worst-case delays
Clock1 Clock2
Q
C Q
D
FF2
Q
C Q
D
FF1
Slide 40
Synchronization
Figure 2.14 Synchronizers are used to prevent timing problems
arising from untimely changes in asynchronous signals.
Asynch
input
Asynch
input
Synch
version
Synch
version
Asynch
input
Synch
version
Clock
(a) Simple synchronizer (b) Two-FF synchronizer
(c) Input and output waveforms
Q
C Q
D
FF
Q
C Q
D
FF2
Q
C Q
D
FF1
Slide 41
Level-Sensitive Operation
Figure 2.15 Two-phase clocking with nonoverlapping clock signals.
Combi-
national
logic
1

1
Clock period

Q
C Q
D
Latch
1

Q
C Q
D
Latch
Other inputs
Combi-
national
logic
2

2

Clocks with
nonoverlapping
highs
Other inputs
Q
C Q
Latch
D
Slide 42
3 Computer System Technology
Interplay between architecture, hardware, and software
• Architectural innovations influence technology
• Technological advances drive changes in architecture
Topics in This Chapter
3.1 From Components to Applications
3.2 Computer Systems and Their Parts
3.3 Generations of Progress
3.4 Processor and Memory Technologies
3.5 Peripherals, I/O, and Communications
3.6 Software Systems and Applications
Slide 43
3.1 From Components to Applications
Figure 3.1 Subfields or views in computer system engineering.
High-
level
view
Computer
designer
Circuit
designer
Application
designer
System
designer
Logic
designer
Software Hardware
Computer organization
Low-
level
view
Application
domains
Electronic
components
Computer architecture
Slide 44
What Is (Computer) Architecture?
Figure 3.2 Like a building architect, whose place at the
engineering/arts and goals/means interfaces is seen in this diagram, a
computer architect reconciles many conflicting or competing demands.
Architect
Interface
Interface
Goals
Means
Arts
Engineering
Client’s taste:
mood, style, . . .
Client’s requirements:
function, cost, . . .
The world of arts:
aesthetics, trends, . . .
Construction technology:
material, codes, . . .
Slide 45
3.2 Computer Systems and Their Parts
Figure 3.3 The space of computer systems, with what we normally
mean by the word “computer” highlighted.
Computer
Analog
Fixed-function Stored-program
Electronic Nonelectronic
General-purpose Special-purpose
Number cruncher Data manipulator
Digital
Slide 46
Price/Performance Pyramid
Figure 3.4 Classifying computers by computational
power and price range.
Embedded
Personal
Workstation
Server
Mainframe
Super $Millions
$100s Ks
$10s Ks
$1000s
$100s
$10s
Differences in scale,
not in substance
Slide 47
Automotive Embedded Computers
Figure 3.5 Embedded computers are ubiquitous, yet invisible. They
are found in our automobiles, appliances, and many other places.
Engine
Impact sensors
Navigation &
entertainment
Central
controller
Brakes
Airbags
Slide 48
Personal Computers and Workstations
Figure 3.6 Notebooks, a common class of portable computers,
are much smaller than desktops but offer substantially the same
capabilities. What are the main reasons for the size difference?
Slide 49
Digital Computer Subsystems
Figure 3.7 The (three, four, five, or) six main units of a digital
computer. Usually, the link unit (a simple bus or a more elaborate
network) is not explicitly included in such diagrams.
Memory
Link Input/Output
To/from network
Processor
Control
Datapath
Input
Output
CPU I/O
Slide 50
3.3 Generations of Progress
Table 3.2 The 5 generations of digital computers, and their ancestors.
Generation
(begun)
Processor
technology
Memory
innovations
I/O devices
introduced
Dominant
look & fell
0 (1600s) (Electro-)
mechanical
Wheel, card Lever, dial,
punched card
Factory
equipment
1 (1950s) Vacuum tube Magnetic
drum
Paper tape,
magnetic tape
Hall-size
cabinet
2 (1960s) Transistor Magnetic
core
Drum, printer,
text terminal
Room-size
mainframe
3 (1970s) SSI/MSI RAM/ROM
chip
Disk, keyboard,
video monitor
Desk-size
mini
4 (1980s) LSI/VLSI SRAM/DRAM Network, CD,
mouse,sound
Desktop/
laptop micro
5 (1990s) ULSI/GSI/
WSI, SOC
SDRAM,
flash
Sensor/actuator,
point/click
Invisible,
embedded
Slide 51
Figure 3.8 The manufacturing process for an IC part.
IC Production and Yield
15-30
cm
30-60 cm
Silicon
crystal
ingot
Slicer
Processing:
20-30 steps
Blank wafer
with defects
x x
x x x
x x
x x
x x
0.2 cm
Patterned wafer
(100s of simple or scores
of complex processors)
Dicer
Die
~1 cm
Good
die
~1 cm
Die
tester
Microchip
or other part
Mounting
Part
tester
Usable
part
to ship
Slide 52
Figure 3.9 Visualizing the dramatic decrease in yield
with larger dies.
Effect of Die Size on Yield
120 dies, 109 good 26 dies, 15 good
Die yield =def (number of good dies) / (total number of dies)
Die yield = Wafer yield  [1 + (Defect density  Die area) / a]–a
Die cost = (cost of wafer) / (total number of dies  die yield)
= (cost of wafer)  (die area / wafer area) / (die yield)
Slide 53
3.4 Processor and Memory Technologies
Figure 3.11 Packaging of processor, memory, and other components.
PC board
Backplane
Memory
CPU
Bus
Connector
(b) 3D packaging of the future
(a) 2D or 2.5D packaging now common
Stacked layers
glued together
Interlayer connections
deposited on the
outside of the stack
Die
Slide 54
Figure 3.10 Trends in processor performance and DRAM
memory chip capacity (Moore’s law).
Moore’s
Law
1Mb
1990
1980 2000 2010
kIPS
MIPS
GIPS
TIPS
Processor
performance
Calendar year
80286
68000
80386
80486
68040
Pentium
Pentium II
R10000
1.6 / yr
10 / 5 yrs
2 / 18 mos
64Mb
4Mb
64kb
256kb
256Mb
1Gb
16Mb
4 / 3 yrs
Processor
Memory
kb
Mb
Gb
Tb
Memory
chip
capacity
Slide 55
Pitfalls of Computer Technology Forecasting
“DOS addresses only 1 MB of RAM because we cannot
imagine any applications needing more.” Microsoft, 1980
“640K ought to be enough for anybody.” Bill Gates, 1981
“Computers in the future may weigh no more than 1.5
tons.” Popular Mechanics
“I think there is a world market for maybe five
computers.” Thomas Watson, IBM Chairman, 1943
“There is no reason anyone would want a computer in
their home.” Ken Olsen, DEC founder, 1977
“The 32-bit machine would be an overkill for a personal
computer.” Sol Libes, ByteLines
Slide 56
3.5 Input/Output and Communications
Figure 3.12 Magnetic and optical disk memory units.
(a) Cutaway view of a hard disk drive (b) Some removable storage media
Typically
2-9 cm
Floppy
disk
CD-ROM
Magnetic
tape
cartridge
. .
.
.
.
.
.
.
Slide 57
Figure 3.13 Latency and bandwidth characteristics of different
classes of communication links.
Communication
Technologies
3
6
9
12
9 6 3 3
Bandwidth
(b/s)
Latency (s)
10
10
10
10
10 10 10 1 10
Processor
bus
I/O
network
System-area
network
(SAN) Local-area
network
(LAN)
Metro-area
network
(MAN)
Wide-area
network
(WAN)
Geographically distributed
Same geographic location
(ns) (s) (ms) (min) (h)
Slide 58
3.6 Software Systems and Applications
Figure 3.15 Categorization of software, with examples in each class.
Software
Application:
word processor,
spreadsheet,
circuit simulator,
. . .
Operating system Translator:
MIPS assembler,
C compiler,
. . .
System
Manager:
virtual memory,
security,
file system,
. . .
Coordinator:
scheduling,
load balancing,
diagnostics,
. . .
Enabler:
disk driver,
display driver,
printing,
. . .

More Related Content

What's hot

Csr2011 june15 12_00_davydow
Csr2011 june15 12_00_davydowCsr2011 june15 12_00_davydow
Csr2011 june15 12_00_davydow
CSR2011
 

What's hot (19)

Lcdf4 chap 03_p2
Lcdf4 chap 03_p2Lcdf4 chap 03_p2
Lcdf4 chap 03_p2
 
Ch1.number systems
Ch1.number systemsCh1.number systems
Ch1.number systems
 
Intro to matlab
Intro to matlabIntro to matlab
Intro to matlab
 
Digital logic circuits
Digital  logic  circuitsDigital  logic  circuits
Digital logic circuits
 
Programming with matlab session 6
Programming with matlab session 6Programming with matlab session 6
Programming with matlab session 6
 
Logic Design 2009
Logic Design 2009Logic Design 2009
Logic Design 2009
 
Csr2011 june15 12_00_davydow
Csr2011 june15 12_00_davydowCsr2011 june15 12_00_davydow
Csr2011 june15 12_00_davydow
 
Chapter1
Chapter1Chapter1
Chapter1
 
Chap08alg
Chap08algChap08alg
Chap08alg
 
Deep Learning & Tensor flow: An Intro
Deep Learning & Tensor flow: An IntroDeep Learning & Tensor flow: An Intro
Deep Learning & Tensor flow: An Intro
 
Matlab Graphics Tutorial
Matlab Graphics TutorialMatlab Graphics Tutorial
Matlab Graphics Tutorial
 
Predicate-Preserving Collision-Resistant Hashing
Predicate-Preserving  Collision-Resistant HashingPredicate-Preserving  Collision-Resistant Hashing
Predicate-Preserving Collision-Resistant Hashing
 
DESIGN OF COMBINATIONAL LOGIC
DESIGN OF COMBINATIONAL LOGICDESIGN OF COMBINATIONAL LOGIC
DESIGN OF COMBINATIONAL LOGIC
 
Digital Components
Digital ComponentsDigital Components
Digital Components
 
Combinational Logic Circuits
Combinational Logic CircuitsCombinational Logic Circuits
Combinational Logic Circuits
 
Logic design and switching theory
Logic design and switching theoryLogic design and switching theory
Logic design and switching theory
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
Octave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning AlgorithmsOctave - Prototyping Machine Learning Algorithms
Octave - Prototyping Machine Learning Algorithms
 
2D Plot Matlab
2D Plot Matlab2D Plot Matlab
2D Plot Matlab
 

Similar to Computer architecture

ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptxENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
Aishah928448
 
Computer Architecture 3rd Edition by Moris Mano CH 01-CH 02.ppt
Computer Architecture 3rd Edition by Moris Mano CH  01-CH 02.pptComputer Architecture 3rd Edition by Moris Mano CH  01-CH 02.ppt
Computer Architecture 3rd Edition by Moris Mano CH 01-CH 02.ppt
Howida Youssry
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
kusuma11
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
kusuma11
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
kusuma11
 
f33-ft-computing-lec09-correct.ppt
f33-ft-computing-lec09-correct.pptf33-ft-computing-lec09-correct.ppt
f33-ft-computing-lec09-correct.ppt
MaddulaCharishma
 

Similar to Computer architecture (20)

f37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptf37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.ppt
 
f37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptf37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.ppt
 
f37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.pptf37-book-intarch-pres-pt1.ppt
f37-book-intarch-pres-pt1.ppt
 
Chapter-04.pdf
Chapter-04.pdfChapter-04.pdf
Chapter-04.pdf
 
15CS32 ADE Module 3
15CS32 ADE Module 315CS32 ADE Module 3
15CS32 ADE Module 3
 
5. Arithmaticn combinational Ckt.ppt
5. Arithmaticn combinational Ckt.ppt5. Arithmaticn combinational Ckt.ppt
5. Arithmaticn combinational Ckt.ppt
 
12.Digital Logic.pdf
12.Digital Logic.pdf12.Digital Logic.pdf
12.Digital Logic.pdf
 
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptxENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
ENG 202 – Digital Electronics 1 - Chapter 4 (1).pptx
 
Combinational and sequential logic
Combinational and sequential logicCombinational and sequential logic
Combinational and sequential logic
 
Video lectures for bba
Video lectures for bbaVideo lectures for bba
Video lectures for bba
 
Computer Architecture 3rd Edition by Moris Mano CH 01-CH 02.ppt
Computer Architecture 3rd Edition by Moris Mano CH  01-CH 02.pptComputer Architecture 3rd Edition by Moris Mano CH  01-CH 02.ppt
Computer Architecture 3rd Edition by Moris Mano CH 01-CH 02.ppt
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
 
Digital electronics nandhini kusuma
Digital electronics nandhini kusumaDigital electronics nandhini kusuma
Digital electronics nandhini kusuma
 
f33-ft-computing-lec09-correct.ppt
f33-ft-computing-lec09-correct.pptf33-ft-computing-lec09-correct.ppt
f33-ft-computing-lec09-correct.ppt
 
Chapter1.ppt
Chapter1.pptChapter1.ppt
Chapter1.ppt
 
computer logic and digital design chapter 1
computer logic and digital design chapter 1computer logic and digital design chapter 1
computer logic and digital design chapter 1
 
Programmable array-logic-and-programmable-logic-array
Programmable array-logic-and-programmable-logic-arrayProgrammable array-logic-and-programmable-logic-array
Programmable array-logic-and-programmable-logic-array
 
Hardware Description Language
Hardware Description Language Hardware Description Language
Hardware Description Language
 
Ch1-2, Digital Logic Circuit and Digital Components.ppt
Ch1-2, Digital Logic Circuit and Digital Components.pptCh1-2, Digital Logic Circuit and Digital Components.ppt
Ch1-2, Digital Logic Circuit and Digital Components.ppt
 

Recently uploaded

怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
tufbav
 
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
amitlee9823
 
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In Yusuf Sarai ≼🔝 Delhi door step delevry≼🔝
Call Now ≽ 9953056974 ≼🔝 Call Girls In Yusuf Sarai ≼🔝 Delhi door step delevry≼🔝Call Now ≽ 9953056974 ≼🔝 Call Girls In Yusuf Sarai ≼🔝 Delhi door step delevry≼🔝
Call Now ≽ 9953056974 ≼🔝 Call Girls In Yusuf Sarai ≼🔝 Delhi door step delevry≼🔝
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
tufbav
 
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men 🔝kakinada🔝 Escor...
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men  🔝kakinada🔝   Escor...➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men  🔝kakinada🔝   Escor...
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men 🔝kakinada🔝 Escor...
amitlee9823
 
➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men 🔝Vijayawada🔝 E...
➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men  🔝Vijayawada🔝   E...➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men  🔝Vijayawada🔝   E...
➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men 🔝Vijayawada🔝 E...
amitlee9823
 
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
amitlee9823
 
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
amitlee9823
 
Bommasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Bommasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Bommasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Bommasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
 
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
Vip Mumbai Call Girls Andheri East Call On 9920725232 With Body to body massa...
 
Call Girls in Vashi Escorts Services - 7738631006
Call Girls in Vashi Escorts Services - 7738631006Call Girls in Vashi Escorts Services - 7738631006
Call Girls in Vashi Escorts Services - 7738631006
 
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In Yusuf Sarai ≼🔝 Delhi door step delevry≼🔝
Call Now ≽ 9953056974 ≼🔝 Call Girls In Yusuf Sarai ≼🔝 Delhi door step delevry≼🔝Call Now ≽ 9953056974 ≼🔝 Call Girls In Yusuf Sarai ≼🔝 Delhi door step delevry≼🔝
Call Now ≽ 9953056974 ≼🔝 Call Girls In Yusuf Sarai ≼🔝 Delhi door step delevry≼🔝
 
Call Girls Kothrud Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Kothrud Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Kothrud Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Kothrud Call Me 7737669865 Budget Friendly No Advance Booking
 
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Chickpet ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
怎样办理维多利亚大学毕业证(UVic毕业证书)成绩单留信认证
 
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men 🔝kakinada🔝 Escor...
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men  🔝kakinada🔝   Escor...➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men  🔝kakinada🔝   Escor...
➥🔝 7737669865 🔝▻ kakinada Call-girls in Women Seeking Men 🔝kakinada🔝 Escor...
 
➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men 🔝Vijayawada🔝 E...
➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men  🔝Vijayawada🔝   E...➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men  🔝Vijayawada🔝   E...
➥🔝 7737669865 🔝▻ Vijayawada Call-girls in Women Seeking Men 🔝Vijayawada🔝 E...
 
Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...
Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...
Get Premium Pimple Saudagar Call Girls (8005736733) 24x7 Rate 15999 with A/c ...
 
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
Kothanur Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Bang...
 
Top Rated Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Katraj ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
Vip Mumbai Call Girls Kalyan Call On 9920725232 With Body to body massage wit...
 
Deira Dubai Escorts +0561951007 Escort Service in Dubai by Dubai Escort Girls
Deira Dubai Escorts +0561951007 Escort Service in Dubai by Dubai Escort GirlsDeira Dubai Escorts +0561951007 Escort Service in Dubai by Dubai Escort Girls
Deira Dubai Escorts +0561951007 Escort Service in Dubai by Dubai Escort Girls
 
Bommasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Bommasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Bommasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Bommasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
 
SM-N975F esquematico completo - reparación.pdf
SM-N975F esquematico completo - reparación.pdfSM-N975F esquematico completo - reparación.pdf
SM-N975F esquematico completo - reparación.pdf
 
Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Dharwad 7001035870 Whatsapp Number, 24/07 Booking
 

Computer architecture

  • 2. Computer Architecture Slide 2 1 Combinational Digital Circuits First of two chapters containing a review of digital design: • Combinational, or memoryless, circuits in Chapter 1 • Sequential circuits, with memory, in Chapter 2 Topics in This Chapter 1.1 Signals, Logic Operators, and Gates 1.2 Boolean Functions and Expressions 1.3 Designing Gate Networks 1.4 Useful Combinational Parts 1.5 Programmable Combinational Parts 1.6 Timing and Circuit Considerations
  • 3. Computer Architecture Slide 3 1.1 Signals, Logic Operators, and Gates Figure 1.1 Some basic elements of digital logic circuits, with operator signs used in this book highlighted. x  y  AND Name XOR OR NOT Graphical symbol x  y Operator sign and alternate(s) x  y x  y xy x  y x  x or x _ x y or xy Arithmetic expression x  y 2xy x  y  xy 1  x Output is 1 iff: Input is 0 Both inputs are 1s At least one input is 1 Inputs are not equal Add: 1 + 1 = 10
  • 4. Computer Architecture Slide 4 The Arithmetic Substitution Method z = 1 – z NOT converted to arithmetic form xy AND same as multiplication (when doing the algebra, set zk = z) x  y = x + y  xy OR converted to arithmetic form x  y = x + y  2xy XOR converted to arithmetic form Example: Prove the identity xyz  x  y  z ? 1 LHS = [xyz  x]  [y  z] = [xyz + 1 – x – (1 – x)xyz]  [1 – y + 1 – z – (1 – y)(1 – z)] = [xyz + 1 – x]  [1 – yz] = (xyz + 1 – x) + (1 – yz) – (xyz + 1 – x)(1 – yz) = 1 + xy2z2 – xyz = 1 = RHS This is addition, not logical OR
  • 5. Oct. 2014 Computer Architecture, Background and Motivation Slide 5 Variations in Gate Symbols Figure 1.2 Gates with more than two inputs and/or with inverted signals at input or output. OR NOR NAND AND XNOR Bubble = Inverter
  • 6. Oct. 2014 Computer Architecture, Background and Motivation Slide 6 Gates as Control Elements Figure 1.3 An AND gate and a tristate buffer act as controlled switches or valves. An inverting buffer is logically the same as a NOT gate. Enable/Pass signal e Data in x Data out x or 0 Data in x Enable/Pass signal e Data out x or “high impedance” (a) AND gate for controlled transfer (b) Tristate buffer (c) Model for AND switch. x e No data or x 0 1 x e ex 0 1 0 (d) Model for tristate buffer.
  • 7. Computer Architecture Slide 7 Wired OR and Bus Connections Figure 1.4 Wired OR allows tying together of several controlled signals. e e e Data out (x, y, z, or high impedance) (b) Wired OR of tristate outputs e e e Data out (x, y, z, or 0) (a) Wired OR of product terms z x y z x y z x y z x y
  • 8. Oct. 2014 Computer Architecture, Background and Motivation Slide 8 Control/Data Signals and Signal Bundles Figure 1.5 Arrays of logic gates represented by a single gate symbol. / 8 / 8 / 8 Compl / 32 / k / 32 Enable / k / k / k (b) 32 AND gates (c) k XOR gates (a) 8 NOR gates
  • 9. Oct. 2014 Computer Architecture, Background and Motivation Slide 9 1.2 Boolean Functions and Expressions Ways of specifying a logic function  Truth table: 2n row, “don’t-care” in input or output  Logic expression: w (x  y  z), product-of-sums, sum-of-products, equivalent expressions  Word statement: Alarm will sound if the door is opened while the security system is engaged, or when the smoke detector is triggered  Logic circuit diagram: Synthesis vs analysis
  • 10. Oct. 2014 Computer Architecture, Background and Motivation Slide 10 Table 1.2 Laws (basic identities) of Boolean algebra. Name of law OR version AND version Identity x  0 = x x 1 = x One/Zero x  1 = 1 x 0 = 0 Idempotent x  x = x x x = x Inverse x  x  = 1 x x  = 0 Commutative x  y = y  x x y = y x Associative (x  y)  z = x  (y  z) (x y) z = x (y z) Distributive x  (y z) = (x  y) (x  z) x (y  z) = (x y)  (x z) DeMorgan’s (x  y) = x  y  (x y) = x   y  Manipulating Logic Expressions
  • 11. Computer Architecture Slide 11 Proving the Equivalence of Logic Expressions Example 1.1  Truth-table method: Exhaustive verification  Arithmetic substitution x  y = x + y  xy x  y = x + y  2xy  Case analysis: two cases, x = 0 or x = 1  Logic expression manipulation Example: x  y ? xyxy x + y – 2xy ? (1–x)y + x(1–y) – (1–x)yx(1–y)
  • 12. Computer Architecture Slide 12 1.3 Designing Gate Networks  AND-OR, NAND-NAND, OR-AND, NOR-NOR  Logic optimization: cost, speed, power dissipation (a) AND-OR circuit z x y x y z (b) Intermediate circuit (c) NAND-NAND equivalent z x y x y z z x y x y z Figure 1.6 A two-level AND-OR circuit and two equivalent circuits. (a  b  c) = abc
  • 13. Computer Architecture Slide 13 Seven-Segment Display of Decimal Digits Figure 1.7 Seven-segment display of decimal digits. The three open segments may be optionally used. The digit 1 can be displayed in two ways, with the more common right- side version shown. Optional segment I swear I didn’t use a calculator!
  • 14. Slide 14 BCD-to-Seven-Segment Decoder Example 1.2 Figure 1.8 The logic circuit that generates the enable signal for the lowermost segment (number 3) in a seven-segment display unit. x3 x2 x1 x0 Signals to enable or turn on the segments 4-bit input in [0, 9] e0 e5 e6 e4 e2 e1 e3 1 2 4 5 0 3 6
  • 15. Slide 15 1.4 Useful Combinational Parts  High-level building blocks  Much like prefab parts used in building a house  Arithmetic components (adders, multipliers, ALUs) will be covered in Part III  Here we cover three useful parts: multiplexers, decoders/demultiplexers, encoders
  • 16. Slide 16 Multiplexers Figure 1.9 Multiplexer (mux), or selector, allows one of several inputs to be selected and routed to output depending on the binary value of a set of selection or address signals provided to it. x x y z 1 0 x x z y x x y z 1 0 y / 32 / 32 / 32 1 0 1 0 3 2 z y1 0 1 0 1 0 y1 y0 y0 (a) 2-to-1 mux (b) Switch view (c) Mux symbol (d) Mux array (e) 4-to-1 mux with enable (e) 4-to-1 mux design 0 1 y 1 1 1 0 0 0 x x x x 1 0 2 3 x x x x 0 1 2 3 z e (Enable) 1 0 x2
  • 17. Computer Architecture, Background and Motivation Slide 17 Decoders/Demultiplexers Figure 1.10 A decoder allows the selection of one of 2a options using an a-bit address as input. A demultiplexer (demux) is a decoder that only selects an output if its enable signal is asserted. y1 y0 x0 x3 x2 x1 1 0 3 2 y1 y0 x0 x3 x2 x1 e 1 0 3 2 y1 y0 x0 x3 x2 x1 (a) 2-to-4 decoder (b) Decoder symbol (c) Demultiplexer, or decoder with “enable” (Enable) 1 1 0 1 1 0 1 1 1 Oct. 2014
  • 18. Slide 18 Encoders Figure 1.11 A 2a-to-a encoder outputs an a-bit binary number equal to the index of the single 1 among its 2a inputs. (a) 4-to-2 encoder (b) Encoder symbol x0 x3 x2 x1 y1 y0 1 0 3 2 x0 x3 x2 x1 y1 y0 1 0 1 0 0 0
  • 19. Slide 19 1.5 Programmable Combinational Parts  Programmable ROM (PROM)  Programmable array logic (PAL)  Programmable logic array (PLA) A programmable combinational part can do the job of many gates or gate networks Programmed by cutting existing connections (fuses) or establishing new connections (antifuses)
  • 20. Slide 20 PROMs Figure 1.12 Programmable connections and their use in a PROM. . . . . . . Inputs Outputs (a) Programmable OR gates w x y z (b) Logic equivalent of part a w x y z (c) Programmable read-only memory (PROM) Decoder
  • 21. Slide 21 PALs and PLAs Figure 1.13 Programmable combinational logic: general structure and two classes known as PAL and PLA devices. Not shown is PROM with fixed AND array (a decoder) and programmable OR array. AND array (AND plane) OR array (OR plane) . . . . . . . . . Inputs Outputs (a) General programmable combinational logic (b) PAL: programmable AND array, fixed OR array 8-input ANDs (c) PLA: programmable AND and OR arrays 6-input ANDs 4-input ORs
  • 22. Slide 22 1.6 Timing and Circuit Considerations  Gate delay d: a fraction of, to a few, nanoseconds  Wire delay, previously negligible, is now important (electronic signals travel about 15 cm per ns)  Circuit simulation to verify function and timing Changes in gate/circuit output, triggered by changes in its inputs, are not instantaneous
  • 23. Slide 23 Glitching Figure 1.14 Timing diagram for a circuit that exhibits glitching. x = 0 y z a = x  y f = a  z 2d 2d Using the PAL in Fig. 1.13b to implement f = x  y  z AND-OR (PAL) AND-OR (PAL) x y z a f
  • 24. Slide 24 CMOS Transmission Gates Figure 1.15 A CMOS transmission gate and its use in building a 2-to-1 mux. z x x 0 1 (a) CMOS transmission gate: circuit and symbol (b) Two-input mux built of two transmission gates TG TG TG y P N
  • 25. Slide 25 2 Digital Circuits with Memory Second of two chapters containing a review of digital design: • Combinational (memoryless) circuits in Chapter 1 • Sequential circuits (with memory) in Chapter 2 Topics in This Chapter 2.1 Latches, Flip-Flops, and Registers 2.2 Finite-State Machines 2.3 Designing Sequential Circuits 2.4 Useful Sequential Parts 2.5 Programmable Sequential Parts 2.6 Clocks and Timing of Events
  • 26. Slide 26 2.1 Latches, Flip-Flops, and Registers Figure 2.1 Latches, flip-flops, and registers. R Q Q S D Q Q C Q Q D C (a) SR latch (b) D latch Q C Q D Q C Q D (e) k-bit register (d) D flip-flop symbol (c) Master-slave D flip-flop Q C Q D FF / / k k Q C Q D FF R S
  • 27. Slide 27 Latches vs Flip-Flops Figure 2.2 Operations of D latch and negative-edge-triggered D flip-flop. D C D latch: Q D FF: Q Setup time Setup time Hold time Hold time D C Q Q D C Q Q FF
  • 28. Slide 28 Reading and Modifying FFs in the Same Cycle Figure 2.3 Register-to-register operation with edge-triggered flip-flops. / / k k Q C Q D FF / / k k Q C Q D FF Computation module (combinational logic) Clock Propagation delay Combinational delay
  • 29. Oct. 2014 Computer Architecture, Background and Motivation Slide 29 2.2 Finite-State Machines Example 2.1 Figure 2.4 State table and state diagram for a vending machine coin reception unit. Dime Dime Quarter Dime Quarter Dime Quarter Dime Quarter Reset Reset Reset Reset Reset Start Quarter S00 S10 S20 S25 S30 S35 S10 S25 S00 S00 S00 S00 S00 S00 S20 S35 S35 S35 S35 S35 S35 S30 S35 S35 ------- Input ------- Dime Quarter Reset Current state S00 S35 is the initial state is the final state Next state Dime Quarter S00 S10 S20 S25 S30 S35
  • 30. Slide 30 Sequential Machine Implementation Figure 2.5 Hardware realization of Moore and Mealy sequential machines. Next-state logic State register / n / m / l Inputs Outputs Next-state excitation signals Present state Output logic Only for Mealy machine
  • 31. Slide 31 2.3 Designing Sequential Circuits Example 2.3 Figure 2.7 Hardware realization of a coin reception unit (Example 2.3). Output Q C Q D e Inputs Q C Q D Q C Q D FF2 FF1 FF0 q d Quarter in Dime in Final state is 1xx
  • 32. Slide 32 2.4 Useful Sequential Parts  High-level building blocks  Much like prefab closets used in building a house  Other memory components will be covered in Chapter 17 (SRAM details, DRAM, Flash)  Here we cover three useful parts: shift register, register file (SRAM basics), counter
  • 33. Slide 33 Shift Register Figure 2.8 Register with single-bit left shift and parallel load capabilities. For logical left shift, serial data in line is connected to 0. Parallel data in / k / k / k Shift Q C Q D FF 1 0 Serial data in / k – 1 LSBs Load Parallel data out Serial data out MSB 0 1 0 0 1 1 1 0
  • 34. Slide 34 Register File and FIFO Figure 2.9 Register file with random access and FIFO. Decoder / k / k / h Write enable Read address 0 Read address 1 Read data 0 Write data Read enable 2 k-bit registers h / k / k / k / k / k / k / k / h Write address Muxes Read data 1 / k / h / h / h / k / h Write enable Read addr 0 / k / k Read addr 1 Write data Write addr Read data 0 Read enable Read data 1 (a) Register file with random access (b) Graphic symbol for register file Q C Q D FF / k Q C Q D FF Q C Q D FF Q C Q D FF / k Push / k Input Output Pop Full Empty (c) FIFO symbol
  • 35. Slide 35 SRAM Figure 2.10 SRAM memory is simply a large, single-port register file. Column mux Row decoder / h Address Square or almost square memory matrix Row buffer Row Column g bits data out / g / h Write enable / g Data in Address Data out Output enable Chip select . . . . . . . . . (a) SRAM block diagram (b) SRAM read mechanism
  • 36. Slide 36 Binary Counter Figure 2.11 Synchronous binary counter with initialization capability. Count register Mux Incrementer 0 Input Load IncrInit x + 1 x 0 1 1 c in cout
  • 37. Slide 37 2.5 Programmable Sequential Parts  Programmable array logic (PAL)  Field-programmable gate array (FPGA)  Both types contain macrocells and interconnects A programmable sequential part contain gates and memory elements Programmed by cutting existing connections (fuses) or establishing new connections (antifuses)
  • 38. Slide 38 PAL and FPGA Figure 2.12 Examples of programmable sequential logic. (a) Portion of PAL with storable output (b) Generic structure of an FPGA 8-input ANDs D C Q Q FF Mux Mux 0 1 0 1 I/O blocks Configurable logic block Programmable connections CLB CLB CLB CLB
  • 39. Slide 39 2.6 Clocks and Timing of Events Clock is a periodic signal: clock rate = clock frequency The inverse of clock rate is the clock period: 1 GHz  1 ns Constraint: Clock period  tprop + tcomb + tsetup + tskew Figure 2.13 Determining the required length of the clock period. Other inputs Combinational logic Clock period FF1 begins to change FF1 change observed Must be wide enough to accommodate worst-case delays Clock1 Clock2 Q C Q D FF2 Q C Q D FF1
  • 40. Slide 40 Synchronization Figure 2.14 Synchronizers are used to prevent timing problems arising from untimely changes in asynchronous signals. Asynch input Asynch input Synch version Synch version Asynch input Synch version Clock (a) Simple synchronizer (b) Two-FF synchronizer (c) Input and output waveforms Q C Q D FF Q C Q D FF2 Q C Q D FF1
  • 41. Slide 41 Level-Sensitive Operation Figure 2.15 Two-phase clocking with nonoverlapping clock signals. Combi- national logic 1  1 Clock period  Q C Q D Latch 1  Q C Q D Latch Other inputs Combi- national logic 2  2  Clocks with nonoverlapping highs Other inputs Q C Q Latch D
  • 42. Slide 42 3 Computer System Technology Interplay between architecture, hardware, and software • Architectural innovations influence technology • Technological advances drive changes in architecture Topics in This Chapter 3.1 From Components to Applications 3.2 Computer Systems and Their Parts 3.3 Generations of Progress 3.4 Processor and Memory Technologies 3.5 Peripherals, I/O, and Communications 3.6 Software Systems and Applications
  • 43. Slide 43 3.1 From Components to Applications Figure 3.1 Subfields or views in computer system engineering. High- level view Computer designer Circuit designer Application designer System designer Logic designer Software Hardware Computer organization Low- level view Application domains Electronic components Computer architecture
  • 44. Slide 44 What Is (Computer) Architecture? Figure 3.2 Like a building architect, whose place at the engineering/arts and goals/means interfaces is seen in this diagram, a computer architect reconciles many conflicting or competing demands. Architect Interface Interface Goals Means Arts Engineering Client’s taste: mood, style, . . . Client’s requirements: function, cost, . . . The world of arts: aesthetics, trends, . . . Construction technology: material, codes, . . .
  • 45. Slide 45 3.2 Computer Systems and Their Parts Figure 3.3 The space of computer systems, with what we normally mean by the word “computer” highlighted. Computer Analog Fixed-function Stored-program Electronic Nonelectronic General-purpose Special-purpose Number cruncher Data manipulator Digital
  • 46. Slide 46 Price/Performance Pyramid Figure 3.4 Classifying computers by computational power and price range. Embedded Personal Workstation Server Mainframe Super $Millions $100s Ks $10s Ks $1000s $100s $10s Differences in scale, not in substance
  • 47. Slide 47 Automotive Embedded Computers Figure 3.5 Embedded computers are ubiquitous, yet invisible. They are found in our automobiles, appliances, and many other places. Engine Impact sensors Navigation & entertainment Central controller Brakes Airbags
  • 48. Slide 48 Personal Computers and Workstations Figure 3.6 Notebooks, a common class of portable computers, are much smaller than desktops but offer substantially the same capabilities. What are the main reasons for the size difference?
  • 49. Slide 49 Digital Computer Subsystems Figure 3.7 The (three, four, five, or) six main units of a digital computer. Usually, the link unit (a simple bus or a more elaborate network) is not explicitly included in such diagrams. Memory Link Input/Output To/from network Processor Control Datapath Input Output CPU I/O
  • 50. Slide 50 3.3 Generations of Progress Table 3.2 The 5 generations of digital computers, and their ancestors. Generation (begun) Processor technology Memory innovations I/O devices introduced Dominant look & fell 0 (1600s) (Electro-) mechanical Wheel, card Lever, dial, punched card Factory equipment 1 (1950s) Vacuum tube Magnetic drum Paper tape, magnetic tape Hall-size cabinet 2 (1960s) Transistor Magnetic core Drum, printer, text terminal Room-size mainframe 3 (1970s) SSI/MSI RAM/ROM chip Disk, keyboard, video monitor Desk-size mini 4 (1980s) LSI/VLSI SRAM/DRAM Network, CD, mouse,sound Desktop/ laptop micro 5 (1990s) ULSI/GSI/ WSI, SOC SDRAM, flash Sensor/actuator, point/click Invisible, embedded
  • 51. Slide 51 Figure 3.8 The manufacturing process for an IC part. IC Production and Yield 15-30 cm 30-60 cm Silicon crystal ingot Slicer Processing: 20-30 steps Blank wafer with defects x x x x x x x x x x x 0.2 cm Patterned wafer (100s of simple or scores of complex processors) Dicer Die ~1 cm Good die ~1 cm Die tester Microchip or other part Mounting Part tester Usable part to ship
  • 52. Slide 52 Figure 3.9 Visualizing the dramatic decrease in yield with larger dies. Effect of Die Size on Yield 120 dies, 109 good 26 dies, 15 good Die yield =def (number of good dies) / (total number of dies) Die yield = Wafer yield  [1 + (Defect density  Die area) / a]–a Die cost = (cost of wafer) / (total number of dies  die yield) = (cost of wafer)  (die area / wafer area) / (die yield)
  • 53. Slide 53 3.4 Processor and Memory Technologies Figure 3.11 Packaging of processor, memory, and other components. PC board Backplane Memory CPU Bus Connector (b) 3D packaging of the future (a) 2D or 2.5D packaging now common Stacked layers glued together Interlayer connections deposited on the outside of the stack Die
  • 54. Slide 54 Figure 3.10 Trends in processor performance and DRAM memory chip capacity (Moore’s law). Moore’s Law 1Mb 1990 1980 2000 2010 kIPS MIPS GIPS TIPS Processor performance Calendar year 80286 68000 80386 80486 68040 Pentium Pentium II R10000 1.6 / yr 10 / 5 yrs 2 / 18 mos 64Mb 4Mb 64kb 256kb 256Mb 1Gb 16Mb 4 / 3 yrs Processor Memory kb Mb Gb Tb Memory chip capacity
  • 55. Slide 55 Pitfalls of Computer Technology Forecasting “DOS addresses only 1 MB of RAM because we cannot imagine any applications needing more.” Microsoft, 1980 “640K ought to be enough for anybody.” Bill Gates, 1981 “Computers in the future may weigh no more than 1.5 tons.” Popular Mechanics “I think there is a world market for maybe five computers.” Thomas Watson, IBM Chairman, 1943 “There is no reason anyone would want a computer in their home.” Ken Olsen, DEC founder, 1977 “The 32-bit machine would be an overkill for a personal computer.” Sol Libes, ByteLines
  • 56. Slide 56 3.5 Input/Output and Communications Figure 3.12 Magnetic and optical disk memory units. (a) Cutaway view of a hard disk drive (b) Some removable storage media Typically 2-9 cm Floppy disk CD-ROM Magnetic tape cartridge . . . . . . . .
  • 57. Slide 57 Figure 3.13 Latency and bandwidth characteristics of different classes of communication links. Communication Technologies 3 6 9 12 9 6 3 3 Bandwidth (b/s) Latency (s) 10 10 10 10 10 10 10 1 10 Processor bus I/O network System-area network (SAN) Local-area network (LAN) Metro-area network (MAN) Wide-area network (WAN) Geographically distributed Same geographic location (ns) (s) (ms) (min) (h)
  • 58. Slide 58 3.6 Software Systems and Applications Figure 3.15 Categorization of software, with examples in each class. Software Application: word processor, spreadsheet, circuit simulator, . . . Operating system Translator: MIPS assembler, C compiler, . . . System Manager: virtual memory, security, file system, . . . Coordinator: scheduling, load balancing, diagnostics, . . . Enabler: disk driver, display driver, printing, . . .