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.

Revisions

  1. ritog created this gist Jun 13, 2021.
    57 changes: 57 additions & 0 deletions Custom.tst
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    // 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;