mailbox@pmdennis.com wrote
Here's my implementation of OR, yielding the following complaint from Hardware Emulator: \path\OR.hdl, Line 20, in has no source pin
...
CHIP Or {
IN a, b;
OUT out;
PARTS:
Nand(a = in, b = in, out = w);
Not(in = w, out = out);
}
It says line 20 because it detected the error at the end of the file.
Your Nand vate is trying to connect a wire named 'in' to its inputs named 'a' and 'b', but there is no wire named 'in' connected to any part output, nor specified on the IN command.
If you haven't read it yet, check out
The Hardware Construction Survival Kit. In particular read the "What is the meaning of a=a?" section.
--Mark