Assignment 3
Assignment 3
Fall 2023
COIS 2300H – Computer Organization
Assignment 3— the Processor
a) What are the values of the control signals for the instruction as listed in the below table?
b) Assume that the PC value for all instructions is 0x00af1511. What is the value of the
Program Counter (PC) after executing the following instructions? Assume that all
conditions are true.
Instruction PC
add $s1, $S3, $S2
bne $s0,$s1, 8
lw $t1, 32($s1)
sw $s1, 8($s3)
beq $s0,$s1, 4
j 2000
Fall 2023
COIS 2300H – Computer Organization
Assignment 3— the Processor
IF ID EX MEM WB
250 350 150 300 200
a) What should be the clock cycle time for a non-pipelined and a pipelined
processor? Provide justification for your answer.
Question 3. The following MIPS code might produce data hazard when
executed. Study the code and answer the following questions:
lw $t0, 0($a0)
add $t2, $t0, $t1
sw $t2, 4($a0)
Fall 2023
COIS 2300H – Computer Organization
Assignment 3— the Processor
d) Explain the nature of the data hazard and identify the instructions involved.
Deliverables:
Fall 2023