DEV Community

froglegs1
froglegs1

Posted on

Python CPU Simulation

I simulated a CPU in Python because I wanted to have a further understanding of computer architecture. Below is my understanding of the control flow of a CPU.

Image description

This control flow helped me decide how to simulate the CPU. The following is some output of my code.

Image description

If you would like to know more about my code and the Instruction Set Architecture follow the link below to my GitHub repository for the CPU simulation.

https://github.com/froglegs1/Python-CPU-Simulator

Top comments (0)