From e6758539d93b8e2cce4b0043e5a3b5b11f5d54d6 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 8 Feb 2022 18:28:57 +0100 Subject: [PATCH] litedram_gen: Minor cosmetic cleanup. --- litedram/gen.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litedram/gen.py b/litedram/gen.py index 6f0df2b..ff0640c 100755 --- a/litedram/gen.py +++ b/litedram/gen.py @@ -721,9 +721,9 @@ class LiteDRAMCore(SoCCore): elif port["type"] == "axi": user_port = self.sdram.crossbar.get_port(data_width=port.get("data_width", None)) axi_port = LiteDRAMAXIPort( - user_port.data_width, - user_port.address_width + log2_int(user_port.data_width//8), - port["id_width"]) + data_width = user_port.data_width, + address_width = user_port.address_width + log2_int(user_port.data_width//8), + id_width = port["id_width"]) axi2native = LiteDRAMAXI2Native(axi_port, user_port) self.submodules += axi2native platform.add_extension(get_axi_user_port_ios(name,