py4hw is a library to model, and simulate digital logic circuits. It propomotes the use of structural design description to build hardware, and it is highly influenced by the ideas behind JHDL.
Project description
py4hw
py4hw is an HDL language 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
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.