Crates.io | warp-devices |
lib.rs | warp-devices |
version | 0.3.1 |
source | src |
created_at | 2022-10-12 14:59:34.52642 |
updated_at | 2022-10-12 16:02:39.488063 |
description | Library for interfacing with Xilinx XDMA FPGAs |
homepage | |
repository | https://github.com/Quarky93/warpshell |
max_upload_size | |
id | 686370 |
size | 59,613 |
This is a user-space library for interfacing with Xilinx FPGAs using the Xilinx XDMA driver. The library is a part of the warpshell project to improve Vivado flow support on the Varium C1100 compute accelerator card. Support for other cards from the Alveo and Versal series may be added in the future.
See the warpshell README for more information.
Install Rust
cargo build
to just build
Currently it is required to change character device permissions from the ones set (incorrectly) by the XDMA kernel driver. The host-to-card devices should be write-only. The card-to-host devices should be read-only.
To run benchmarks without sudo
, all XDMA character devices should be assigned to a group which
also contains the user who is running the benchmarks.
There is a handy script for that.
cargo test
to build and run unit tests
RUST_LOG=debug cargo test -- --nocapture
to show debug logs in all tests
cargo install cargo-criterion
to install the Cargo Criterion subcommand
cargo criterion --output-format verbose
to build and run benchmarks
cargo run --example cms_regs
to read CMS register values