Python as a Hardware Description Language
What is MyHDL?
MyHDL is a free, open-source package for using Python as a hardware description and verification language.
To find out whether MyHDL can be useful to you, please read:
MyHDL is available under the LGPL license. See
The project website is located at http://www.myhdl.org
The manual is available on-line:
To find out what's new in this release, please read:
It is recommended to install MyHDL (and your project's other dependencies) in a virtualenv.
Installing the latest stable release:
pip install myhdl
Unfortunately the version on PyPI is quite behind the current development status, so you are better off installing the stable master branch directly from this GitHub repository:
pip install git+https://github.com/myhdl/myhdl.git@master
To install a local clone of the repository:
pip install -e path/to/dir
To install a specific commit hash, tag or branch from git:
pip install git+https://github.com/myhdl/myhdl@f696b8
You can test the proper installation as follows:
To install co-simulation support:
Go to the directory
cosimulation/<platform> for your target platform
and following the instructions in the
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.