Professional Documents
Culture Documents
Edition
The Hardware/Software Interface
Chapter 4
The Processor
◼ AND-gate ◼ Adder A
Y
+
◼ Y=A&B ◼ Y=A+B B
A
Y
B
◼ Arithmetic/Logic Unit
◼ Multiplexer ◼ Y = F(A, B)
◼ Y = S ? I1 : I0
A
I0 M
u Y ALU Y
I1 x
B
S F
Clk
D Q
D
Clk
Q
Clk
D Q Write
Write D
Clk
Q
Increment by
4 for next
32-bit instruction
register
Increment by
4 for next
32-bit instruction
register
Field bit
31-26 25-21 20-16 15-11 10-6 5-0
positions
No. of bits 6 5 5 5 5 6
R-type op rs rt rd shamt funct
I-type 16- bit
op rs rt
immediate/address
Data[rs]
Offset (32)
Offset (32)
Data[rs]
Data[rt]
Zero=1 Branch
Offset (32)