Skip to main content

py4hw is a library to model, and simulate digital logic circuits. It promotes the use of structural design style to build hardware and it is highly influenced by the ideas behind JHDL.

Project description

py4hw

Join the chat at https://gitter.im/davidcastells/py4hw

py4hw is an HDL library based on python to create digital circuits following a structural design methodology. It is highly influenced by the JHDL principles.

clock is implicit

A hardware system is defined by HWSystem

All Hardware blocks inherit from class Logic

There are 2 types of Logic circuits structural and behavioural ones.

Structural circuits just instantiate other circuits.

Behavioural circuits describe the circuit behaviour by some functions. There are 2 types of behavioural circuits: Combinational and Sequential.

Combination circuits must implement the "propagate" function

Sequential circuits must implement the "clock" function.

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

py4hw-0.0.6.tar.gz (40.2 kB view hashes)

Uploaded Source

Built Distribution

py4hw-0.0.6-py3-none-any.whl (48.3 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