integration/soc/add_adapter: Add AXI2AXILite and AXI2Wishbone support.
This commit is contained in:
parent
da5d9ecf9b
commit
b6f4302e8e
|
@ -316,6 +316,7 @@ class SoCBusHandler(Module):
|
|||
converter_cls = {
|
||||
wishbone.Interface : wishbone.Converter,
|
||||
axi.AXILiteInterface : axi.AXILiteConverter,
|
||||
axi.AXIInterface : axi.AXIConverter,
|
||||
}[interface_cls]
|
||||
converted_interface = interface_cls(data_width=self.data_width)
|
||||
if direction == "m2s":
|
||||
|
@ -346,6 +347,8 @@ class SoCBusHandler(Module):
|
|||
(axi.AXILiteInterface, wishbone.Interface) : axi.AXILite2Wishbone,
|
||||
(wishbone.Interface , axi.AXIInterface) : axi.Wishbone2AXI,
|
||||
(axi.AXILiteInterface, axi.AXIInterface) : axi.AXILite2AXI,
|
||||
(axi.AXIInterface, axi.AXILiteInterface): axi.AXI2AXILite,
|
||||
(axi.AXIInterface, wishbone.Interface) : axi.AXI2Wishbone,
|
||||
}[type(master), type(slave)]
|
||||
bridge = bridge_cls(master, slave)
|
||||
self.submodules += bridge
|
||||
|
|
Loading…
Reference in New Issue