Skip to main content

maia-hdl

maia-hdl is the Maia SDR FPGA Amaranth HDL code. See maia-sdr.org for a general introduction to the project, and also the maia-sdr/maia-sdr Github repository.

The maia-hdl Python package can be used as a library of HDL modules in third-party HDL designs.

Installation

It is not necessary to install maia-hdl in order to generate the Vivado IP cores or projects, or to run the tests and simulations. These can be run from a checkout of the source code as indicated below.

When using maia-hdl as a library in third-party packages, it can be installed with

pip install maia-hdl

or with any other method for managing Python packages.

Building the Vivado IP cores and projects

The build system for the Vivado IP cores and projects is based on Makefiles. The IP cores can be built by running make from the ip directory. A specific IP core can be built by running make from its subdirectory inside the ip directory.

The Vivado projects can be built by running make from the projects directory. A specific project cna be built by running make from its subdirectory inside the projects directory. This will create the Vivado project and block diagram, run synthesis and place and route, and finally generate the bitstream.

The IP core generation requires yosys, which is used to generate Verilog code. Yosys is already included as part of the maia-sdr-devel Docker image.

Testing

Pure Amaranth tests can be run with

python3 -m unittest

Mixed Amaranth/Verilog tests use cocotb and a Verilog simulator such as Icarus Verilog. Verilog code is generated from the Amaranth code, so the simulation involves only Verilog code and the Python code running from cocotb. The test execution of cocotb is based on Makefiles. Tests can be run by running make from the test_cocotb directory. If any of the tests fails, make exits with a non-zero exit code.

Running the mixed Amaranth/Verilog tests also requires yosys to be installed.

License

Licensed under MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT).

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.

Metadata

Release files for maia-hdl 0.6.3

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

Source distribution (sdist)

Source distribution for maia-hdl 0.6.3
File Size Uploaded Provenance Actions
maia_hdl-0.6.3.tar.gz 4.2 MB Without provenance Details for maia_hdl-0.6.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maia-hdl 0.6.3
File Interpreter ABI Platform Actions
maia_hdl-0.6.3-py3-none-any.whl Python 3 none any Details for maia_hdl-0.6.3-py3-none-any.whl

Total release size: 4.3 MB

Release files / maia_hdl-0.6.3.tar.gz

Download URL maia_hdl-0.6.3.tar.gz
Size 4.2 MB
Tags Source
SHA-256 checksum
How to use checksums
97b5ab27168613791a3609ef046f60f0e507580a165c91a6b25889a3c099e49f
BLAKE2b-256 checksum
How to use checksums
352f776c4533e673f5a083787bf3df34f7ed6ecfadf7c18169c2f6ef4997deb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / maia_hdl-0.6.3-py3-none-any.whl

Download URL maia_hdl-0.6.3-py3-none-any.whl
Size 82.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5a80aa801f8301d4095eeb7bff80d97f2d96b6d2d73ef8a4716161ed473979a2
BLAKE2b-256 checksum
How to use checksums
73e48e3197ad6956cc69de2897b927e47801be102352216f52c4b92c8801e0c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for maia-hdl 0.6.3

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