From 312ac57f398bb6de8f93bf7539cbea527009a880 Mon Sep 17 00:00:00 2001 From: Cole Poirier Date: Tue, 29 Sep 2020 11:57:28 -0700 Subject: [PATCH] icache.py fix combinatorial loop with by testing temp stbs_zero and setting Signal stbs_done --- src/soc/experiment/icache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/soc/experiment/icache.py b/src/soc/experiment/icache.py index de734ac0..c1d98371 100644 --- a/src/soc/experiment/icache.py +++ b/src/soc/experiment/icache.py @@ -1259,7 +1259,7 @@ class ICache(Elaboratable): # if wishbone_in.stall = '0' and not stbs_done then # If we are still sending requests, # was one accepted? - with m.If(~wb_in.stall & ~stbs_done): + with m.If(~wb_in.stall & ~stbs_zero): # -- That was the last word ? We are done sending. # -- Clear stb and set stbs_done so we can handle # -- an eventual last ack on the same cycle. @@ -1274,8 +1274,8 @@ class ICache(Elaboratable): # an eventual last ack on # the same cycle. with m.If(is_last_row_addr(r.req_adr, r.end_row_ix)): - sync += Display("IS_LAST_ROW_ADDR \ - r.wb.addr:%x r.end_row_ix:%x " \ + sync += Display("IS_LAST_ROW_ADDR " \ + "r.wb.addr:%x r.end_row_ix:%x " \ "r.wb.stb:%x stbs_zero:%x " \ "stbs_done:%x", r.wb.adr, \ r.end_row_ix, r.wb.stb, \ -- 2.30.2