A. Single Cycle Micro-Architecture of Isa-Membound That Minimizes Cycle Time Using The Provided Hooks
A. Single Cycle Micro-Architecture of Isa-Membound That Minimizes Cycle Time Using The Provided Hooks
A. Single Cycle Micro-Architecture of Isa-Membound That Minimizes Cycle Time Using The Provided Hooks
a. Single Cycle Micro-architecture of ISA-MemBound that minimizes cycle time using the
provided hooks.
b. Implementing the TrplLoadAcc instruction using the least amount of standard MIPS instructions.
asserted for lw instructions and the second is asserted for the lws also when output data lines from
memory is to be connected to the Write Data lines of the register file. This is not the case for ALUSrc
since this is asserted for I-type instructions also as well as the memory access instruction.
The path between the adders and the pc can tolerate more delays because they do not lie within the
critical path. Any unit within the critical path (ALU, Register, Data memory) would benefit by
optimizing the hardware, this would make the critical path shorter
I. Pros
II. Cons
Data is not always at the top of the stack when needed, so additional instructions like TOP and SWAP are
needed.
d. Altering the ISA to work without a register file by completing the encodings and redefining the
instruction semantics
MvAcc 00 000
Iw 01 001
Is 10 010
TrpldAcc 11 011
2
QUESTION 2: PIPELINING AND DEPENDENCY
When the instructions are executed in a pipeline processor, then data dependency conduction will occur,
which means that 11 tries to read the data before 12, resulting to incorrect values.
Operand forwarding should be used to correct the issue, use the interface register present between the
stages to hold intermediate output so that dependent output can access new value from the interface
register directly.
b. Type Instruction
R-format 4 1 3 0 1 9
lw 4 1 3 4 1 13
sw 4 1 3 4 0 12
beq 4 1 3 0 0 8
j 4 0 0 0 0 4
3
QUESTION 3: CACHE
and $12,$2,$5
or $13,$6,$2
add $14,$2,$2
sw $15,100($2)
are given by
n ID/EX.RegisterRs, ID/EX.RegisterRt
EX hazard
ForwardA = 10
ForwardB = 10
n MEM hazard
4
n if (MEM/WB.RegWrite and (MEM/WB.RegisterRd ≠ 0)
ForwardA = 01
and (MEM/WB.RegisterRd