Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

… test benches
  • Loading branch information...
commit b5b29f6d5d7717799395c83bfcfc4e75088ed3ff 1 parent 8ffa273
Sébastien Bourdeauducq authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  migen/bank/description.py
2  migen/bank/description.py
@@ -51,7 +51,7 @@ def __init__(self, size=1, reset=0, atomic_write=False, write_from_dev=False, al
51 51
 		_CompoundCSR.__init__(self, size, name)
52 52
 		self.alignment_bits = alignment_bits
53 53
 		self.storage_full = Signal(self.size, reset=reset)
54  
-		self.storage = Signal(self.size - self.alignment_bits)
  54
+		self.storage = Signal(self.size - self.alignment_bits, reset=reset >> alignment_bits)
55 55
 		self.comb += self.storage.eq(self.storage_full[self.alignment_bits:])
56 56
 		self.atomic_write = atomic_write
57 57
 		if write_from_dev:

0 notes on commit b5b29f6

Please sign in to comment.
Something went wrong with that request. Please try again.