ios = [(bus_name , 0) + tuple(subsignals)]
return ios
- def connect_to_pads(self, pads, bus_name, mode="master"):
+ def connect_to_pads(self, pads, mode="master"):
assert mode in ["slave", "master"]
r = []
def swap_mode(mode): return "master" if mode == "slave" else "slave"
self.bus.add_master(master=wb_bus)
platform.add_extension(axi_bus.get_ios("axi"))
axi_pads = platform.request("axi")
- self.comb += axi_bus.connect_to_pads(axi_pads, "axi", mode="slave")
+ self.comb += axi_bus.connect_to_pads(axi_pads, mode="slave")
# IRQs
for name, loc in sorted(self.irq.locs.items()):