Simulating CPU Performance
This assignment is about designing and simulating a Central Processing unit.
Aim: To write a program that simulates the performance of an 8-bit CPU. You are required to define an instruction set, describe the simulator algorithm and write the code to implement the simulator.
Define the number of bits needed for an instruction set. ie. 3 bits will support 23=8 instructions.
Select the required instructions: ie
Load Acc from memory
Store Acc in memory
[M(N)] ¬ [A]
Add memory to Acc.
[A] ¬ [A]+[M(N)]
Branch to location N
[PC] ¬ N
If A=0, Branch to location N
IF [A]=0 THEN [PC] ¬ N
Define the algorithm needed for simulation
Select a programming language ie (C, C++)
Design a simulator that can simulate the functionality of your CPU
Test your design
Discuss and conclude
- A concise typed report (max 10 pages excluding any listings) describing the design and implementation of the CPU simulator.
5 pekerja bebas membida secara purata $161 untuk pekerjaan ini
I am familiar with the x86 architecture and instruction set. Part of your requirements are clear but some are not. We should discuss about some details once/if you decide. Regards