From 1d5192f572c2eb97bc85eb56667e25dc88d725f1 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 8 Oct 2021 08:52:50 +0200 Subject: [PATCH] litedram_gen/fifo: Avoid unnecessary get_port(). --- litedram/gen.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litedram/gen.py b/litedram/gen.py index 5e63c60..e1de734 100755 --- a/litedram/gen.py +++ b/litedram/gen.py @@ -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(