Skip to content

Commit f48606f

Browse files
committed
targets/efinix: strip Trion T120 SDRAM AXI origins
The Trion T120 SDRAM AXI ports expose local 256MiB address windows while the SoC decodes them at 0x40000000 and 0x50000000. Use strip_origin when registering the target ports so the SoC decodes the global regions and the local AXI-Lite ports receive offset addresses.
1 parent 6d51c0c commit f48606f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

litex_boards/targets/efinix_trion_t120_bga576_dev_kit.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,12 @@ def generate(root, namespaces):
370370
# Connect AXI interface to the main bus of the SoC.
371371
axi_lite_port = axi.AXILiteInterface(data_width=data_width, address_width=28)
372372
self.submodules += axi.AXILite2AXI(axi_lite_port, axi_port)
373-
self.bus.add_slave(f"target{n}", axi_lite_port, SoCRegion(origin=0x4000_0000 + 0x1000_0000*n, size=0x1000_0000)) # 256MB.
373+
self.bus.add_slave(
374+
f"target{n}",
375+
axi_lite_port,
376+
SoCRegion(origin=0x4000_0000 + 0x1000_0000*n, size=0x1000_0000), # 256MB.
377+
strip_origin=True,
378+
)
374379

375380
# Use DRAM's target0 port as Main Ram -----------------------------------------------------
376381
self.bus.add_region("main_ram", SoCRegion(

0 commit comments

Comments
 (0)