PyCircTools is a python package wich contains tools to build circuits using python 3. It is a work in progress, and will be updated frequently to add

LovetheFrogs/PyCircTools

submited by
Style Pass
2022-06-21 22:00:08

PyCircTools is a python package wich contains tools to build circuits using python 3. It is a work in progress, and will be updated frequently to add more modules.

at the start of your code, and substitute subpackage with the package you want, and modules with the modules you want to import to your project.

Here is an in depth explanation for the PyCircTools.LogicGates module. LogicGates adds implementation for common logic gates used in circuit design. It allows to create gates with as many inputs as the user decides (except for the NOT gate). For further reference about each of the gates, check it's section in this README.

The NOT gate is a simple logic gate wich simply inverts the input. It implements the logical negation (¬) and has one input and one output. The NOT gate symbol and truth table is shown below.

The AND gate is a logic gate with two or more inputs that implements the logical conjunction (^). It's output is True only when all of the inputs are True. If any of them is set to False, the output willthen be False. Below you can find the AND truth table.

Leave a Comment
Related Posts