Skip to content

Commit

Permalink
pass nolutram for 4k
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijndevos committed Aug 19, 2024
1 parent b2e58d5 commit 751c4a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions litex_boards/platforms/sipeed_tang_nano_4k.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ def __init__(self, toolchain="gowin"):
# Licensed GoWin IDE v. 1.9.7.06 Beta
# GowinPlatform.__init__(self, "GW1NSR-LV4CQN48PC7/I6", _io, _connectors, toolchain=toolchain, devicename="GW1NSR-4C")

# this is just a software check that doesn't translate to hardware
# apicula does not implement this check, so beware of bricking your board
if toolchain=="gowin":
# this is just a software check that doesn't translate to hardware
# apicula does not implement this check, so beware of bricking your board
self.toolchain.options["use_mode_as_gpio"] = 1
else:
# yosys doesn't know that 4K doesn't have lutram so we tell it
self.toolchain._synth_opts += " -nolutram"

self.toolchain.options["use_mspi_as_gpio"] = 1
self.toolchain.options["use_done_as_gpio"] = 1
Expand Down

0 comments on commit 751c4a4

Please sign in to comment.