Slow simulation for RAM #1102
Replies: 3 comments 15 replies
-
It's hard to tell without seeing the circuit. Can you zip the circuit and attach it here? |
Beta Was this translation helpful? Give feedback.
-
I apologize for the inconvenience. But I have another question. 16-bit RAM memory is used in the nand2tetris course. The largest RAM bar has a 16K capacity 😟. Is it somehow possible to simulate this memory in a stable/fast version in Digital? The bars have a total of 14 selectors for the addresses. Is it possible that I can use the 16-bit sram from the Digital examples for this? |
Beta Was this translation helpful? Give feedback.
-
After assembling the gates and chips myself and understanding them, I have now exchanged the gates for gates from the digital software. I replaced all RAM parts. The CPU registers are an exception, because errors occurred after I tried to use the registers from digital. As a result, the computer has become very fast. But it's not quite enough. Maybe someone here can see how I can exchange some chips with parts from the digital software to improve performance? Here is my version of the nand2tetris Hack-Computer: |
Beta Was this translation helpful? Give feedback.
-
First of all, thank you for this great program. I love it. Before that I used Logisim, but it often causes problems with memory from custom logic gates. On the other hand, the memory works very well with the hneemann simulator.
First I built a 4-bit and 8-bit CPU with hneemann with 4-bit x16 and 8-bit x16 RAM . That worked well. Now I got it working with 16-bit x64 RAM. And it actually still works, but the simulation is very very slow.
Hence my question: Is there a way to give the simulation more computing power from my real computer? Or is it even possible that my computer (the real machine, not the simulation) is too slow for such a simulation?
It's an AMD Ryzen 3 1200 Quad and 16GB of RAM. It shouldn't be because of that, should it?
I checked the task manager and saw that "digital" is using about 30% CPU power and only 1GB of RAM.
I tried running the program with
java -jar -Xmx2048M Digital.jar
as suggested here by hneemann in another thread.
Unfortunately it didn't bring any change.
Beta Was this translation helpful? Give feedback.
All reactions