nand2tetris / web-ide

A web-based IDE for https://nand2tetris.org
https://nand2tetris.github.io/web-ide
Other
38 stars 11 forks source link

[bug]: Or16WAY missing #302

Closed xerotolerant closed 1 month ago

xerotolerant commented 1 month ago

Program

Hardware Simulator

Interface

Website (https://nand2tetris.github.io/web-ide)

Contact Details

k.walkins@hotmail.com

What happened?

Im new to this but Or16Way seems to be missing. Im not sure now to add it.

It seems necessary to use Or16Way to make the zr output on ALU in project 2.

I tried using two Or8Ways however internal pins can't be subscripted. So it doesn't seem possible to take the first 8 bits off of one and put it on another.

Additional Comments

No response

Do you want to try to fix this bug?

Code of Conduct

xerotolerant commented 1 month ago

Didn't realize you can split pins up like this

   Mux16(a=result, b=negatedResult, sel=no, out=out, out[15]=firstOut, out[0..7]=finalLeft, out[8..15]=finalRight);