lakshmi-sathi / Logic_Simulator

A simple python-based logic simulator for digital logic circuits. Input the digital circuit in the standard text file form and provide the input vector to generate the corresponding output of the logic circuit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logic_Simulator

Python based simulation of logic for digital logic circuits. Input the digital circuit in the standard text file form and provide the input vector to generate the corresponding output of the logic circuit

Dependencies:

itertools, sys

Usage:

python3 main.py
Eg:- python3 main.py s27 1101010
Note that the digital circuit file should be placed in the same location as the script in the standart text file representation.

Circuit File:

s27.txt, s298_2.txt, s344f_2.txt and s349f_2.txt are the sample circuit files which you can directly apply the script upon. Any digital circuit represented in this standard format can be used with this script.

About

A simple python-based logic simulator for digital logic circuits. Input the digital circuit in the standard text file form and provide the input vector to generate the corresponding output of the logic circuit.

License:GNU General Public License v2.0


Languages

Language:Python 100.0%