Page 1 of 1

Suppose we want to add support for a new instruction to the RISC-V single-cycle data path. The new instruction is store

Posted: Sun Jul 03, 2022 9:59 am
by answerhappygod
Suppose we want to add support for a new instruction to theRISC-V single-cycle data path. The new instruction is storeimmediate and decrement (swd rs2, rs1, immediate).It is an S-type format instruction that operates as thefollowing:
M[ R[rs1] ]  R[rs2] + SignExtImm2 ; R[rs1]  R[rs1] - 1
SignExtImm2 = {13{instruction[15]}, instruction[6:4]}
Find the minimum modification to the single-cycle data path toallow the correct execution of the swd instructionin addition to the existing instructions. Include the followingitems in your report and submission:
• Use the Quartus block editor tools to highlight yourmodification on the block/schematic diagram.
• Submit the modified design files on Moodle (Assignment 1submission link).
• Testing and Simulation results of Part II with properjustification.
• Give a short description of the changes needed in the datapath and control unit.