Skip to main content

digsim-engine

The simulator of DigSim, without its GUI: digital logic circuits in Python, Verilog synthesized by Yosys (which runs in-process, nothing else to install), VCD files for GTKWave, and the circuit files of the GUI.

pip install digsim-engine
from digsim.circuit import Circuit
from digsim.circuit.components import AND, PushButton

circuit = Circuit(vcd="and.vcd")
a = PushButton(circuit, "a")
b = PushButton(circuit, "b")
gate = AND(circuit, "gate")
a.O.wire = gate.A
b.O.wire = gate.B
circuit.init()
a.push()
b.push()
circuit.run(ns=10)
print(gate.Y.value)  # 1

The GUI application, pip install digsim-logic-simulator, uses this package. See the documentation for the Python API, Verilog components and testbenches with pytest.

Metadata

Release files for digsim-engine 1.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for digsim-engine 1.13.0
File Size Uploaded Provenance Actions
digsim_engine-1.13.0.tar.gz 143.6 kB Without provenance Details for digsim_engine-1.13.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for digsim-engine 1.13.0
File Interpreter ABI Platform Actions
digsim_engine-1.13.0-py3-none-any.whl Python 3 none any Details for digsim_engine-1.13.0-py3-none-any.whl

Total release size: 332.0 kB

Release files / digsim_engine-1.13.0.tar.gz

Download URL digsim_engine-1.13.0.tar.gz
Size 143.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9c38e41c1803548419299cf8ac01e234e6942fd73c8cf618610cc054b39d7fa5
BLAKE2b-256 checksum
How to use checksums
b0b136aca1e47f13c9245efbb25bcf5aad7139b4782dae13dd76cb4ae7c83b2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / digsim_engine-1.13.0-py3-none-any.whl

Download URL digsim_engine-1.13.0-py3-none-any.whl
Size 188.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b5ea688228cf0db4bf065b5eb9545c37cf0be6bec44f861758ecaa4462efb29
BLAKE2b-256 checksum
How to use checksums
1dde5b63483646bd96f0fe939e61467af9e795098baab4733223c33bb75f854e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for digsim-engine 1.13.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page