+ 1

Using Python to simulate CPU

Is there a python framework to simulate user defined CPU and allow to define assembly language for it?

12th Feb 2023, 12:03 AM
Jan J
Jan J - avatar
6 Antworten
+ 5
Ipang 🙃🙃🙃 if people can do it in Minecraft. ..😊😊😊 https://youtu.be/tDxKhiJfgYk Jan J I found a github repo. Maybe you can start from that? https://github.com/redfast00/RCPU
12th Feb 2023, 7:21 AM
Bob_Li
Bob_Li - avatar
+ 3
Ipang Virtual cpu will be slower than the real cpu because cpu is required to run the program that is simulating the cpu. therefore, using virtual cpu for tasks is not a good choice. It is good exercise though, it can teach how things really works.
12th Feb 2023, 6:22 PM
Sandeep
Sandeep - avatar
+ 2
Interesting! Should there be any way to achieve this, IMO people will most likely opt to use it rather than upgrading tneir system with new CPUs which costs them more money.
12th Feb 2023, 6:08 AM
Ipang
+ 2
Bob_Li Now I begin to think it's time to use them, YT video looks great and convincing 😁
12th Feb 2023, 12:03 PM
Ipang
+ 2
Sandeep I was just kidding bro 🤗
13th Feb 2023, 5:26 AM
Ipang
+ 1
Bob_Li Thank you for sending link to this repo
12th Feb 2023, 8:04 AM
Jan J
Jan J - avatar