mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
bus/wishbone/sram: accept memories < 32 bits
This commit is contained in:
parent
523816982a
commit
4bcb39699b
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ class Target(PureSimulable):
|
|||
class SRAM:
|
||||
def __init__(self, mem_or_size, bus=Interface()):
|
||||
if isinstance(mem_or_size, Memory):
|
||||
assert(mem_or_size.width == 32)
|
||||
assert(mem_or_size.width <= 32)
|
||||
self.mem = mem_or_size
|
||||
else:
|
||||
self.mem = Memory(32, mem_or_size//4)
|
||||
|
|
Loading…
Reference in a new issue