FPGA targets

The ACM gateware (modules/acm/acm_fpga) builds for four boards. The shared RTL in rtl/ is vendor-neutral (no primitives), so each target only adds a board layer: top.v, pin constraints, timing constraints, clock divider and its fpga_id.

targetrolestatus
Tang Nano 20K (GW2AR-18C)first bring-up board, Nucleo-H755 over FMCworking
Tang Primer 25K (GW5A-25)second Gowin target, same datapathworking
Basys 3 (XC7A35T)Xilinx stand-in until the main board is fabbedbuilds, timing met, untested on hardware
MAIN_COMPUTE_BOARD (XC7A100T)nominal board, see signalmesh_CAD/boards/MAIN_COMPUTE_BOARDin layout, stub top builds

device resources

Numbers from the vendor datasheets (Gowin DS226/DS1103, Xilinx DS180). Verify against the current datasheet before relying on a margin.

GW2AR-18CGW5A-25XC7A35TXC7A100T
part on boardGW2AR-LV18QN88C8/I7GW5A-LV25MG121NC1/I0XC7A35T-1CPG236CXC7A100T-2FGG484I
LUTs20,736 LUT423,040 LUT420,800 LUT663,400 LUT6
flip-flops15,55223,04041,600126,800
distributed RAM41 Kb180 Kb400 Kb1,188 Kb
block RAM828 Kb (46 x 18 Kb)1,008 Kb (56 x 18 Kb)1,800 Kb (50 x 36 Kb)4,860 Kb (135 x 36 Kb)
multipliers / DSP48 x 18x1828 x 27x18 DSP90 DSP48E1240 DSP48E1
PLL / clock tiles2 PLL6 PLL5 CMT (MMCM + PLL)6 CMT (MMCM + PLL)
serial transceivers--not used on Basys 34 GTP, 6.25 Gb/s
ADC-yes (on-die)XADC 12-bit 1 MSPSXADC 12-bit 1 MSPS
in-package memory64 Mbit SDRAM---
speed gradeC8/I7C1/I0-1-2

A LUT6 holds roughly 1.6x the logic of a LUT4, so the 35T is about 1.5x a GW5A-25 in practice and the 100T is about 3x the 35T. The DSP count is what limits voice count and FX.

board features

Tang Nano 20KTang Primer 25KBasys 3MAIN_COMPUTE_BOARD
fabric clock27 MHz50 MHz50 MHz (MMCM from the 100 MHz oscillator)100 MHz SYSCLK + MMCM
audio clockdivided from 27 MHzdivided from 50 MHzdivided from 100 MHz24.576 / 22.5792 MHz XOs
TICK_DIV for 48 kHz56210421042MCLK based
fpga_id0x20180x50250x7035 (planned)0x7100 (planned)
external memory64 Mbit SDRAM (in package)--DDR3L 512 MB x16, 1.6 GB/s
config flashSPI flash on boardSPI flash on module32 Mbit Quad SPInone: STM32 loads it over SelectMAP
programming / debugonboard USB JTAG + UARTonboard USB JTAG + UART (dock)onboard USB JTAG + UART (FT2232)JTAG headers (Xilinx 2x7, Digilent 1x6)
user IO for the buspin headersPmods / headers on the dock4 Pmods, 32 pins (JA JB JC JXADC)dedicated bank 14 to the STM32
audio outvia STM32 DACvia STM32 DACvia STM32 DAC (or Pmod I2S)CS4344 DAC + OPA1656, TDM backplane
extrasHDMI, TF card, RGB LED-16 sw, 16 LED, 5 btn, 7-seg, VGASFP x2, VITA 57.1 HPC, Pmod x2

The FMC bus width and mode are a per-target choice: the board's top.v picks the FPGA-side bridge and the STM32 BSP sets the matching FMC bank config. The datapath behind the bridge is the same everywhere.

targetMCUFMC modepins
Tang Nano 20KNucleo-144 H75516-bit muxed AD, async, NADV latch~21
Tang Primer 25KNucleo-144 H75516-bit muxed AD, async~21
Basys 3Nucleo-144 H75516-bit muxed AD (async, then sync with FMC_CLK)21-22 on 3 Pmods
MAIN_COMPUTE_BOARDSTM32H755XIH6 on board32-bit sync NOR/PSRAM, A0-A18, NBL0-3, 120-125 MHz~60

The 32-bit bus does not fit on the Basys 3, even with rework: 32 Pmod pins plus the 14 VGA lines is still short, and the VGA lines go through the resistor-ladder DAC resistors. The Basys 3 runs the same 16-bit bus as the Gowin boards. The 32-bit sync bridge is verified in cocotb until the main board exists.

toolchains

targetsynth / P&Rprogram
Tang Nano 20K, Tang Primer 25KGowin EDA (gw_ide)openFPGALoader -b tangnano20k / -b tangprimer25k
Basys 3Vivado ML Standard (free)openFPGALoader -b basys3, or Vivado hardware manager
MAIN_COMPUTE_BOARDVivado ML Standard (MIG needed for DDR3)STM32 SelectMAP loader, or JTAG

installing Vivado

Installed: Vivado ML Standard 2025.2, Artix-7 devices only, at /tools/Xilinx (about 52 GB), from the offline installer FPGAs_AdaptiveSoCs_Unified_SDI_2025.2_1114_2157. Shell setup:

source /tools/Xilinx/2025.2/Vivado/settings64.sh

Cable drivers (once, as root), then replug the board:

cd /tools/Xilinx/2025.2/Vivado/data/xicom/cable_drivers/lin64/install_script/install_drivers
sudo ./install_drivers

What each installer product is, and whether this project needs it:

productwhat it isneeded
Vivadosynthesis, P&R, bitstream, IP (MIG, clocking wizard), hardware manager, hw_serveryes, ML Standard edition
Vitisfull software platform (HLS, accelerators, embedded)no
Vitis Embedded Developmentcompiler and debugger for soft cores (MicroBlaze, Arm DesignStart M1/M3)later, only for the soft core on the main board
BootGenbuilds boot images for Zynq / Versalno (Artix-7 bitstreams come from Vivado)
Lab Editionprogramming and debug only, no synthesisno (included in Vivado)
Hardware Serverstandalone hw_server for a remote programming hostno (included in Vivado)
Power Design Managerpower estimation for UltraScale+ / Versalno (use Vivado report_power)

To add a product later without reinstalling, run xsetup -b Add from the installer, or pick "Add Design Tools or Devices" in the GUI.

build layout

modules/acm/acm_fpga/
  rtl/                    shared, vendor-neutral RTL
  rtl.f                   shared RTL file list for the vivado flow
  boards/
    gw2ar18/              Tang Nano 20K, gowin ide project
    gw5a25/               Tang Primer 25K, gowin ide project
    xc7a35t_basys3/       top.v, basys3.xdc, board.tcl
    xc7a100t_mcb/         top.v (stub), mcb_pins.xdc (synced), board.tcl
  scripts/
    vivado/build.tcl      non-project batch build
    vivado/project.tcl    creates a .xpr for the gui
    sync_mcb_xdc.sh       pulls mcb_pins.xdc from signalmesh_CAD
  Makefile
  sim/cocotb/             benches

board.tcl holds the part, top module, constraint files and board-only sources. A new Xilinx target is a new boards/<part>_<board>/ folder plus one line in the Makefile.

Basys 3 Pmod wiring to the Nucleo-144 H755 (pins from modules/apm/tests/test_fmc_fpga.c):

signalNucleoBasys 3
AD0-AD3PD14 PD15 PD0 PD1JA1-JA4
AD4-AD7PE7 PE8 PE9 PE10JA7-JA10
AD8-AD11PE11 PE12 PE13 PE14JB1-JB4
AD12-AD15PE15 PD8 PD9 PD10JB7-JB10
NE1PC7JC1
NADV (NL)PB7JC2
NOEPD4JC3
NWEPD5JC4
NWAITPC6JC7
FMC_CLK (reserved)PD3JC8
GNDGNDPmod pin 5 or 11

building and loading

From modules/acm/acm_fpga:

make BOARD=basys3 bit       # bitstream in build/basys3/top.bit
make BOARD=basys3 prog      # load over USB-JTAG with openFPGALoader (no vivado needed)
make BOARD=mcb bit          # MAIN_COMPUTE_BOARD stub
make sync-xdc               # after the CAD pin plan changes

Each build writes to build/<board>/ (gitignored):

filewhat it is
top.bitbitstream
post_synth.dcp, post_route.dcpdesign checkpoints, open these in the gui
reports/timing.rpttiming summary, WNS and the worst paths
reports/util.rpt, util_hier.rptresource use, flat and per module
reports/io.rptevery pin with its standard and bank
reports/clocks.rpt, power.rpt, drc.rptclock buffers, power estimate, design rule checks
vivado.logfull log

The build exits with an error if timing is not met.

viewing designs in Vivado

Two ways in. The scripted build is the source of truth; the gui is for looking.

Routed checkpoint (fastest). make BOARD=basys3 gui, or start vivado and use File > Checkpoint > Open on build/basys3/post_route.dcp. This opens the placed and routed design with no project. Useful views from the Window menu or the Flow Navigator:

to seewhere
placement and routing on the dieWindow > Device
pin assignments and banksWindow > I/O Ports, or Layout > I/O Planning
timing and the worst pathsReports > Timing > Report Timing Summary, then double-click a path
resource use per moduleReports > Report Utilization, then the Hierarchy view
schematic of a module or pathselect a cell or path, press F4
clock networkReports > Report Clock Networks

Selecting a path in the timing report highlights it in the Device and Schematic views.

Project (full gui flow). make BOARD=basys3 project, then File > Project > Open on build/basys3/proj/acm_xc7a35t_basys3.xpr. Sources point at the repo files. Here the Flow Navigator runs Synthesis, Implementation and Generate Bitstream, and you can open the elaborated RTL schematic (RTL Analysis > Open Elaborated Design) before synthesis. Changes you make to sources in the gui land in the repo files, but project settings do not feed back into the scripted build, so put lasting changes in board.tcl or the XDC.

Hardware manager. Open Hardware Manager > Open Target > Auto Connect, then Program Device with build/basys3/top.bit. This needs the cable drivers installed. make prog does the same without the gui.

Simulation. The cocotb benches stay the main simulation flow (make sim). Vivado's simulator (XSim) is available from the project's Flow Navigator if a waveform view of a Xilinx primitive such as the MMCM is needed.