Docsity

lab 4: Reduced SRC ISA - Computer Architecture | CS 3330, Lab Reports of Computer Architecture and Organization

Toggle sidebar
bg1
Fall 2006 โ€“ CS 333 โ€“ Microprogramming Exercise
Page 1 of 17
Reduced SRC ISA
We will support the following list of instructions for the SMOK SRC datapath
implementation you are working on in the next few labs.
Category Opcode Operands Meaning
ld ra, c2 load from absolute address; rb is
register 0
ld ra, c2(rb) load from displacement address
ldr ra, c1 load from relative address
st ra, c2 store into absolute address; rb is
register 0
st ra, c2(rb) store into displacement address
str ra, c1 store into relative address
la ra, c2(rb)
load value of displacement address
into ra
Load and Store
lar ra, c1 load value of relative address into ra
add ra, rb, rc add rb to rc, and put result into ra
addi ra, rb, c2 add rb to immediate constant, and put
result in ra
sub ra, rb, rc subtract rc from rb, and put result in
ra
or ra, rb, rc OR rb and rc, and put result in ra
ori ra, rb, c2 OR rb and immediate constant, and
put result in ra
and ra, rb, rc AND rb and rc, and put result in ra
Arithmetic
andi ra, rb, c2 AND rb and immediate constant, and
put result in ra
br rb, rc, c3 branch to target in rb if rc satisfies
condition in c3
Branch
brl ra, rb, rc, c3 branch to rb if rc satisfies c3, and
save PC in ra
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download lab 4: Reduced SRC ISA - Computer Architecture | CS 3330 and more Lab Reports Computer Architecture and Organization in PDF only on Docsity!

We will support the following list of instructions for the SMOK SRC datapathimplementation you are working on in the next few labs. Category Load and Store Opcode ldldldrstststrla lar Operandsra, c2ra, c2(rb)ra, c1ra, c2ra, c2(rb)ra, c1ra, c2(rb)ra, c1^ Reduced SRC ISA Meaningload from absolute address; rb isregister 0load from displacement addressload from relative addressstore into absolute address; rb isregister 0store into displacement addressstore into relative addressload value of displacement addressinto raload value of relative address into ra Arithmetic Branch addaddisubororiand andibr brl ra, rb, rcra, rb, c2ra, rb, rcra, rb, rcra, rb, c2ra, rb, rcra, rb, c2rb, rc, c3ra, rb, rc, c3^ add rb to rc, and put result into raadd rb to immediate constant, and putresult in rasubtract rc from rb, and put result inraOR rb and rc, and put result in raOR rb and immediate constant, andput result in raAND rb and rc, and put result in raAND rb and immediate constant, andput result in rabranch to target in rb if rc satisfiescondition in c3branch to rb if rc satisfies c3, andsave PC in ra

Instruction Fetch: PCLabel PCWrite InstOrData MemWrite IsABranch IRWrite RegWrite PCSelect RegSelect โ†PC + 4 : IR T0 โ† MemDataOut ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence

Label PCWrite InstOrData MemWrite IsABranch IRWrite RegWrite PCSelect ld ra, c2(rb)^ ld ra, c2^ T RegSelect ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence

Label PCWrite InstOrData MemWrite IsABranch IRWrite RegWrite PCSelect st ra, c2(rb)^ st ra, c2^ T RegSelect ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence

Label PCWrite InstOrData MemWrite IsABranch IRWrite RegWritePCSelect(branch to rb if rc satisfies c3, save PC in ra)^ brl ra, rb, rc, c3^ T RegSelect ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence

Label PCWrite InstOrData MemWrite IsABranch IRWrite RegWrite PCSelect(load ra from Mem[PC + c1])^ ldr ra, c1 T RegSelect ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence

la ra, c2(rb): (load absolute address c2+rb into ra)Label PCWrite InstOrData MemWrite IsABranch IRWrite RegWrite PCSelect RegSelect T ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence

(load value of relative address PC + c1 into ra)Label PCWrite InstOrData MemWrite IsABranch IRWrite RegWrite PCSelect^ lar ra, c1 T RegSelect ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence

Label PCWrite InstOrData MemWrite IsABranch IRWrite RegWrite PCSelect RegSelect^ sub ra, rb, rcT ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence

Label PCWrite InstOrData MemWrite IsABranch IRWrite RegWrite PCSelect RegSelect^ or ra, rb, rc T ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence

Label PCWrite InstOrData MemWrite IsABranch IRWrite RegWrite PCSelect RegSelect^ and ra, rb, rcT ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence

Label PCWrite InstOrData MemWrite IsABranch IRWrite RegWrite PCSelect RegSelect^ andi ra, rb, c2T ALUSelectA ALUSelectB ALUOp MemPCReg ImmSelect Sequence