cpu/microwatt: drive stall signal (no burst support)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 16 Dec 2019 11:37:27 +0000 (12:37 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 16 Dec 2019 11:37:27 +0000 (12:37 +0100)
litex/soc/cores/cpu/microwatt/core.py

index a3b62a0166914fd4b37a58de82faf7709b3d2985..604c68bc8a137caa6cbaf8bfffb79fa23d23be91 100644 (file)
@@ -45,7 +45,7 @@ class Microwatt(CPU):
             # Wishbone instruction bus
             i_wishbone_insn_dat_r = wb_insn.dat_r,
             i_wishbone_insn_ack   = wb_insn.ack,
-            i_wishbone_insn_stall = 0,
+            i_wishbone_insn_stall = wb_insn.cyc & ~wb_insn.ack, # No burst support
 
             o_wishbone_insn_adr   = Cat(Signal(4), wb_insn.adr),
             o_wishbone_insn_dat_w = wb_insn.dat_w,
@@ -57,7 +57,7 @@ class Microwatt(CPU):
             # Wishbone data bus
             i_wishbone_data_dat_r = wb_data.dat_r,
             i_wishbone_data_ack   = wb_data.ack,
-            i_wishbone_data_stall = 0,
+            i_wishbone_data_stall = wb_data.cyc & ~wb_data.ack, # No burst support
 
             o_wishbone_data_adr   = Cat(Signal(4), wb_data.adr),
             o_wishbone_data_dat_w = wb_data.dat_w,