- Documentation
- Flux C++ extension
- CPU and FPGA interaction
CPU and FPGA interaction
In development
Flux defines a versioned host control protocol so a processor program can read and write ports and buffers, ask for status and reach peripherals. The C++ interface is src/flux/runtime.hpp.
| Operation | Purpose |
|---|---|
| Status | Idle, configured, running or fault |
| Read scalar, write scalar | Access a port of 1 to 64 bits |
| Read buffer, write buffer | Move blocks of bytes |
| Peripheral | Commands for a named peripheral driver |
Each request and response is a frame with a 16-byte header beginning with the ASCII bytes FLUX.
Current limits
Section titled “Current limits”The protocol and runtime are exercised in simulation, including over a simulated UART. A board adapter must supply the transport, and the sample hardware designs do not yet implement the matching service on a physical board. Do not rely on this for end-to-end access to hardware yet.