Skip to content

Instantly share code, notes, and snippets.

@ritog
Created June 13, 2021 08:01
Show Gist options
  • Save ritog/cef52b9f6ac017e00d64460b025a53fe to your computer and use it in GitHub Desktop.
Save ritog/cef52b9f6ac017e00d64460b025a53fe to your computer and use it in GitHub Desktop.
test file for testing custom chip (nand2tetris) Hashnode blog Convoluted demo
// 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