Revert LitexModule for AXILiteSRAM as well. Follows revert d021564fca for wishbobe.

This commit is contained in:
Dmitry Derevyanko 2024-05-03 00:51:01 +03:00
parent 22f4637570
commit 26f5e8a149
1 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ def axi_lite_to_simple(axi_lite, port_adr, port_dat_r, port_dat_w=None, port_we=
# AXI-Lite SRAM ------------------------------------------------------------------------------------ # AXI-Lite SRAM ------------------------------------------------------------------------------------
class AXILiteSRAM(LiteXModule): class AXILiteSRAM(Module):
def __init__(self, mem_or_size, read_only=None, init=None, bus=None, name=None): def __init__(self, mem_or_size, read_only=None, init=None, bus=None, name=None):
if bus is None: if bus is None:
bus = AXILiteInterface() bus = AXILiteInterface()
@ -257,7 +257,7 @@ class AXILiteSRAM(LiteXModule):
port_dat_r = port.dat_r, port_dat_r = port.dat_r,
port_dat_w = port.dat_w if not read_only else None, port_dat_w = port.dat_w if not read_only else None,
port_we = port.we if not read_only else None) port_we = port.we if not read_only else None)
self.fsm = fsm self.submodules.fsm = fsm
self.comb += comb self.comb += comb
# AXI-Lite Data-Width Converter -------------------------------------------------------------------- # AXI-Lite Data-Width Converter --------------------------------------------------------------------