core/_Storage: fix size of length/offset signals.
This commit is contained in:
parent
02b543e5ba
commit
bd10138124
|
@ -162,12 +162,10 @@ class _Storage(Module, AutoCSR):
|
|||
self.specials += MultiReg(self.enable.storage, enable, "scope")
|
||||
self.sync.scope += enable_d.eq(enable)
|
||||
|
||||
length = Signal(max=depth)
|
||||
offset = Signal(max=depth)
|
||||
self.specials += [
|
||||
MultiReg(self.length.storage, length, "scope"),
|
||||
MultiReg(self.offset.storage, offset, "scope")
|
||||
]
|
||||
length = Signal().like(self.length.storage)
|
||||
offset = Signal().like(self.offset.storage)
|
||||
self.specials += MultiReg(self.length.storage, length, "scope")
|
||||
self.specials += MultiReg(self.offset.storage, offset, "scope")
|
||||
|
||||
# Status re-synchronization
|
||||
done = Signal()
|
||||
|
|
Loading…
Reference in New Issue