Chapter …
Microarchitecture
Morgan Kaufmann Publishers
Morgan Kaufmann Publishers
*
Chapter 4 — The Processor
*
Chapter 4 — The Processor
Chapter 4 — The Processor — *
Introduction
CPU performance factors
Instruction count
Determined by ISA and compiler
CPI and Cycle time
Determined by CPU hardware
Simple subset, shows most aspects
Memory reference: lw, sw
Arithmetic/logical: add, sub, and, or, slt
Control transfer: beq
§4.1 Introduction
These 8 instructions capture the essence of the data path and control path design. This shall be similar to the choice of instructions for your project.
Chapter 4 — The Processor — *
Morgan Kaufmann Publishers
Morgan Kaufmann Publishers
*
Chapter 4 — The Processor
*
Chapter 4 — The Processor
The 8 Representative Instructions
Chapter 4 — The Processor — *
add rd, rs, rt R[rd]=R[rs]+R[rt]
and rd, rs, rt R[rd]=R[rs]&R[rt]
sub rd, rs, rt R[rd]=R[rs]-R[rt]
or rd, rs, rt R[rd]=R[rs] I R[rt]
slt rd, rs, st set on less than
if R[rs]