sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.29k stars 633 forks source link

Bug: D Flip-Flop #707

Closed ArmoredRodent closed 2 years ago

ArmoredRodent commented 2 years ago

Under Edit Component, there are two options for Reset Pin and Set Pin. Reset Pin works and adds a R pin.

The (possible) bug: Set Pin adds a S pin AND a R pin. Shouldn't it just add a S Pin?

Once Set Pin is set, the Reset Pin has no effect.

image

pfalstad commented 2 years ago

I was just trying to minimize the number of combinations I had to support. I haven't seen any real-life D flip flops which have set pins but no reset pins. If you don't like the reset pin, just don't use it.