Documente Academic
Documente Profesional
Documente Cultură
COS 471a, COS 471b / ELE 375 Computer Architecture and Organization
Princeton University Fall 2005 Prof. David August
1 4
Datapath
Datapath The component of the processor that performs arithmetic operations P&H Datapath The collection of state elements, computation elements, and interconnections that together provide a conduit for the flow and transformation of data in the processor during execution. - DIA
Datapath Elements
ALUs are just one datapath building block What about the other elements? Computational Elements Combination Circuits Outputs follow inputs Familiar Example: ALU State Elements Sequential Circuits Outputs change on clock edge Familiar Example: A Register
Sign Extend
ALU control
ALU
Zero Result
Implementation?
Add Sum
in0 inn
M u x
out
Implementation?
12
Register numbers
D latch
Data
RegWrite
Data
Reg Write
Know decoders
MemWrite
PC
MemRead
17
18
Our Complete Line of Products! There may be others, but this is good for MIPS
MemWrite Instruction address Address PC Instruction Instruction memory Add Sum Write data Data memory Read data
MemRead
5 Register numbers 5 5
ALU control
Data
M u x
16
out
Sign extend
32
RegWrite
20
Consider: r1 = r2 - r3
21 22
Consider: r1 = M[ r2 - 3 ]
23 24
Recall Fetch
25
26
Branch Instructions
31
32
What is Control?
Control The component of the processor that commands the datapath, memory, and I/O devices according to the instructions of the program. P&H Control The component of the processor that commands the datapath, memory, and I/O devices according to the instructions of the program. - DIA
33
34
35
36
37
38