litedram_gen: Fix missing user_port request for FIFO ports.

This commit is contained in:
Florent Kermarrec 2021-09-03 10:31:08 +02:00
parent 80398a8a15
commit db879ae3f7
1 changed files with 1 additions and 0 deletions

View File

@ -693,6 +693,7 @@ class LiteDRAMCore(SoCCore):
] ]
# FIFO --------------------------------------------------------------------------------- # FIFO ---------------------------------------------------------------------------------
elif port["type"] == "fifo": elif port["type"] == "fifo":
user_port = self.sdram.crossbar.get_port(data_width=port.get("data_width", None))
platform.add_extension(get_fifo_user_port_ios(name, user_port.data_width)) platform.add_extension(get_fifo_user_port_ios(name, user_port.data_width))
_user_fifo_io = platform.request("user_fifo_{}".format(name)) _user_fifo_io = platform.request("user_fifo_{}".format(name))
fifo = LiteDRAMFIFO( fifo = LiteDRAMFIFO(