PYNQ-CDMA-Driver
PYNQ Driver for Xilinx Central Direct Memory Access IP
Installation
pip install pynq_cdma
Usage
Currently, we only support simple DMA transfer
Auto bind
First import CDMA
from pynq_cdma import CDMA
Now if your design contains CDMA IP, Pynq will automatically bind it to a CDMA instance.
You can check its status by accessing the idle property:
from pynq import Overlay
ol = Overlay('top.bit')
print(ol.axi_cdma_0.idle)
Data transfer
import numpy as np
from pynq import allocate
input_buffer = allocate(shape=(8,), dtype=np.uint8)
output_buffer = allocate(shape=(8,), dtype=np.uint8)
for i in range(8):
input_buffer[i] = i
ol.axi_cdma_0.transfer(input_buffer, 0xF000_0000)
ol.axi_cdma_0.transfer(0xF000_0000, output_buffer)
print(output_buffer)
Metadata
Release files for pynq-cdma 0.1.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 | |
|---|---|---|---|
| pynq_cdma-0.1.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pynq_cdma-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / pynq_cdma-0.1.0.tar.gz
| Download URL | pynq_cdma-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2a2c004034c93d9b16a2ad3c2a27b6fbf28a578c5085ded985cf100a59f2abc
|
|
BLAKE2b-256 checksum How to use checksums |
02500dc4374b60258707b8559778f14b1edb65911b4423268b5ec2c96546227a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / pynq_cdma-0.1.0-py3-none-any.whl
| Download URL | pynq_cdma-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bd86771e9b3468c66235dd89a2a934949d4baf4bcae76f249ddfe3eaccc1d73
|
|
BLAKE2b-256 checksum How to use checksums |
1deca24007de9fadc727e4fbe4816c1e95f13039f92714264280a39065f05cd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|