soc/interconnect/wishbone: Fix SEL propagation on UpConverter (thanks @Dolu1990).

This commit is contained in:
Florent Kermarrec 2021-06-02 10:46:53 +02:00
parent 0b329c3dce
commit a064e9d048
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
[> Issues resolved
------------------
-
- wishbone/UpConverter: Fix SEL propagation.
[> Added Features
-----------------

View File

@ -294,7 +294,7 @@ class UpConverter(Module):
for i in range(ratio):
cases[i] = [
slave.adr.eq(master.adr[int(log2(ratio)):]),
slave.sel[i*dw_from//8:(i+1)*dw_from//8].eq(2**(dw_from//8) - 1),
slave.sel[i*dw_from//8:(i+1)*dw_from//8].eq(master.sel),
slave.dat_w[i*dw_from:(i+1)*dw_from].eq(master.dat_w),
master.dat_r.eq(slave.dat_r[i*dw_from:(i+1)*dw_from]),
]