fhdl/structure/Memory: fix we width
This commit is contained in:
parent
784a399431
commit
f42683b71e
|
@ -338,6 +338,9 @@ class Memory(HUID):
|
|||
adr = Signal(BV(bits_for(self.depth-1)))
|
||||
dat_r = Signal(BV(self.width))
|
||||
if write_capable:
|
||||
if we_granularity:
|
||||
we = Signal(BV(self.width//we_granularity))
|
||||
else:
|
||||
we = Signal()
|
||||
dat_w = Signal(BV(self.width))
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue