.
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
CHIP Xor {
|
||||
IN a, b;
|
||||
OUT out;
|
||||
|
||||
PARTS:
|
||||
Not(in=a,out=nota);
|
||||
Not(in=b,out=notb);
|
||||
And(a=a,b=notb,out=aAndnotb);
|
||||
And(a=nota,b=b,out=notaAndb);
|
||||
Or(a=aAndnotb,b=notaAndb,out=out);
|
||||
}
|
||||
Reference in New Issue
Block a user