Created
November 20, 2015 22:40
-
-
Save ssylvan/ab93a39a8c2aa1ce35ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. AND | |
2. OR | |
3. Parity of three bits | |
inv(x) = nand(x,x) | |
and(x,y) = inv(nand(x,y)) | |
or(x,y) = nand(inv(x), inv(y)) | |
xor(x,y) = or(x & inv(y), y & inv(x)) = inv(nand(x&inv(y), y&inv(x))) = inv(nand(nand(x, inv(y)), nand(y, inv(x)))) | |
xnor(x,y) = nand(nand(x, inv(y)), nand(y, inv(x))) | |
par(x,y,z) = or(and(inv(x), xnor(y,z)), and(x, xor(y,z,))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I gueess the parity bit could just be xor(x,xor(y,z)) too.