Hello.
I'm just getting started in Chapter 1 and I came across trouble when trying to implement the 4-way demultiplexor: My Not gate is always outputting 1.
As an example, test the following chip with the "DMux4Way.tst" script:
CHIP DMux4Way {
IN in, sel[2];
OUT a, b, c, d;
PARTS:
// Put your code here:
Not(in=sel[0], out=notsel0);
Not(in=sel[1], out=notsel1);
}
Here's the source of my Not gate (linking offsite as to not spoil the solution for others):
https://pastebin.com/raw/G0E88dnaIf you watch the internal pins in the hardware simulator, you can see that notsel0 and notsel1 are
always 1. This has had me stuck for the better part of an hour, so if anyone out there can tell me what I'm doing wrong, that would be greatly appreciated.
-HK