Professional Documents
Culture Documents
Single Cyycle Datapath PDF
Single Cyycle Datapath PDF
SEMESTER 2 2019/2020
Question 1
Figure 1 shows a single-cycle datapath which combines R-type instruction datapath and
memory instruction datapath. This datapath executes instructions in a single clock
cycle.
(c) Explain why the second input of ADD 1 is fixed to a decimal number with a value
of 4?
Question 2
a = b + c;
The C compiler may assign the variables, a, b and c to the registers $9, $10 and
$11 respectivley. Explain how this C program is executed in this datapath starting
from the INSTRUCTION MEMORY block. Show the flow of instruction / data in
the datapath.
(b) Consider a MIPS assembly language load word, lw $1, 100($2) which moves
data from the memory to a register. Show the execution of this assembly
language in the datapath starting from the INSTRUCTION MEMORY block.
Show the flow of instruction / data in the datapath.
1
MUX
ADD ADD 2
1 2