mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
bus/wishbone2asmi: cache hits working
This commit is contained in:
parent
1662e1b3bc
commit
e11d9b9322
1 changed files with 3 additions and 3 deletions
|
@ -61,15 +61,15 @@ class WB2ASMI:
|
||||||
data_we.eq(Replicate(1, adw//8))
|
data_we.eq(Replicate(1, adw//8))
|
||||||
).Else(
|
).Else(
|
||||||
data_di.eq(Replicate(self.wishbone.dat_i, adw//32)),
|
data_di.eq(Replicate(self.wishbone.dat_i, adw//32)),
|
||||||
If(self.wishbone.cyc_i & self.wishbone.stb_i & self.wishbone.ack_o,
|
If(self.wishbone.cyc_i & self.wishbone.stb_i & self.wishbone.we_i & self.wishbone.ack_o,
|
||||||
displacer(self.wishbone.we_i, adr_offset, data_we, 2**offsetbits)
|
displacer(self.wishbone.sel_i, adr_offset, data_we, 2**offsetbits, reverse=True)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
If(write_to_asmi,
|
If(write_to_asmi,
|
||||||
self.asmiport.dat_w.eq(data_do),
|
self.asmiport.dat_w.eq(data_do),
|
||||||
self.asmiport.dat_wm.eq(Replicate(1, adw//8))
|
self.asmiport.dat_wm.eq(Replicate(1, adw//8))
|
||||||
),
|
),
|
||||||
chooser(data_do, adr_offset_r, self.wishbone.dat_o)
|
chooser(data_do, adr_offset_r, self.wishbone.dat_o, reverse=True)
|
||||||
]
|
]
|
||||||
sync += [
|
sync += [
|
||||||
adr_offset_r.eq(adr_offset)
|
adr_offset_r.eq(adr_offset)
|
||||||
|
|
Loading…
Reference in a new issue