16bit syntax problems

Posted by TurdFurgusand on
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/16bit-syntax-problems-tp4001846.html

Hello everyone. Yes, I did read the Appendix a few times. For some reason, I can't get the syntax right with multi-bit bus input and outputs, I always get an error. I'm editing the .hdl files for Chapter 1, to implement them in the Hardware Simulator. I drew all of the Chapter 1 implementations out on paper. I know how to do all of them, so no one will take away from my learning if they show me how it's coded.

Here is some example code that doesn't work.

    IN  in[16];
    OUT out[16];

    PARTS: Foo(a[0..15] = in[0..15], b[0..15] = in[0..15], out = out[0..15]);


Thanks!