Skip to content

Commit d51beed

Browse files
Merge pull request #752 from yusefkarim/tang_nano_ibex_regfile_option
litex_boards/targets/sipeed_tang_nano_9k.py: set Ibex platform regfile option to fpga
2 parents 0bd42a0 + 4de240d commit d51beed

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

litex_boards/targets/sipeed_tang_nano_9k.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ def __init__(self, toolchain="gowin", sys_clk_freq=27e6, bios_flash_offset=0x0,
6666
**kwargs):
6767
platform = sipeed_tang_nano_9k.Platform(toolchain=toolchain)
6868

69+
# This GW1NR-9 is tight on LUTs, so build Ibex (when selected) with its
70+
# distributed-RAM register file instead of the default flip-flop one,
71+
# which overflows the part. Ignored by every other CPU.
72+
platform.ibex_regfile = "fpga"
73+
6974
# CRG --------------------------------------------------------------------------------------
7075
self.crg = _CRG(platform, sys_clk_freq, with_video_pll=with_video_terminal)
7176

0 commit comments

Comments
 (0)