|
In Or. chip
I coded like below
CHIP Or {
IN a, b;
OUT out;
PARTS:
Not(in=a, out=nota);
Not(in=b, out=notb);
And(a=nota, b=notb, out=w);
Not(in=w, out=out);
}
but the HW Emulator make output only 0
Also In And.chip
I coded like this
CHIP And {
IN a, b;
OUT out;
PARTS:
Nand(a=a, b=b, out=c1);
Not(in=c1, out=out);
}
It also prints ouput 0
What shoud I do?
|