bank/description: define reset value of read signal

This commit is contained in:
Sebastien Bourdeauducq 2012-12-05 16:40:44 +01:00
parent 34ce934809
commit 273d9d285b
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class Field:
self.w = Signal(self.size)
else:
if self.access_dev == READ_ONLY or self.access_dev == READ_WRITE:
self.r = Signal(self.size)
self.r = Signal(self.size, reset=reset)
if self.access_dev == WRITE_ONLY or self.access_dev == READ_WRITE:
self.w = Signal(self.size)
self.we = Signal()