Public » Elements of Computing
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Better Xor

Changeset a87f03221d9d

Parent 93381495e19b

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to one file · Browse files at a87f03221d9d Showing diff from parent 93381495e19b Diff from another changeset...

Change 1 of 1 Show Entire File 01/​Xor.hdl Stacked
 
14
15
16
17
18
19
 
 
 
20
 
14
15
16
 
 
 
17
18
19
20
@@ -14,7 +14,7 @@
  PARTS:   Not(in=a, out=nota);   Not(in=b, out=notb); - And(a=a, b=notb, out=w1); - And(a=nota, b=b, out=w2); - Or(a=w1, b=w2, out=out); + Nand(a=a, b=b, out=w1); + Nand(a=nota, b=notb, out=w2); + And(a=w1, b=w2, out=out);  }