litedram_gen/fifo: Avoid unnecessary get_port().

This commit is contained in:
Florent Kermarrec 2021-10-08 08:52:50 +02:00
parent e1defa2687
commit 1d5192f572
1 changed files with 1 additions and 2 deletions

View File

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