Simulator bug

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

Simulator bug

dd-b
It's a "bad" input file situation, but the simulator just sits there displaying "Loading chip..." in the bottom status line, rather than saying anything useful.  One of my students this term managed to come up with this on the very first homework assignment.

I think the key point is that he tried to reference the chip being defined in the file defining it.

Here's one file that produces the problem:

Not.hdl

(That's wrong in a couple of other ways as well, of course.  I've redirected the student down what should be a more productive path for them, but it would be better if the HDL simulator didn't just sit there when given this sort of input.)
Reply | Threaded
Open this post in threaded view
|

Re: Simulator bug

ivant
I just released a fix for this problem here: https://github.com/itoshkov/nand2tetris-emu

You'll have to compile the sources yourself, but it's just a simple mvn install command away.

Please, let me know if you find any problems with this fix. I've tested it a bit, but only with your example. Still, it should handle indirect references as well.