litedram_gen: Minor cosmetic cleanup.

This commit is contained in:
Florent Kermarrec 2022-02-08 18:28:57 +01:00
parent 24fad45764
commit e6758539d9
1 changed files with 3 additions and 3 deletions

View File

@ -721,9 +721,9 @@ class LiteDRAMCore(SoCCore):
elif port["type"] == "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( axi_port = LiteDRAMAXIPort(
user_port.data_width, data_width = user_port.data_width,
user_port.address_width + log2_int(user_port.data_width//8), address_width = user_port.address_width + log2_int(user_port.data_width//8),
port["id_width"]) id_width = port["id_width"])
axi2native = LiteDRAMAXI2Native(axi_port, user_port) axi2native = LiteDRAMAXI2Native(axi_port, user_port)
self.submodules += axi2native self.submodules += axi2native
platform.add_extension(get_axi_user_port_ios(name, platform.add_extension(get_axi_user_port_ios(name,