A package for converting Boolean expressions to circuit diagrams
Project description
DigiCircuit
DigiCircuit is a Python library to convert Boolean expressions to circuit diagrams.
Installation
pip install digicircuit
Usage
- Create an input file with Boolean expressions (e.g.,
data.txt):
1 f(a,b,c,d) = a'b'cd' + abc'd + ab'c'd
2 f(a,b,c,d) = acd
2 f(a,b,c,d) = (a+b+c+d)(a'+b'+d')
- Run the command to create circuit diagrams:
digicircuit data.txt
The circuit diagrams will be created in the circuits directory in the form of LaTeX files.
Options
--output_diror-o: Specify the output directory (default:circuits)--scaleor-s: The scale of the circuit diagrams (default: 1.0)
Example:
digicircuit data.txt --output_dir my_circuits --scale 1.5
Requirements
- Python >= 3.6
- numpy
- pandas
- openpyxl
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
digitalcircuit-0.1.0.tar.gz
(16.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file digitalcircuit-0.1.0.tar.gz.
File metadata
- Download URL: digitalcircuit-0.1.0.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62dbb2346921f2b51645a3c7db3415f5243773aa7a40520596e44d4dce280814
|
|
| MD5 |
2ed0dbb7212464bce43f073f4bf07e1f
|
|
| BLAKE2b-256 |
893559ed1644b352ed0ee8dff572375286412e84e39fcac162054dae40fbbe5a
|
File details
Details for the file digitalcircuit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: digitalcircuit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78d5ca05c1578fb267044716faf6023bc3e77a799ee4514fa21674522634d2dc
|
|
| MD5 |
76c1c86eccc76eb2a8abd7d88b7b5604
|
|
| BLAKE2b-256 |
106a1a7583e52f94182ac00ad7b705670449851116f81020fd636418dd2567d8
|