FPGA Synthesis
Complete FPGA Flow
Section titled “Complete FPGA Flow”Because vctx compiles to standard SystemVerilog, it works seamlessly with open-source FPGA toolchains.
Step-by-Step Example (Tang Nano 9K)
Section titled “Step-by-Step Example (Tang Nano 9K)”Verify your design
Section titled “Verify your design”vctx check examples/blinky.vctxvctx test examples/blinky.vctxGenerate SystemVerilog
Section titled “Generate SystemVerilog”vctx sv --top examples/blinky.vctx# Creates: build/Blinky.svSynthesize (Yosys)
Section titled “Synthesize (Yosys)”yosys -p "read_verilog -sv build/Blinky.sv; \ synth_gowin -top Blinky -json build/blinky.json" \ -l build/synthesis.logPlace & Route (nextpnr)
Section titled “Place & Route (nextpnr)”nextpnr-himbaechel \ --device GW2A-LV18PG256C8/I7 \ --json build/blinky.json \ --write build/blinky_routed.jsonPack Bitstream
Section titled “Pack Bitstream”gowin_pack -d GW2A-18C -o build/blinky.fs build/blinky_routed.jsonProgram
Section titled “Program”openFPGALoader -b tangnano9k build/blinky.fsNeed an offline copy? Download Full Manual (.md)