Logic Simulator is a simple program written in Python that emulates electronic logic gates (e.g. AND gate, NOT gate, OR gate, etc.). It can simulate a variety of logic gates and chips ranging from simple AND gates to (somewhat) Complex ALU chips.
- Simulates basic logic gates (AND, OR, NOT, NAND, XOR)
- Implements a SR Latch for sequential logic
- 1-Bit and 4-Bit Binary Adder
- CLI-based user interaction
- Supports truth tables for the simple logic gates, as for the more complex ones were calculated using a seperate script and put in respective files.
NOTE - The following instructions are designed to get this project up and running on your local system with the recommended program versions, and might not work if you have a different version.
Requirements to install and run the program:
- Clone the repository
git clone https://github.com/rayvn-42/Logic-Simulator.git
cd Logic-Simulator- Run the simulator
python main.pyAnd if every thing was set correctly, you should see:
>and the > should be green.
To test if the simulator is working run the following help command
> helpand you should see a help menu pop up. If not reinstall the repo and try again.
- Fork this repository
- Make your changes
- Send a pull request to add the changes to the main repository
For more information consider looking at the CONTRIBUTION.md file.
- Rayan Berrabah - Github
This project is licensed under the MIT License - see the LICENSE file for details