Created
June 13, 2021 08:01
-
-
Save ritog/cef52b9f6ac017e00d64460b025a53fe to your computer and use it in GitHub Desktop.
test file for testing custom chip (nand2tetris) Hashnode blog Convoluted demo
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
// test file for testing custom chip | |
// could be found at- https://gist.github.com/ghosh-r/c4e6f5ceb1e7ea2e3ba3601c9de121be | |
// test file for custom chip in Convoluted, a Hashnode blog | |
load Custom.hdl, | |
output-file Custom.out, | |
compare-to Custom.cmp, | |
output-list a%B3.1.3 b%B3.1.3 c%B3.1.3 out%B3.1.3; | |
set a 0, | |
set b 0, | |
set c 0, | |
eval, | |
output; | |
set a 0, | |
set b 0, | |
set c 1, | |
eval, | |
output; | |
set a 0, | |
set b 1, | |
set c 0, | |
eval, | |
output; | |
set a 0, | |
set b 1, | |
set c 1, | |
eval, | |
output; | |
set a 1, | |
set b 0, | |
set c 0, | |
eval, | |
output; | |
set a 1, | |
set b 0, | |
set c 1, | |
eval, | |
output; | |
set a 1, | |
set b 1, | |
set c 0, | |
eval, | |
output; | |
set a 1, | |
set b 1, | |
set c 1, | |
eval, | |
output; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment