Skip to content

Commit b1946df

Browse files
committed
targets/slogic16u3: Use RAM-backed boot memory
GW5AT devices do not provide the pROM resource that Gowin can infer from LiteX's default read-only integrated BIOS ROM. Use a small writable integrated boot memory for the SLogic16U3 target so synthesis maps it as RAM/BRAM instead, while keeping the standard BIOS boot flow. The size is reduced to 32 KiB, which is enough for the current BIOS and avoids using a 128 KiB RAM-backed boot memory on this experimental target.
1 parent 6da4c6b commit b1946df

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

litex_boards/targets/sipeed_slogic16u3.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def __init__(self, sys_clk_freq=20.732e6, **kwargs):
5151
self.crg = _CRG(platform, sys_clk_freq)
5252

5353
# SoCCore ----------------------------------------------------------------------------------
54+
# GW5AT has no pROM resource, so implement the boot memory as RAM.
55+
kwargs["integrated_rom_size"] = 32 * KILOBYTE
56+
kwargs["integrated_rom_mode"] = "rwx"
5457
SoCCore.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Sipeed Slogic16U3", **kwargs)
5558

5659
# Build --------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)