Question: Design a processor pipeline for a simple calculator. The calculator can only add and subtract 8-bit numbers. Instructions are 16 bits long. Registers are only
Design a processor pipeline for a simple calculator. The calculator can only add and subtract 8-bit numbers.
Instructions are 16 bits long. Registers are only 8 bits long. Include enough capability so that your calculator
can execute a program that is stored in instruction memory on the calculator.
a. Design your own instruction set. There should be a very limited number of unique instructions, list them all.
b. Generate an assembly code using the instruction set your designed in part (a) which show how your calculator can compute the average of a set of numbers. (You dont need to consider the overflow scenario)
c. Find any issues related to RAW dependencies in your code for part (b).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
