Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logic Simulator

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.

Features

  • 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.

Getting Started

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.

Prerequisites

Requirements to install and run the program:

  • Python [Recommended: v3.12.6]
  • git [Recommended: v2.48.1]

Installation

  1. Clone the repository
git clone https://github.com/rayvn-42/Logic-Simulator.git
cd Logic-Simulator
  1. Run the simulator
python main.py

And if every thing was set correctly, you should see:

>

and the > should be green.

Testing

To test if the simulator is working run the following help command

> help

and you should see a help menu pop up. If not reinstall the repo and try again.

Contributing

To contribute to this project:

  • 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.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages