Skip to main content

Python Package to realize combinational logic gates

Project description

Logic_Py

Made with Python3 GitHub license Github version

This Python package enables the user to realise Logic based combinational circuits built on basic logic gates. All the inputs must be binary and of same length for the functions to perform desired operation.

Installation

  • pip install logic-py
  • from Logic_Py import AND, full_adder, plot_secondary etc.,

Basic Gates

There are 7 basic gates, all other secondaary and combinational gates are the combinations of these 7 basic gates.

  • AND, OR, NOT, NAND, NOR,XNOR,XOR
  • ex : from Logic_Py import AND

Secondary Gates

There are 16 Secondary gates, which take 4 binary inputs and 1 binary output.

  • AND_AND, AND_OR, AND_NAND, AND_NOR, OR_AND, OR_OR, OR_NAND, OR_NOR, NAND_AND, NAND_OR, NAND_NAND, NAND_NOR, NOR_AND, NOR_OR, NOR_NAND, NOR_NOR,

Combinational Gates

Few combinational circuits are added as start in this beta version, few more will follow in the coming update.

  • Binary2Gray, Gray2Binary, EParity_gen, EParity_check, OParity_gen, OParity_check

Arithmatic Gates

Two arithmatic gates are added for the beta version, more will follow in the coming update.

  • Half Adder
  • Full Adder

Plots

Plots for the basic gates, secondary gates and arithmatic gates are available with the current version.

  • plot_full_adder, plot_half_adder, plot_secondary, plot_basic

Citation

Use Github for further updates. Please kindly cite incase you use the package and fork.

Use Hellow world example for the syntax or use help function in python console ex: help(AND)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Logic_Py-0.3.4.1.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

Logic_Py-0.3.4.1-py3-none-any.whl (14.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page