Skip to main content

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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynq_cdma-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynq_cdma-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pynq_cdma-0.1.0.tar.gz.

File metadata

  • Download URL: pynq_cdma-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pynq_cdma-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e2a2c004034c93d9b16a2ad3c2a27b6fbf28a578c5085ded985cf100a59f2abc
MD5 b0eaa8fcfc2b7132fb341bfb20d5b1ec
BLAKE2b-256 02500dc4374b60258707b8559778f14b1edb65911b4423268b5ec2c96546227a

See more details on using hashes here.

File details

Details for the file pynq_cdma-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pynq_cdma-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pynq_cdma-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bd86771e9b3468c66235dd89a2a934949d4baf4bcae76f249ddfe3eaccc1d73
MD5 7289f3d5af0e2eb63ea21ce73c9a0092
BLAKE2b-256 1deca24007de9fadc727e4fbe4816c1e95f13039f92714264280a39065f05cd9

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page