add wishbone slave signal to downconvert if present
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 14 Feb 2022 14:02:40 +0000 (14:02 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 14 Feb 2022 14:02:40 +0000 (14:02 +0000)
src/soc/bus/wb_downconvert.py

index 2fe2a921c4631a54ee67b06e3fab276ecbe36e92..5b41f9a939d9d40fe883eb52842a26fdca3761b2 100644 (file)
@@ -104,6 +104,10 @@ class WishboneDownConvert(Elaboratable):
                 comb += slave.cti.eq(2)
         comb += slave.adr.eq(Cat(counter, master.adr))
 
+        # stall
+        if hasattr(slave, 'stall'):
+            comb += slave.stall.eq(master.stall)
+
         # write Datapath - select fragments of data, depending on "counter"
         with m.Switch(counter):
             slen = slave.sel.width