Skip to content

FPGA Synthesis

Because vctx compiles to standard SystemVerilog, it works seamlessly with open-source FPGA toolchains.

Terminal window
vctx check examples/blinky.vctx
vctx test examples/blinky.vctx
Terminal window
vctx sv --top examples/blinky.vctx
# Creates: build/Blinky.sv
Terminal window
yosys -p "read_verilog -sv build/Blinky.sv; \
synth_gowin -top Blinky -json build/blinky.json" \
-l build/synthesis.log
Terminal window
nextpnr-himbaechel \
--device GW2A-LV18PG256C8/I7 \
--json build/blinky.json \
--write build/blinky_routed.json
Terminal window
gowin_pack -d GW2A-18C -o build/blinky.fs build/blinky_routed.json
Terminal window
openFPGALoader -b tangnano9k build/blinky.fs