From 541e2f1c5706cece9885666b7862ea1cb5628309 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 2 Mar 2021 10:54:20 +0100 Subject: [PATCH] litedram_gen: Avoid multi-lines on user_port. --- litedram/gen.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/litedram/gen.py b/litedram/gen.py index e11b0f4..b3ae3a3 100755 --- a/litedram/gen.py +++ b/litedram/gen.py @@ -545,8 +545,7 @@ class LiteDRAMCore(SoCCore): for name, port in core_config["user_ports"].items(): # Native ------------------------------------------------------------------------------- if port["type"] == "native": - user_port = self.sdram.crossbar.get_port( - data_width=port.get("data_width", None)) + user_port = self.sdram.crossbar.get_port(data_width=port.get("data_width", None)) platform.add_extension(get_native_user_port_ios(name, user_port.address_width, user_port.data_width)) @@ -571,8 +570,7 @@ class LiteDRAMCore(SoCCore): ] # Wishbone ----------------------------------------------------------------------------- elif port["type"] == "wishbone": - user_port = self.sdram.crossbar.get_port( - data_width=port.get("data_width", None)) + user_port = self.sdram.crossbar.get_port(data_width=port.get("data_width", None)) wb_port = wishbone.Interface( user_port.data_width, user_port.address_width) @@ -595,8 +593,7 @@ class LiteDRAMCore(SoCCore): ] # AXI ---------------------------------------------------------------------------------- elif port["type"] == "axi": - user_port = self.sdram.crossbar.get_port( - data_width=port.get("data_width", None)) + 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),