Gowin Boards
The torii.platform.vendor.gowin
module provides a base platform to support Gowin devices with the Apicula and the vendor toolchains.
- class torii_boards.gowin.tang_nano.TangNanoPlatform(*, toolchain='Apicula')
- part = 'GW1N-LV1QN48C6/I5'
- family = 'GW1N-1'
- default_clk = 'OSC'
- osc_frequency = 24000000
- pretty_name = 'Tang Nano'
- description = 'Sipeed Tang Nano Gowin GW1N-1 Development Board'
- resources = [(resource clk24 0 (pins i 35) (clock 24000000.0) (attrs IO_TYPE='LVCMOS33')), (resource rgb_led 0 (subsignal r (pins o 18)) (subsignal g (pins o 16)) (subsignal b (pins o 17)) (attrs IO_TYPE='LVCMOS33')), (resource button 0 (pins-n i 15) (attrs IO_TYPE='LVCMOS33')), (resource button 1 (pins-n i 14) (attrs IO_TYPE='LVCMOS33')), (resource uart 0 (subsignal rx (pins i 8)) (subsignal tx (pins o 9)) (attrs IO_TYPE='LVCMOS33' PULL_MODE='UP')), (resource spi_flash_1x 0 (subsignal cs (pins-n o 19)) (subsignal clk (pins o 20)) (subsignal copi (pins o 22)) (subsignal cipo (pins i 23)) (subsignal wp (pins-n o 24)) (subsignal hold (pins-n o 25)) (attrs IO_TYPE='LVCMOS33')), (resource spi_flash_2x 0 (subsignal cs (pins-n o 19)) (subsignal clk (pins o 20)) (subsignal dq (pins io 22 23)) (attrs IO_TYPE='LVCMOS33')), (resource spi_flash_4x 0 (subsignal cs (pins-n o 19)) (subsignal clk (pins o 20)) (subsignal dq (pins io 22 23 24 25)) (attrs IO_TYPE='LVCMOS33')), (resource lcd 0 (subsignal clk (pins o 11)) (subsignal hs (pins o 10)) (subsignal vs (pins o 46)) (subsignal de (pins o 5)) (subsignal r (pins o 27 28 29 30 31)) (subsignal g (pins o 32 33 34 38 39 40)) (subsignal b (pins o 41 42 43 44 45)) (attrs IO_TYPE='LVCMOS33')), (resource lcd_backlight 0 (pins o 47) (attrs IO_TYPE='LVCMOS33'))]
- toolchain_prepare(fragment, name, **kwargs)
Convert the
fragment
and constraints recorded in thisPlatform
into aBuildPlan
.
- toolchain_program(products, name)
Extract bitstream for fragment
name
fromproducts
and download it to a target.