Re:Logicly: a logic gate simulator
by joshtynjala on Sunday May 03, 2009 @08:45PM
(#591658)
Arguable on the label reversal. As someone on Reddit explained, "a lightbulb accepts input, and switches and clocks produce output".
You can argue that, but to digital circuit designers, switches and clocks are inputs to the system you are designing, and light bulbs and LEDs are outputs of the system. This is going against convention.
You can simulate a flop with a pair of cross-linked NOR gates.
That would be an SR flop, which -like the JK one- is taught in academia but hardly (if ever) used in industry. I was referring to the edge-triggered D flop; it can also be built from gates but it should be a primitive element. If the object was to have the minimum number of primitive elements in the library, you'd need only a NAND or a NOR gate.
As long as they gave you the ability to compose elements, I'd be all over a circuit simulator that started out with nothing but NAND gates. :)
1. Please add support for sequential logic with flops.
2. Minor bug: the "input" and "output" labels are reversed on the left pane.