Skip to content

Commit c64f148

Browse files
committedNov 15, 2016
fhdl: fix handling of we_granularity in MemoryToArray
1 parent e8193b0 commit c64f148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎migen/fhdl/simplify.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def transform_fragment(self, i, f):
108108
m = i*port.we_granularity
109109
M = (i+1)*port.we_granularity
110110
sync.append(If(port.we[i],
111-
storage[port.adr][m:M].eq(port.dat_w)))
111+
storage[port.adr][m:M].eq(port.dat_w[m:M])))
112112
else:
113113
sync.append(If(port.we,
114114
storage[port.adr].eq(port.dat_w)))

0 commit comments

Comments
 (0)
Please sign in to comment.