Question: Task 1 : Implement a multicycle version of the calculator. You only need to implement three instructions - - - load, add, and negate. All
Task : Implement a multicycle version of the calculator. You only need to implement three instructionsload, add, and negate.
All the three instructions take stages, ID EXE and WB to finish. Each stage uses one cycle. All instructions will print some messages at the WB stage to verify the execution is done in the multicycle manner. Table describes what each instruction does at every stage. Your implementation must show that the three instructions are completed in three steps. In particular, it is unacceptable to finish all work in one cycle and then just wait for the displaying of result. In other words, there should be a clear demonstration of the interstage registers and how they work in sequence.
tableInstructionIDEXE,WBLoadtableRead the valuefrom theinstructionwordtableExtend the value tobit.tableStore the valueto thedestinationregisterDisplay theloaded value.AddtableRead twooperands fromregisterstableCalculateoperandoperandtableStore the valueto thedestinationregisterDisplay theresultNegatetableRead theoperandtableCalculate operandtableStore the valueto the What to Turn In
For this lab project, submit the final gatelevel RTL circuit schematic design that shows the design
of your single cycle datapath. The diagram can be a drawing from software or scanned image of
your drawing on paper or a photo of your drawing. It should be based your design from the
previous lab.
Also turn in all of your source code and the code that tests your implementations. For each
problem, all the source files and the project configuration files must be packed as a single zip file.
The goal is that I can unpack your zip file and type a single command, eg "make" to compile
your whole project. In your project report, please also describe your testing methodology. In
particular, describe the instruction sequence your ISA testbench that you use to test, whether you
make any changes to your Lab testbench, why the sequence will prove the correctness, and what
is the expected printout if everything runs correctly.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
