











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












the following SRC instruction is executing on the processor? Complete the table given. All numbers are in the decimal number system, unless noted otherwise. (b) Specify memory addressing modes for each of the SRC instructions given. SRC Instruction RTL equivalent Address Bus <31..0>
Data Bus <31..0>
MRead MWrite
ld r7, 12(r5)
ld r2, 32
la r9, 32
ldr r12, -
lar r3, 0
st r2, 0(r6)
str r3, -
st r4, 32
properly.
In other words, all the memory accesses start at addresses divisible by 4. (cf. p98, H&J)
Assumptions:
Register Map
with assumed
values
Solution Part (a):
from CPU’s data bus
MRead
3-state buffers
3-state buffers
MARout
to internal bus
to CPU’s data bus
from CPU’s data bus
MWrite
MRead
3-state buffers 3-state buffers
3-state buffers 3-state buffers
MBRout
to internal bus
from internal bus
31…27 26…22 21…17 16…12 11 IR^ opc^ ra^ rb^ rc
(^5) 5-to-32 decoder
Generating control signals for the register file
…..
…..
R0out
R1out
R31out
…..
Control signals to register file
Alternate control circuitry for register select
IR opc ra rb rc …..
5-to-32 decoder
…..
5-to-32 decoder
…..
5-to-32 decoder
…..
This part will be repeated for R2BUS as shown on the next slide
…..
Repeat 32 times
…..
Step RTN Control Signals
T0 – T2 Instruction Fetch As before
T3 A R[rb]; RBE, R2BUS, LA
T4 C A+R[rc]; RCE, R2BUS, ADD, LC
T5 R[ra] C; Cout’ RAE, BUS2R
Control signals for the add instruction
Tri-state buffers
IR … c
16 ….. 0
Tri-state buffers
Bus<16..0>
Bus<31..17>
…
Sign extension of the 22 bit constant c will be done in the same way
31 …..
c2out
Enable
Enable
31…27 26…22 21…17 16…12 11 Op (^) ra rb rc IR
(^5) 5-to-32 decoder
5 5 5
RAE
…..
…..
R0out
R1out
R31out
Tri-state buffers
Hardwired to^ To internal bus Logic 0
Enable
Don’t connect this line to the tri- state buffer at the output of R
5-to-32 decoder
…..
From IR<21..17> Tri-state buffers
To internal bus
Hardwired to Logic 0
Enable
Instead of connecting this line to the input of the gates, connect it to the enable of the tri-state buffers as shown here
Step RTL for Id Control Signals
T0-T2 Instruction fetch As before T3 A ((rb = 0) : 0, (rb ≠ 0): R[rb]); RBE, R2BUS, LA
T4 C A + (16αIR<16> ©IR<15..0>); C2out, ADD, LC
T5 MAR C; Cout, LMAR
T6 MBR M[MAR]; MARout, MRead, LMBR
T7 R[ra] MBR; MBRout, RAE, BUS2R
Control signals for the ld instruction