Skip to content

Instantly share code, notes, and snippets.

@ritog
Created June 13, 2021 14:48
Show Gist options
  • Save ritog/fcc36f7dcbf2a91a7b7ce200ac34a569 to your computer and use it in GitHub Desktop.
Save ritog/fcc36f7dcbf2a91a7b7ce200ac34a569 to your computer and use it in GitHub Desktop.
Comparison file for Custom chip (nand2tetris)
// Custom.cmp
// compare file for chip Custom.hdl
// found at- https://gist.github.com/ghosh-r/c4e6f5ceb1e7ea2e3ba3601c9de121be
// test file at- https://gist.github.com/ghosh-r/cef52b9f6ac017e00d64460b025a53fe
| a | b | c | out |
| 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 0 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment