AVL-AXI-STREAM - Apheleia Verification Library AMBA AXI-STREAM Verification Component
AVL-AXI-STREAM has been developed by experienced, industry professional verification engineers to provide a simple,
extensible verification component for the AMBA AXI-STREAM Bus
developed in Python and the AVL library.
AVL is built on the CocoTB framework, but aims to combine the best elements of
UVM in a more engineer friendly and efficient way.
CocoTB 2.0
AVL-AXI-STREAM now supports CocoTB2.0 https://docs.cocotb.org/en/development/upgrade-2.0.html. This was introduced in v0.2.0.
All older versions support v1.9.1 and will fail if run with CocoTB 2.0.
To upgrade follow the instructions given on the link above.
Protocol Features
| Signal | Source | Width | Description |
|---|---|---|---|
| ACLK | Clock | 1 | ACLK is a global clock signal. All signals are sampled on the rising edge of ACLK. |
| ARESETn | Reset | 1 | ARESETn is a global reset signal. |
| TVALID | Transmitter | 1 | TVALID indicates the Transmitter is driving a valid transfer. A transfer takes place when both TVALID and TREADY are asserted. |
| TREADY | Receiver | 1 | TREADY indicates that a Receiver can accept a transfer. |
| TDATA | Transmitter | TDATA_WIDTH | TDATA is the primary payload used to provide the data that is passing across the interface. TDATA_WIDTH must be an integer number of bytes and is recommended to be 8, 16, 32, 64, 128, 256, 512 or 1024-bits. |
| TSTRB | Transmitter | TDATA_WIDTH/8 | TSTRB is the byte qualifier that indicates whether the content of the associated byte of TDATA is processed as a data byte or a position byte. |
| TKEEP | Transmitter | TDATA_WIDTH/8 | TKEEP is the byte qualifier that indicates whether content of the associated byte of TDATA is processed as part of the data stream. |
| TLAST | Transmitter | 1 | TLAST indicates the boundary of a packet. |
| TID | Transmitter | TID_WIDTH | TID is a data stream identifier. TID_WIDTH is recommended to be no more than 8. |
| TDEST | Transmitter | TDEST_WIDTH | TDEST provides routing information for the data stream. TDEST_WIDTH is recommended to be no more than 8. |
| TUSER | Transmitter | TUSER_WIDTH | TUSER is a user-defined sideband information that can be transmitted along the data stream. TUSER_WIDTH is recommended to be an integer multiple of TDATA_WIDTH/8. |
| TWAKEUP | Transmitter | 1 | TWAKEUP identifies any activity associated with AXI-Stream interface. |
Component Features
- All protocol features supported
- Simple RTL interface to interact with HDL and define parameter and configuration options
- Transmitter transaction and packets sequences, sequencer and driver with easy to control rate limiter and wakeup control
- Receiver driver with rate control
- Monitor
- Bandwidth monitor generating bus activity plots over user defined windows during simulation
- Functional coverage including performance measurements
- Searchable trace file generation
📦 Installation
Using pip
# Standard build
pip install avl-axi-stream
# Development build
pip install avl-axi-stream[dev]
Install from Source
git clone https://github.com/projectapheleia/avl-axi-stream.git
cd avl-axi-stream
# Standard build
pip install .
# Development build
pip install .[dev]
Alternatively if you want to create a virtual environment rather than install globally a script is provided. This will install, with edit privileges to local virtual environment.
This script assumes you have Graphviz and appropriate simulator installed, so all examples and documentation will build out of the box.
git clone https://github.com/projectapheleia/avl-axi-stream.git
cd avl-axi-stream
source avl-axi-stream.sh
📖 Documentation
In order to build the documentation you must have installed the development build.
Build from Source
cd docs
make html
<browser> build/html/index.html
🏃 Examples
In order to run all the examples you must have installed the development build.
To run all examples:
cd examples
# To run
make -j 8 sim
# To clean
make -j 8 clean
To run an individual example:
cd examples/THE EXAMPLE YOU WANT
# To run
make sim
# To clean
make clean
The examples use the CocoTB Makefile and default to Verilator with all waveforms generated. This can be modified using the standard CocoTB build system.
🧹 Code Style & Linting
This project uses Ruff for linting and formatting.
Check code for issues:
ruff check .
Automatically fix common issues:
ruff check . --fix
📧 Contact
- Email: avl@projectapheleia.net
- GitHub: projectapheleia
Metadata
Release files for avl-axi-stream 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| avl_axi_stream-0.5.0.tar.gz | 15.8 kB | Without provenance | Details for avl_axi_stream-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| avl_axi_stream-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for avl_axi_stream-0.5.0-py3-none-any.whl |
Total release size: 37.8 kB
Release files / avl_axi_stream-0.5.0.tar.gz
| Download URL | avl_axi_stream-0.5.0.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14b29cc384d64159cdb2f1ac8930173159cdb1346d93bd5c03042d309a566ff7
|
|
BLAKE2b-256 checksum How to use checksums |
0bf6c6a0aa967102865b0478bf67e5f74535f17a0db7c1c696c2c7e1a13bdfd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / avl_axi_stream-0.5.0-py3-none-any.whl
| Download URL | avl_axi_stream-0.5.0-py3-none-any.whl |
|---|---|
| Size | 22.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4b645f4cbc968de613977eca2a3885c7338913a5d6030722aef4c046f24e491
|
|
BLAKE2b-256 checksum How to use checksums |
f0efc4c72b8fd7547b926652588d4fa3c04580e86464533c21269852a021bc72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for avl-axi-stream 0.5.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.