connect up stall signals (fake) for WB Classic compliance
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 15 Feb 2022 20:10:05 +0000 (20:10 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 15 Feb 2022 20:10:05 +0000 (20:10 +0000)
src/ls2.py

index 439df0e5048f99bd96a113f0fbfb1e7e4328842d..7949ddab4e84242dcc0dcb7dabf8abe7dcbbc251 100644 (file)
@@ -175,6 +175,10 @@ class DDR3SoC(SoC, Elaboratable):
             m.submodules.extcore = self.cpu
             m.submodules.dbuscvt = self.dbusdowncvt
             m.submodules.ibuscvt = self.ibusdowncvt
+            # create stall sigs, assume wishbone classic
+            ibus, dbus = self.cpu.ibus, self.cpu.dbus
+            comb += ibus.stall.eq(ibus.stb & ~ibus.ack)
+            comb += dbus.stall.eq(dbus.stb & ~dbus.ack)
 
         # add blinky lights so we know FPGA is alive
         if platform is not None: