ECE243 Practice Question Website


Main Assembly Programming Input/Output Memory Computer Architecture Advanced Topics

Computer Architecture Questions





Question 9

Consider the two-bus architecture shown, and the following instruction.

add.w	d5,(a3)+
Give the steps and control signals for implementing the instruction in the table. Use ONLY the following control signals:

IRin, PCinA, PCinB, PCout, Zin, Zout, d5inA, d5inB, d5out, a3inA, a3inB, a3out, YinA, YinB,select Y, select 0, select 1, select2, MARinA, MARinB, MDRinA, MDRinB, MDRout, ALUadd, READ, WRITE, WMFC, END

10 places are provided for your answer – use only the steps you need

Step 1  
Step 2  
Step 3  
Step 4  
Step 5  
Step 6  
Step 7  
Step 8  
Step 9  
Step 10  

Answer

Step 1 WMFC, PCout, MARinA, READ, select 2, ALUadd, PCinB
Step 2 WMFC, MDRout, IRin
Step 3 a3out, MARinA, READ, select 2, ALUadd, a3inB
Step 4 d5out, YinA
Step 5 WMFC, select Y, MDRout, ALUadd, MDRinB, WRITE, END

This is the most efficient solution

SOLUTION NOTES: