Gowin

The GowinPlatform class provides a base platform to support Gowin toolchains.

The Apicula and Gowin toolchains are supported.

class amaranth.vendor.GowinPlatform(*, toolchain='Apicula')

Apicula toolchain

Required tools:
  • yosys

  • nextpnr-himbaechel with Gowin uarch

  • gowin_pack

The environment is populated by running the script specified in the environment variable AMARANTH_ENV_APICULA, if present.

Available overrides:
  • add_preferences: inserts commands at the end of the CST file.

Build products:
  • {{name}}.fs: binary bitstream.

Gowin toolchain

Required tools:
  • gw_sh

The environment is populated by running the script specified in the environment variable AMARANTH_ENV_GOWIN, if present.

Available overrides:
  • add_preferences: inserts commands at the end of the CST file.

Build products:
  • {{name}}.fs: binary bitstream.