nand2tetris icon indicating copy to clipboard operation
nand2tetris copied to clipboard

underscores are not supported by HardwareSimulator

Open antonkulaga opened this issue 2 years ago • 1 comments

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.

antonkulaga avatar Dec 27 '21 20:12 antonkulaga

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 %)

dabajabaza avatar Jan 07 '22 01:01 dabajabaza