OccupyMars2025 / Nand2Tetris

https://csdiy.wiki/en/%E4%BD%93%E7%B3%BB%E7%BB%93%E6%9E%84/N2T/
1 stars 0 forks source link

[FYI] how the 16 bits of one instruction relate to the interface of the ALU ? #1

Open OccupyMars2025 opened 2 months ago

OccupyMars2025 commented 2 months ago

In Figure 4.5 (Hack instruction set), if you examine it carefully, you can find that the "cccccc" corresponds to the 6 input ports "zx nx zy ny f no" of the ALU exactly, that is, instruction[11] is connected to "zx" ..., this observation should greatly simplify your implementation of nand2tetris/projects/5/CPU.hdl