Skip to main content

tri fpga — FPGA Synthesis & Inference

FPGA synthesis pipeline, bitstream management, and ternary inference on hardware.

Subcommands

CommandArgumentsDescription
tri fpga statusShow FPGA device and bitstream status
tri fpga buildBuild FPGA project
tri fpga synthRun synthesis pipeline
tri fpga flashFlash bitstream to FPGA
tri fpga verifyVerify loaded bitstream
tri fpga uartUART communication test
tri fpga snapSnapshot current FPGA state
tri fpga eyeEye diagram visualization
tri fpga inferRun ternary inference on FPGA

Examples

tri fpga status                    # Check FPGA status
tri fpga synth # Run synthesis
tri fpga flash # Flash bitstream
tri fpga verify # Verify bitstream
tri fpga infer # Run inference
tri fpga uart # Test UART

Hardware

  • Target: Xilinx 7-series (openXC7 toolchain)
  • Bitstream: fpga/openxc7-synth/hslm_full_top.bit
  • Resources: 4 blocks, 135 BRAM36-eq (100%), 4,267 LUT (6.7%), 0 DSP48 — Yosys 0.63 verified
  • Performance: 5,000 tok/s ternary inference

Handler

File: src/tri/tri_register.zig