
































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
Instruction Execution, Load and Store instructions, Branch instructions, Logical instructions, Arithmetic instructions, Shift instructions, Miscellaneous instructions are the topics professor discussed in class.
Typology: Slides
1 / 40
This page cannot be seen from the preview
Don't miss anything!

































1
(op<4..0>= 1) : R[ra] ← M[disp], load register (ld) (op<4..0>= 2) : R[ra] ← M[rel], load register relative (ldr) (op<4..0>= 3) : M[disp] ← R[ra], store register (st) (op<4..0>= 4) : M[rel] ← R[ra], store register relative (str) (op<4..0>= 5) : R[ra] ← disp, load displacement address (la) (op<4..0>= 6) : R[ra] ← rel, load relative address (lar)
... ... ...
Other instructions go here
2
(op<4..0>= 8) : (cond : PC ← R[rb]), conditional branch (br) (op<4..0>= 9) : (R[ra] ← PC, cond : (PC ← R[rb]) ), branch and link (brl)
... ...
4
(op<4..0>= 8) : (cond : PC ← R[rb]), conditional branch (br) (op<4..0>= 9) : (R[ra] ← PC, cond : (PC ← R[rb]) ), branch and link (brl)
... ... cond := ( c3〈2..0〉=0 : 0, never c3〈2..0〉=1 : 1, always c3〈2..0〉=2 : R[rc]=0, if register is zero c3〈2..0〉=3 : R[rc]≠0, if register is nonzero c3〈2..0〉=4 : R[rc]〈 31 〉=0, if positive or zero c3〈2..0〉=5 : R[rc]〈 31 〉=1 ), if negative
This simply means that when c3<2..0> is equal to one of these six values, substitute the expression on the right hand side of the : in place of cond
5
7
...
8
... ...
10
11
13
14
16
A 4-bit register: waveforms
17
(^3210)
output
Inputs
19
A 4-to-1 MUX: waveforms
20
Data input
Enable Data output
Don’t care