



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The main points are:Building Beta, Maximum Performance, Performance Measure, Clock Frequency, Incremental Featurism, Multi-Port Register Files, Register File Timing, Instruction Fetch, Load Instruction, Jmp Instruction
Typology: Slides
1 / 6
This page cannot be seen from the preview
Don't miss anything!




Instruction classesdistinguished byOPCODE:
OPOPCMEMTransfer of Control
OpCode
6 Operate class: Reg[Rc]
Reg[Ra] op Reg[Rb]
6
5
5
5
11
Ra
Rc
Rb
(UNUSED)
0 1
X X
X X Operate class: Reg[Rc]
Reg[Ra] op SXT(C)
16
Ra
Rc
Literal C (signed)
1 1
X X
X X Opcodes, both formats:
ADD
SUB
MUL*
DIV*
*optional
CMPEQ CMPLE CMPLTAND
OR
XOR
SHL
SHR
SRA
LD:
Reg[Rc]
Mem[Reg[Ra]+SXT(C)]
ST:
Mem[Reg[Ra]+SXT(C)]
Reg[Rc]
JMP:
Reg[Rc]
PC+4; PC
Reg[Ra]
BEQ:
Reg[Rc]
PC+4; if Reg[Ra]=0 then PC
PC+4+4*SXT(C)
BNE:LDR:
Reg[Rc]
Mem[PC + 4 + 4*SXT(C)]
Reg[Rc]
PC+4; if Reg[Ra]
0 then PC
PC+4+4*SXT(C)
Ra
Rc
Literal C (signed)
1 0
X X
X X
Figure by MIT OpenCourseWare.
Q D
EN clk
Register
File (3-port)
RA
RA
WAWEWD
RD
RD
t^ S
t^ h
t
tPD
Adr
No WERF!
ST:
Mem[Reg[Ra]+SXT(C)]
Reg[Rc]
Ra
Rc
Literal C (signed)
1 0
0 1
1 0
Adr
JMP:^ PC+
Reg[Rc]
PC+4; PC
Reg[Ra]
Ra
Rc
Literal C (signed)
1 0
0 1
1 1
Adr
BEQ:
Reg[Rc]
PC+4; if Reg[Ra]=0 then PC
PC+4+4*SXT(C)
BNE:
Reg[Rc]
PC+4; if Reg[Ra]
0 then PC
PC+4+4*SXT(C)
Ra
Rc
Literal C (signed)
1 0
1 1
1 0
Ra
Rc
Literal C (signed)
1 0
1 1
0 1
LDR:
Reg[Rc]
Mem[PC + 4 + 4*SXT(C)]
Ra
Rc
Literal C (signed)
1 0
1 1
1 1
Adr
LDR:
Reg[Rc]
Mem[PC + 4 + 4*SXT(C)]
Ra
Rc
Literal C (signed)
1 0
1 1
1 1
LD(R31,A,R0)LD(R31,B,R1)DIV(R0,R1,R2)ST(R2,C,R31)
IllOp:
PUSH(XP) Fetch inst. at Mem[Reg[XP]–4] check for DIV opcode, get reg numbersperform operation in SW, fill result reg
POP(XP)JMP(XP)
Forced byhardware