mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
cores/picorv32: Fix idbus.sel for reads.
This commit is contained in:
parent
bccd1e9c54
commit
afc66fd5cf
1 changed files with 7 additions and 2 deletions
|
@ -168,8 +168,13 @@ class PicoRV32(CPU):
|
|||
self.comb += [
|
||||
idbus.adr.eq(mem_addr),
|
||||
idbus.dat_w.eq(mem_wdata),
|
||||
idbus.we.eq(mem_wstrb != 0),
|
||||
idbus.sel.eq(mem_wstrb),
|
||||
If(mem_wstrb != 0,
|
||||
idbus.we.eq(1),
|
||||
idbus.sel.eq(mem_wstrb),
|
||||
).Else(
|
||||
idbus.we.eq(0),
|
||||
idbus.sel.eq(0b1111),
|
||||
),
|
||||
idbus.cyc.eq(mem_valid),
|
||||
idbus.stb.eq(mem_valid),
|
||||
idbus.cti.eq(0),
|
||||
|
|
Loading…
Reference in a new issue