Fully emulated CPU

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Fully emulated CPU

Albert G
Just for the fun of it, I tried using the CPU chip I built, using all the other lower-level chips I built down to the basic gates - rather than using the builtin variants.

That works pretty well - except for the RAM chips. Loading the Memory chip from all the basic gates down to the Bit chip does not really work: I was never able to actually load the whole chip, even after extending java's heap space.

But using my own versions of RAM16K works well, as well as using my version of RAM4K. Anything below that makes Memory much too slow to load and to emulate, so I let the simulator use the builtin variants for those.

I tried running some of the examples on this CPU, and the simple ones (Rect.hack) work well, with not too much of a slowdown.

That does show that the base hardware simulator is quite powerful. Good job.

Albert
Reply | Threaded
Open this post in threaded view
|

Re: Fully emulated CPU

Paganini
I wonder how much RAM Albert G had in 2012. My mac is 11 years old (2009 Macbook Pro). It has 8GB of RAM now, but I'm not sure exactly when I upgraded; I believe it shipped with 4GB from the factory.

Anyway, a fully emulated "Computer" chip takes between 2 and 2.5 GB of RAM here, and runs reasonably quickly - not as fast as the CPU Emulator, but fast enough that you can use it.
Reply | Threaded
Open this post in threaded view
|

Re: Fully emulated CPU

WBahn
Administrator
The machine I bought in 2012 had 2 GB of RAM and that maxed it out, so it sounds about right that that would have been about the time that common computers started having the capabilities to fully simulate the CPU.