SebLague / Digital-Logic-Sim

https://sebastian.itch.io/digital-logic-sim
Other
3.54k stars 431 forks source link

Output node broken and flashing #171

Closed Headshot56 closed 1 year ago

Headshot56 commented 1 year ago

I tried to setup a simple or gate after updating to the newest version but when I connect more than one line to output it will flash extremely fast when it is supposed to hold unless both wires are on. This obviously breaks or gates making it impossible to use. https://drive.google.com/file/d/1PteQT23b2yT4uSVg1Rr6-SvVDFPSdEOV/view?usp=sharing

milochristiansen commented 1 year ago

That is intended behavior.

You do not make an OR gate by connecting two wires to a pin. For example, one possible way to make an OR gate is NOT A NAND NOT B, where NAND is NOT (A AND B).

Headshot56 commented 1 year ago

What about the hyper speed?

milochristiansen commented 1 year ago

The fast flashing is how the sim indicates that a wire has an "indeterminate" or invalid state.