Created
November 1, 2012 17:45
-
-
Save oskarth/3995321 to your computer and use it in GitHub Desktop.
chipper.gates
This file contains 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
;; nand* is not defined in terms of other gates | |
;; read the source to find out how we deal with that | |
(defgate not* [in] => [out] | |
(nand* [in in] => [out])) | |
(defgate and* [a b] => [out] | |
(nand* [a b] => [w]) | |
(not* [w] => [out])) | |
(defgate dmux* [in sel] => [a b] | |
(not* [sel] => [nsel]) | |
(and* [in nsel] => [a]) | |
(and* [in sel] => [b])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment