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]: Clicking on input pins resets clock #320

Closed hoosierEE closed 1 month ago

hoosierEE commented 1 month ago

Program

Hardware Simulator

Interface

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

Contact Details

No response

What happened?

I can't demonstrate Bit.hdl working because any time I click on the input pins the clock resets to 0.

To replicate:

  1. implement Bit.hdl
  2. advance the clock
  3. click on either input pin
  4. observe the clock

This also appears to modify the inputs, for example if I set load and in to 1 then advance the clock, clicking input causes the load to become zero.

Just to clarify: this issue is not related to the automated test script, only manual testing in the context of the "Chip Bit" interface (middle column on a wide screen display). When I run the tests for Bit.hdl or any other sequential chip, I can observe the clock and input pins changing, and my implementations pass all the tests.

Additional Comments

No response

Do you want to try to fix this bug?

Code of Conduct