Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bank/description/CSRStorage: set reset property of storage for use in…

… test benches
  • Loading branch information...
commit b5b29f6d5d7717799395c83bfcfc4e75088ed3ff 1 parent 8ffa273
@sbourdeauducq sbourdeauducq authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  migen/bank/description.py
View
2  migen/bank/description.py
@@ -51,7 +51,7 @@ def __init__(self, size=1, reset=0, atomic_write=False, write_from_dev=False, al
_CompoundCSR.__init__(self, size, name)
self.alignment_bits = alignment_bits
self.storage_full = Signal(self.size, reset=reset)
- self.storage = Signal(self.size - self.alignment_bits)
+ self.storage = Signal(self.size - self.alignment_bits, reset=reset >> alignment_bits)
self.comb += self.storage.eq(self.storage_full[self.alignment_bits:])
self.atomic_write = atomic_write
if write_from_dev:
Please sign in to comment.
Something went wrong with that request. Please try again.