Documente Academic
Documente Profesional
Documente Cultură
ECE 152
So far:
Now:
We learn how to design a processor in which the ALU is just one
component
Processor must be able to fetch instructions, decode them, and
execute them
There are many ways to do this, even for a given ISA
Next:
We learn how the processor interacts with memory
Firmware
I/O
Memory
Digital Circuits
Gates & Transistors
Readings
Patterson and Hennessy
OS
ECE152
Chapter 5
ECE152
ECE152
fetch
add $3,$2,$4
ALU performs just a small part of execution of instruction
You have to read and write registers
You have have to fetch the instruction to begin with
Data
Memory
ECE152
[material in class]
Register
File
control
Insn
memory
[material in class]
ECE152
ECE152
Uses of Registers
datapath
Q0
D0
DFF
D1
fetch
Q1
DFF
DN-1
WE
CLK
PC
Insn
memory
Register
File
Data
Memory
QN-1
DFF
control
WE
ECE152
ECE152
10
RS1VAL
RDVAL
Register File
RS2VAL
RD = dest reg
WE
RD RS1 RS2
RS = source reg
ECE152
11
ECE152
12
RS2VAL
RS1VAL
RS1VAL
RS1
RS2 RS1
ECE152
13
ECE152
14
RDVAL
RS2VAL
RS1VAL
WE
RS2 RS1
RD
ECE152
15
ECE152
16
Clocking Methodology
A single register (e.g., PC)
RDVAL
RS1VAL
WE
RD
RS1
ECE152
RS2
17
ECE152
18