From 345a8ac76303b066c26f91bdaa86fba61fa3e670 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 27 Jun 2020 21:35:27 +0100 Subject: [PATCH] only activate ld_in_progress if addr is ok --- src/soc/experiment/pi2ls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/experiment/pi2ls.py b/src/soc/experiment/pi2ls.py index e52425d1..9356b912 100644 --- a/src/soc/experiment/pi2ls.py +++ b/src/soc/experiment/pi2ls.py @@ -75,7 +75,7 @@ class Pi2LSUI(Elaboratable): # indicate "OK" - XXX should be checking address valid m.d.comb += pi.addr_ok_o.eq(1) - with m.If(pi.is_ld_i): + with m.If(pi.is_ld_i & pi.addr.ok): # shift/mask out the loaded data m.d.comb += pi.ld.data.eq((lsui.m_ld_data_o & lenexp.rexp_o) >> (lenexp.addr_i*8)) -- 2.30.2