Interactive Digital Logic Circuit Designer
An interactive digital logic simulator that allows users to design and test logic circuits using fundamental gates (AND, OR, NOT, NAND, NOR, XOR, XNOR). The application features a drag-and-drop interface, real-time circuit simulation, and automatic truth table generation for educational and design purposes.
The simulator uses a component-based architecture with event-driven signal propagation:
Solution: Implemented an event queue system to handle signal propagation in the correct order, preventing race conditions and ensuring accurate simulation.
Solution: Developed a graph-based cycle detection algorithm to identify and prevent feedback loops that could cause infinite propagation.
Solution: Used separate threads for simulation and rendering to maintain smooth user interaction even with complex circuits.