Or芯片说实话还是比较绕的,可能是我脑子不够用。嗨
以下是我写的实现:
CHIP Or {
IN a, b;
OUT out;
PARTS:
// Put your code here:
Not(in=a,out=out1);
Not(in=b,out=out2);
Nand(a=out1, b=out2, out=out);
}
Or芯片说实话还是比较绕的,可能是我脑子不够用。嗨
以下是我写的实现:
CHIP Or {
IN a, b;
OUT out;
PARTS:
// Put your code here:
Not(in=a,out=out1);
Not(in=b,out=out2);
Nand(a=out1, b=out2, out=out);
}