Cyzicos wrote
Hi, I am stuck in project 01. I can't open Or.hdl. I get the message code missing CHIP keyword in Line 6.
The version of Or.hdl currently in the download has a broken comment that is causing this problem,
1: // This file is part of www.nand2tetris.org
2: // and the book "The Elements of Computing Systems"
3: // by Nisan and Schocken, MIT Press.
4: // File name: projects/01/Or.hdl
5:
6: **
7: * Or gate:
8: * out = 1 if (a == 1 or b == 1)
9: * 0 otherwise
10: */
11:
12: CHIP Or {
line 6 should read "/**"Because of the missing "/", this line is not interpreted as a comment, and the first non-comment line in an HDL file must be the CHIP line.
--Mark