9
Catholic University PUCRS CONTROL PATH

Catholic University PUCRS

Embed Size (px)

DESCRIPTION

Control Path. Catholic University PUCRS. MIPS I instruction formats. Instructions are divided into three types: R , I and J . - PowerPoint PPT Presentation

Citation preview

Page 1: Catholic University PUCRS

Catholic UniversityPUCRS

CONTROL PATH

Page 2: Catholic University PUCRS

[email protected], [email protected] 2

MIPS I instruction formats

• Instructions are divided into three types: R, I and J.

• Every instruction starts with a 6-bit opcode. In addition to the opcode, R-type instructions specify three registers, a shift amount field, and a function field;

• I-type instructions specify two registers and a 16-bit immediate value;

• J-type instructions follow the opcode with a 26-bit jump target.

Page 3: Catholic University PUCRS

[email protected], [email protected] 3

• The following are the three formats used for the core instruction set:

Type -31- format (bits) -0-

R opcode (6) rs (5) rt (5) rd (5) shamt (5) funct (6)

I opcode (6) rs (5) rt (5) immediate (16)

J opcode (6) address (26)

MIPS I instruction formats

Page 4: Catholic University PUCRS

[email protected], [email protected] 4

MIPS I instruction formats

Page 5: Catholic University PUCRS

[email protected], [email protected] 5

Control Path for R-Type

Page 6: Catholic University PUCRS

[email protected], [email protected] 6

Control Path for I-Type(Branch Equal Inst)

Page 7: Catholic University PUCRS

[email protected], [email protected] 7

Control Path for I-Type(Load Inst)

Page 8: Catholic University PUCRS

[email protected], [email protected] 8

Control Path for J-Type(Jump Inst)

Page 9: Catholic University PUCRS

[email protected], [email protected] 9

General Control Flow Graph