Skip to content

Commit

Permalink
working 4k
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijndevos committed Aug 16, 2024
1 parent ea8ea07 commit e02fb67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions litex_boards/platforms/sipeed_tang_nano_4k.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ class Platform(GowinPlatform):

def __init__(self, toolchain="gowin"):
# Educational GoWin IDE v. 1.9.8.03
GowinPlatform.__init__(self, "GW1NSR-LV4CQN48PC6/I5", _io, _connectors, toolchain=toolchain, devicename="GW1NSR-4C")
GowinPlatform.__init__(self, "GW1NSR-LV4CQN48PC6/I5", _io, _connectors, toolchain=toolchain, devicename="GW1NS-4")
# Licensed GoWin IDE v. 1.9.7.06 Beta
# GowinPlatform.__init__(self, "GW1NSR-LV4CQN48PC7/I6", _io, _connectors, toolchain=toolchain, devicename="GW1NSR-4C")
self.toolchain.options["use_mode_as_gpio"] = 1
#self.toolchain.options["use_mode_as_gpio"] = 1
self.toolchain.options["use_mspi_as_gpio"] = 1
self.toolchain.options["use_done_as_gpio"] = 1

Expand Down
4 changes: 3 additions & 1 deletion litex_boards/targets/sipeed_tang_nano_4k.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ def __init__(self, sys_clk_freq=27e6,
with_hyperram = False,
with_led_chaser = True,
with_video_terminal = True,
toolchain = "gowin",
**kwargs):
platform = sipeed_tang_nano_4k.Platform()
platform = sipeed_tang_nano_4k.Platform(toolchain=toolchain)

# CRG --------------------------------------------------------------------------------------
self.crg = _CRG(platform, sys_clk_freq, with_video_pll=with_video_terminal)
Expand Down Expand Up @@ -151,6 +152,7 @@ def main():
args = parser.parse_args()

soc = BaseSoC(
toolchain=args.toolchain,
sys_clk_freq = args.sys_clk_freq,
with_hyperram = args.with_hyperram,
with_video_terminal = args.with_video_terminal,
Expand Down

0 comments on commit e02fb67

Please sign in to comment.