Skip to content

Commit

Permalink
bank/description/CSRStorage: set reset property of storage for use in…
Browse files Browse the repository at this point in the history
… test benches
Sebastien Bourdeauducq committed May 2, 2013
1 parent 8ffa273 commit b5b29f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migen/bank/description.py
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit b5b29f6

Please sign in to comment.