Assignment#3: COMSATS University Islamabad Abbottabad Campus
Assignment#3: COMSATS University Islamabad Abbottabad Campus
Abbottabad Campus
Assignment#3
1 | Page
Hussain Ahmed
FA19-BCS-074
COMSATS University Islamabad
Abbottabad Campus
Multi-cycle implementation:
2 | Page
Hussain Ahmed
FA19-BCS-074
COMSATS University Islamabad
Abbottabad Campus
Multi-cycle Datapath
Control signals needed to select inputs, outputs
Need write control:
Programmer-visible units
PC, memory, register file
IR: needs to hold instruction until end of execution
Need read control:
Memory
ALU Control: can use same control as single-cycle
R-FORMAT STEPS
• An instruction is fetched from instruction memory and the PC is incremented.
• Read two source register values from the register file.
• Perform the ALU operation on the register data operands.
• Write the result of the ALU operation to the register file.
3 | Page
Hussain Ahmed
FA19-BCS-074
COMSATS University Islamabad
Abbottabad Campus
4 | Page
Hussain Ahmed
FA19-BCS-074