nand2tetris
nand2tetris copied to clipboard
underscores are not supported by HardwareSimulator
It shows " ',' or ')' required" whenever I use underscores in pins names. It looks like a bug of your HardwareSimulator because it is not highlighted by Verilog-HDL plugins for code editors.
Not a bug. PIN names convention is defined in the book in Appendix 2
Names of chips and pins may be any sequence of letters and digits not starting with a digit (some hardware simulators disallow using hyphens). By convention, chip and pin names start with a capital letter and a lowercase letter, respectively. For readability, names can include uppercase letters, for example, xorResult. HDL programs are stored in .hdl files. The name of the chip declared in the HDL statement CHIP Xxx must be identical to the prefix of the file name Xxx.hdl.
Is this repo even the official one? It seems like it's the repo of some random guy that completed the course %)