only activate ld_in_progress if addr is ok
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 27 Jun 2020 20:35:27 +0000 (21:35 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 27 Jun 2020 20:35:27 +0000 (21:35 +0100)
src/soc/experiment/pi2ls.py

index e52425d17f42c31a2dfc4b6f23b65eadc6047734..9356b9123ac83aaaa61512b1028ad10b84eeeeed 100644 (file)
@@ -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))