mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/interconnect/axi: add Wishbone2AXI converter
This commit is contained in:
parent
2ec4604c41
commit
b8c9da81ea
1 changed files with 9 additions and 0 deletions
|
@ -649,6 +649,15 @@ class Wishbone2AXILite(Module):
|
|||
NextState("IDLE")
|
||||
)
|
||||
|
||||
# Wishbone to AXI ----------------------------------------------------------------------------------
|
||||
|
||||
class Wishbone2AXI(Module):
|
||||
def __init__(self, wishbone, axi, base_address=0x00000000):
|
||||
axi_lite = AXILiteInterface(axi.data_width, axi.address_width)
|
||||
wishbone2axi_lite = Wishbone2AXILite(wishbone, axi_lite, base_address)
|
||||
axi_lite2axi = AXILite2AXI(axi_lite, axi)
|
||||
self.submodules += wishbone2axi_lite, axi_lite2axi
|
||||
|
||||
# AXILite to CSR -----------------------------------------------------------------------------------
|
||||
|
||||
def axi_lite_to_simple(axi_lite, port_adr, port_dat_r, port_dat_w=None, port_we=None):
|
||||
|
|
Loading…
Reference in a new issue