clear compalu data latch always on issue
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Aug 2020 21:33:25 +0000 (22:33 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 15 Aug 2020 21:33:25 +0000 (22:33 +0100)
src/soc/experiment/compalu_multi.py

index c4dcfd15cd3ca999f1f9c0b8156130065d9622da..79d4ccd1698fada3cb4554b32cc4575c72777728 100644 (file)
@@ -276,7 +276,7 @@ class MultiCompUnit(RegSpecALUAPI, Elaboratable):
             wrok.append(ok & self.busy_o)
             with m.If(alu_pulse):
                 m.d.sync += data_r.eq(lro)
-            with m.Elif(self.issue_i):
+            with m.If(self.issue_i):
                 m.d.sync += data_r.eq(0)
             drl.append(data_r)