Professional Documents
Culture Documents
CH 1
CH 1
Chapter 1:
The General Purpose Machine
Topics
1.1 The General Purpose Machine
1.2 The User’s View
1.3 The Machine/Assembly Language Programmer’s View
1.4 The Computer Architect’s View
1.5 The Computer System Logic Designer’s View
1.6 Historical Perspective
1.7 Trends and Research
1.8 Approach of the Text
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-2 Chapter 1—The General Purpose Machine
Looking Ahead—Chapter 2
Explores the nature of machines and machine
languages
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-3 Chapter 1—The General Purpose Machine
Looking Ahead—Chapter 3
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-4 Chapter 1—The General Purpose Machine
Looking Ahead—Chapter 4
This keystone chapter describes processor
design at the logic gate level
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-5 Chapter 1—The General Purpose Machine
Looking Ahead—Chapter 5
Important advanced topics in CPU design
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-6 Chapter 1—The General Purpose Machine
Looking Ahead—Chapter 6
The arithmetic and logic unit: ALU
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-7 Chapter 1—The General Purpose Machine
Looking Ahead—Chapter 7
The memory subsystem of the computer
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-8 Chapter 1—The General Purpose Machine
Looking Ahead—Chapter 8
Computer input and output: I/O
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-9 Chapter 1—The General Purpose Machine
Looking Ahead—Chapter 9
Structure, function, and performance of
peripheral devices
• Disk drives
• Organization
• Static and dynamic properties
• Video display terminals
• Memory-mapped video
• Printers
• Mouse and keyboard
• Interfacing to the analog world
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-10 Chapter 1—The General Purpose Machine
Looking Ahead—Chapter 10
Computer communications, networking, and
the Internet
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-11 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-12 Chapter 1—The General Purpose Machine
Term Usage
Note the
m (milli-) 10-3 differences
µ (micro-) 10-6 between usages.
n (nano-) You should commit
10-9
the powers of 2 and
p (pico-) 10-12 10 to memory.
Units: Bit (b), Byte (B), Nibble, Word (w), Double Word, Long Word,
Second (s), Hertz (Hz)
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-13 Chapter 1—The General Purpose Machine
Machine/Assembly Language
Programmer’s View
• Machine language:
• Set of fundamental instructions the machine can execute
• Expressed as a pattern of 1’s and 0’s
• Assembly language:
• Alphanumeric equivalent of machine language
• Mnemonics more human-oriented than 1’s and 0’s
• Assembler:
• Computer program that transliterates (one-to-one mapping)
assembly to machine language
• Computer’s native language is machine/assembly language
• “Programmer,” as used in this course, means machine/
assembly language programmer
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-15 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-17 Chapter 1—The General Purpose Machine
Various
CPU
registers
15 0
PC 4000
15 0
IR 0011 101 000 000 100 231 – 1
15 0
Control signals
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-18 Chapter 1—The General Purpose Machine
Programmer’s Model:
Instruction Set Architecture (ISA)
• Instruction set: the collection of all machine operations.
• Programmer sees set of instructions, along with the
machine resources manipulated by them.
• ISA includes
• Instruction set,
• Memory, and
• Programmer-accessible registers of the system.
• There may be temporary or scratch-pad memory used to
implement some function is not part of ISA.
• Not Programmer Accessible.
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-19 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-20 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-21 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-22 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-23 Chapter 1—The General Purpose Machine
• The assembler
• The linker
• The debugger or monitor
• The development system
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-24 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-25 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-26 Chapter 1—The General Purpose Machine
Buses as Multiplexers
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-27 Chapter 1—The General Purpose Machine
Memory bus
CPU CPU
I/O bus
Input/ Input/
output output
subsystem subsystem
n
n-bit
system
bus
Input/output Input/output
devices devices
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-28 Chapter 1—The General Purpose Machine
Memory
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-29 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-30 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-31 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-32 Chapter 1—The General Purpose Machine
Implementation Domains
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-33 Chapter 1—The General Purpose Machine
U6
15 /G
S1 /A/B
2 1A
3 1Y 4
1B
5 2A
6 2Y 7
S 2B I0 O
11 3A I1
I0 10 3Y 9
O 3B
I0 14 4A
4Y 12 O S
I1 I1 13 4B
74F257N
(a) Abstract view of (b) TTL implementation (c) Optical switch
Boolean logic domain implementation
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-34 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-35 Chapter 1—The General Purpose Machine
32 32
B Bus D Q A Bus
PC
Logic Designer PCout
(Fig 1.8):
CK PCin
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-36 Chapter 1—The General Purpose Machine
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-37 Chapter 1—The General Purpose Machine
Historical Generations
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan
1-38 Chapter 1—The General Purpose Machine
Chapter 1 Summary
• Three different views of machine structure and function
• Machine/assembly language view: registers, memory cells,
instructions
• PC, IR
• Fetch-execute cycle
• Programs can be manipulated as data
• No, or almost no, data typing at machine level
• Architect views the entire system
• Concerned with price/performance, system balance
• Logic designer sees system as collection of functional logic
blocks
• Must consider implementation domain
• Tradeoffs: speed, power, gate fan-in, fan-out
Computer Systems Design and Architecture by V. Heuring and H. Jordan © 1997 V. Heuring and H. Jordan