-from nmigen import *
-from nmigen.utils import *
+from nmigen import Elaboratable, Memory, Module
+from nmigen.utils import log2_int
-from .bus import Interface
+from nmigen_soc.wishbone.bus import Interface
__all__ = ["SRAM"]
self.memory = memory
self.read_only = read_only
if bus is None:
- bus = Interface(addr_width=log2_int(self.memory.depth, need_pow2=False),
+ bus = Interface(addr_width=log2_int(self.memory.depth,
+ need_pow2=False),
data_width=self.memory.width,
granularity=granularity,
features=features,