cli · flashbuild and load a project

dewfpga flash

What does its help text say?

dewfpga sim | bit | flash | clean [top]
                                 work on the .sv files in the current folder. top = the module nothing else
                                 instantiates (or name it: a module or a file). pins = <top>.xdc or the only .xdc
                                 In a Vivado project (a folder with one .xpr, or anywhere under its .srcs): the
                                 project's enabled files, its top module, its .xdc; outputs land next to the .xpr

From dewfpga --help, as bin/dewfpga prints it.

What does the README say?

dewfpga sim|bit|flash|clean [top]   build a flat folder or a Vivado project

Measured 2026-09-19 and 20 on an M2 with 8 GB: clean install 3 min 37 s to 4 min 17 s (three runs), about 0.3 GB on disk (237 MB measured on 7 October; the optional agent SDK adds 51 MB; about 1 GB while it builds, the installer asks for 2 GB free); second run 2.7 s; bit 4.6 s, peak 552 MB RAM; chipdb generation peak 859 MB RAM. On the board, 19 and 20 September, five designs: the blink template, switches to LEDs, the Lab 2 adder/subtractor, the display counter and the traffic-light FSM, each built with dewfpga flash. With yosys 0.69 the chain built by the script produces byte-identical .frames to the hand-built chain that lit the LED; with another yosys the netlist differs and only the I/O placement is compared.

From the README.

What does the guide say?

all good.

Total: 217 s. Log: /Users/you/fpga/install.log
Next:  dewfpga new blink && cd blink && dewfpga flash
dewfpga new blink    # prints: blink/ ready:  cd blink && dewfpga flash    (VS Code: ⌘⇧B)
cd blink
dewfpga sim          # simulation
dewfpga bit          # .sv -> .bit
dewfpga flash        # .bit -> the board; runs bit first when the .bit is missing or older than the .sv

dewfpga flash:

dewfpga sim|bit|flash|clean [top]   build a flat folder or a Vivado project

From section 2, How do you install it in one line?.

dewfpga new blink gives the same blink.sv, blink_tb.sv and blink.xdc without the Makefile, and its tasks.json says dewfpga flash instead.

From section 4, What is in the project folder?.

With dewfpga: put the .sv files and the .xdc in one folder, cd into it, dewfpga flash. With lab4.sv and Basys3_Master.xdc in the folder that is all. With several .sv files, name the top: dewfpga flash lab4.

From section 5, How do you use it for your own lab?.

How does a coding agent call it?

dewfpga check --json, dewfpga sim [top] --json, dewfpga bit [top] --json and dewfpga flash [top] --json print exactly one JSON object on stdout. Text commands retain their existing output. flash programs attached hardware; request it only when the user has authorized programming the board.

Tool Arguments Behavior
flash absolute project, optional timeout_s build and program the board; default 120 s, max 300 s

From the agent interface: the machine-readable CLI and the MCP server.

Which errors can it stop with?

6 codes in the error catalog.

Which patch notes name it?


previous: dewfpga bit
next: dewfpga tops
Every command: dewfpga install · dewfpga check · dewfpga run · dewfpga sim · dewfpga bit · dewfpga flash · dewfpga clean · dewfpga tops · dewfpga new · dewfpga uninstall · dewfpga vscode · dewfpga … --json · dewfpga mcp