Home /
Expert Answers /
Computer Science /
designing-a-simple-microprocessor-in-this-assignment-we-will-walk-through-all-the-design-phases-re-pa484
(Solved): Designing a simple microprocessor In this assignment, we will walk through all the design phases re ...
Designing a simple microprocessor In this assignment, we will walk through all the design phases required to implement a microprocessor. You can use the following C code as a walk-through example. int x=5,y=10,z=300; int c=z/(x+y)?y; 1. Design a simple instruction set format for instructions like the example given above. You can simplify the design by considering only the given operations: addition, multiplication, and division in the example. It may be helpful to begin from the micro-operations level. 2. Design the CPU data path for the above instruction. You are given only two registers R0 and R1. It is not allowed to use more than two registers. Since memory reference operations are expensive, saving to memory is allowed only for the final result. Hence, avoid using more than one save operation. 3. Design the control unit and the required bits. State any assumptions you have in your design clearly. 4. Finally, write a C program that mimics the operations of the CPU data and control paths. The input to your program can be a memory unit that contains the given micro-operation(s), and the two register files.