I am trying my CHIPS in the Hardware Simulator. From the beginning, I had problems with this error. I read in the forums and it seems to have something to do with ANSI-coding. I use Mac OS X and save all files with Textwrangler in Windows Latin1, Unix Line Feed. At the beginning this seemed to work. Now as I have restarted my computer nothing works anymore. The HW-Simulator does not even recognize the native Nand.hdl file anymore as pasted below. I have changed nothing in that file. If I leave the file in the folder where it was originally unzipped, then the file works. But COPYING the file from one folder to another seems to break it even though I do not even OPEN it. What could I do about this?
Thanks for any help.
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: tools/builtIn/Nand.hdl
A common cause of the "CHIP name doesn't match" error is file name case. For instance if your file gets renamed to "and.hdl" instead of the correct "And.hdl". I've seen this most often on Windows where occasionally file names become ALL UPPERCASE AND IT'S VERY ANNOYING. 8-)