Output looks correct but comparison with test file fails (Not16)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Output looks correct but comparison with test file fails (Not16)

vbvnyk

// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/1/Not16.hdl
/**
 * 16-bit Not gate:
 * for i = 0, ..., 15:
 * out[i] = Not(a[i])
 */
CHIP Not16 {
    IN in[16];
    OUT out[16];

    PARTS:
        //// Will post the code if necessary
}
Reply | Threaded
Open this post in threaded view
|

Re: Output looks correct but comparison with test file fails (Not16)

MBoffin
This is because of something I posted about a week or so ago. This thread:

http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/The-currently-included-Not16-cmp-file-is-incorrect-td4037608.html

In that thread, you can see what your Not16.cmp file is supposed to look like. If you change your current Not16.cmp file to include the right data, your test should work.