Re: PC Chip - "Keyword Expected"
Posted by
cadet1620 on
Mar 23, 2012; 3:39am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/PC-Chip-Keyword-Expected-tp3850475p3850643.html
somedude wrote
Hi. I'm trying to implement the PC Counter chip, but my HDL program always returns a "keyword expected" error on the first line of code -- Inc16(in = regout, out = reginc);
I define regout later as the output of the timer registry. Looping back a wire to before it is "declared" doesn't seem to cause any problems when creating the Bit chip; isn't the principle the same here?
Nothing wrong with your Inc16 that I can see.
I'd look at the line before the reported error. Did you accidentally delete the PARTS: statement, or perhaps just its ':'?
--Mark