CA Lab8
CA Lab8
1. Introduction to Datapath
In computer architecture, a datapath is a collection of functional units such
as ALUs, multiplexers, and registers connected by buses where data flows. In
the MIPS architecture, the datapath is responsible for executing instructions.
The critical datapath length is the longest delay through the datapath for
any instruction — it defines the minimum clock cycle time.
3. Critical Path:
Example with lw
Instruction: lw $t1, 0($t2)
Purpose: Load a word from memory into register $t1.
Path:
PC -> Instruction Memory -> Register File -> ALU -> Data Memory ->
Register File
lw $t1, 0($t2)
+ Given t1= the whole of your digit ID, please draw pipeline stages
Path: PC -> Instruction Memory -> Register File -> ALU -> Register File
+ Given t2= the whole of your digit ID, and t3=2089 please draw
pipeline stages
+ Given t1= the whole of your digit ID, and t2=2, please draw
pipeline stages
MIPS Equivalent:
+Given A=[12, 45, 67,0,5, -2,20,35], and i=3, please explain the
sample code above
MIPS Equivalent:
+ Given t1= the whole of your digit ID, please draw pipeline stages
MIPS Equivalent:
9. Summary
Critical path determines minimum clock cycle.
lw and custom operations like conv or gather often form the longest
path.
Image:
lw $t0, 0($s1)
lw $t1, 4($s1)
mflo $t2
+ Explain: