Skip to content

Pin constraints

Flux has no separate constraint file for supported boards. You bind ports to pins in the host main() by calling the hardware function with board handles.

flux::boards::TangNano20K board;
auto clk = board.onBoardClock();
auto reset = board.button(0);
auto leds = board.leds(0, 6);
auto counter = positionalCounter(clk, reset, leds);
board.instantiate(counter);

Arguments follow the order of the function’s parameters. Keep this code as a straight-line sequence of declarations in main(); the compiler reads it at build time.

Passing port names as strings, as in design.output("led", ...), still compiles but is deprecated.

--manifest-output records the resulting package pins and I/O standards. Check them against your board revision before loading anything.