gjs wrote
I have an error which reads
"line 52, instruction has no source pin"
but there are only 51 lines of code.
Do you know why there is this error?
Since it is legal to forward reference internal names, as in:
SomePart (in=foo, ...);
AnotherPart (..., out=foo);
the Hardware Simulator doesn't know that a name is undefined until it gets to the end of the file, thus it reports the line number at end-of-file.
The name in the error message tells you what is undefined. In your case, it's "instruction", which unfortunately makes the error message quite confusing since the errant name is not quoted.
--Mark