#fpga #astronomy #casper #devices #transport #interface #tested

casperfpga

A library for monitor and control of CASPER FPGA deivces

4 releases

0.2.2 Jan 25, 2024
0.2.1 Jan 21, 2024
0.1.1 Jul 8, 2023
0.1.0 Mar 17, 2023

#255 in Hardware support

Download history 6/week @ 2024-01-23 2/week @ 2024-02-13 15/week @ 2024-02-20 12/week @ 2024-02-27 17/week @ 2024-03-12 18/week @ 2024-03-19 2/week @ 2024-03-26 18/week @ 2024-04-02

55 downloads per month

Apache-2.0 OR MIT

1MB
3.5K SLoC

casperfpga_rs

license docs rustc build status Codecov

A Rust library for interfacing with CASPER Collaboration FPGA devices. Unlike the python version, this library is intended for mission-critical deployments, where breaking changes, memory bugs, and slow/interpreted languages are unacceptable. Additionally, this library will be rigorously tested, documented, and utilize fully specified interfaces.

Goals

  • Lightweight, fast, correct by construction interfaces
  • Type-checked constructors based on device information (FPG file)
  • Generic fall back interfaces

Future Work

Yellow Blocks

There are quite a few missing yellow blocks in this library, mainly due to the fact that I don't have hardware to test them on. PRs (or hardware donations) welcome!

Transports

Reconcile katcp requirements with "as implemented" details from CASPER devices to add katcp as a transport mechanism.

Device Tree

Currently, .fpg files are the source of automatically generating typesafe interfaces for a given design. If CASPER adopts device tree, we'd want to write a parser that performs the same translation.

Python Integration

We started working on a python wrapper utilizing py03 to act as a multipurpose rewrite of the python version. This won't be as typesafe (of course), but should act as a more stable and tested stand-in for the previous python version.

Contributing

Please run cargo +nightly fmt --all before commiting as well as check clippy with cargo clippy --all.

License

casperfpga_rs is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.

Dependencies

~6–16MB
~191K SLoC