Login  Register

Re: Comparsion failure at line 9 on RAM8.hdl

Posted by cadet1620 on Nov 16, 2017; 5:05pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Comparsion-failure-at-line-9-on-RAM8-hdl-tp4031456p4031573.html

I don't know enough about the Hardware Simulator's internals to give a detailed answer.

The BUILTIN keyword is documented in Appendix A as
the HDL body of a built-in chip has the following format:
    BUILTIN Java class name;
where Java class name is the name of the Java class that delivers the chip functionality.
Normally, this class will have the same name as that of the chip, for example
Mux.class. All the built-in chips (compiled Java class files) are stored in a directory
called tools/builtIn, which is a standard part of the simulator’s environment.
It must only be used by itself in an HDL file in a directory that also contains its corresponding Java .class file.

The easiest way to force the Hardware Simulator to use the built-in version of a part instead of YourPart.hdl is to temporarily rename your HDL file.

--Mark