Out of Memory - Using All of My Chips

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

Out of Memory - Using All of My Chips

Mike Leamy
I decided to take every chip I made and put it in the same folder with CPU, Memory, and Computer.  When I try to load Computer.hdl with the Hardware Simulator, I get a Java memory error.  Is this to be expected?  These chips are stored as text files after all and not binary ones, so maybe it isn't too surprising.  Has anyone else run into a similar issue? Thanks!  Mike
Reply | Threaded
Open this post in threaded view
|

Re: Out of Memory - Using All of My Chips

cadet1620
Administrator
Section 3.5 in the book says
The Directory Structure of This Project When constructing RAM chips from
smaller ones, we recommend using built-in versions of the latter. Otherwise, the
simulator may run very slowly or even out of (real) memory space, since large RAM
chips contain tens of thousands of lower-level chips, and all these chips are kept in
memory (as software objects) by the simulator.
--Mark
Reply | Threaded
Open this post in threaded view
|

Re: Out of Memory - Using All of My Chips

Mike Leamy
Thanks - I should have recalled that.

Just an update: I get the correct output for the rectangle test, using the external version of the script, as long as I delete from my directory bit.hdl and any RAM*.hdl files.  I have a copy of Register.hdl for each of A and D, and they work fine.  I recall another post stating that the built-in versions have to be used, but that's not my experience.