eugenelepekhin / LogicCircuit

LogicCircuit – is free, open source educational software for designing and simulating digital logic circuits.
https://logiccircuit.org/
62 stars 16 forks source link

advice #4

Open shiwangyan opened 2 years ago

shiwangyan commented 2 years ago

Is it possible to add the function to change the color of high level wires? It is better to display the direction of current.

eugenelepekhin commented 2 years ago

Hi, The colors of wires are set automatically. They become red if wire is connecting pins of different bit width. So, if a user can assign them, it will become confusing with automatic coloring. These are not an electrical circuits, hence there is no current. Please elaborate if meant something else.

shiwangyan commented 2 years ago

I mean like the pictures QQ截图20220411114740 QQ图片20220411111351

shiwangyan commented 2 years ago

I know I can use the probe, but the probe is not as obvious as the wire changing color

eugenelepekhin commented 2 years ago

Thanks for clarifications. The problem with coloring wires is it will only work for one-bit wires and a lot of people are building quite sophisticated circuits. So, it will be possible only on some simple components. Plus, it will decrease the performance of running circuits, and will be visible only on slowly working ones. If you want better visible indication, you can use LED like in your example. This makes it pretty obvious where 1s and where 0s.

shiwangyan commented 2 years ago

Why does other software like Logisim work? If it is for performance reasons, you can let the users choose whether to enable this feature Using leds is a bit of a hassle

shiwangyan commented 2 years ago

QQ截图20220411185052

eugenelepekhin commented 2 years ago

I will think about what can be done. Thanks for the suggestion.