cpu/cva6: Only keep AXI<->AXI-Lite conversion.
This commit is contained in:
parent
808f29ed2e
commit
e1c132809e
|
@ -79,26 +79,19 @@ class CVA6(CPU):
|
||||||
"csr" : 0x80000000
|
"csr" : 0x80000000
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, platform, variant="standard", use_wishbone=True):
|
def __init__(self, platform, variant="standard"):
|
||||||
self.platform = platform
|
self.platform = platform
|
||||||
self.variant = variant
|
self.variant = variant
|
||||||
self.reset = Signal()
|
self.reset = Signal()
|
||||||
self.interrupt = Signal(32)
|
self.interrupt = Signal(32)
|
||||||
if use_wishbone:
|
|
||||||
self.wb_if = wishbone.Interface(data_width=64, adr_width=29)
|
|
||||||
self.periph_buses = [self.wb_if] # Peripheral buses (Connected to main SoC's bus).
|
|
||||||
else:
|
|
||||||
self.axi_lite_if = axi.AXILiteInterface(data_width=64, address_width=32)
|
self.axi_lite_if = axi.AXILiteInterface(data_width=64, address_width=32)
|
||||||
self.periph_buses = [self.axi_lite_if] # Peripheral buses (Connected to main SoC's bus).
|
self.periph_buses = [self.axi_lite_if] # Peripheral buses (Connected to main SoC's bus).
|
||||||
self.memory_buses = [] # Memory buses (Connected directly to LiteDRAM).
|
self.memory_buses = [] # Memory buses (Connected directly to LiteDRAM).
|
||||||
|
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
# AXI <-> Wishbone/AXILite conversion.
|
# AXI <-> AXILite conversion.
|
||||||
axi_if = axi.AXIInterface(data_width=64, address_width=32, id_width=4)
|
axi_if = axi.AXIInterface(data_width=64, address_width=32, id_width=4)
|
||||||
if use_wishbone:
|
|
||||||
self.submodules += axi.AXI2Wishbone(axi_if, self.wb_if)
|
|
||||||
else:
|
|
||||||
self.submodules += axi.AXI2AXILite(axi_if, self.axi_lite_if)
|
self.submodules += axi.AXI2AXILite(axi_if, self.axi_lite_if)
|
||||||
|
|
||||||
# CPU Instance.
|
# CPU Instance.
|
||||||
|
@ -107,9 +100,6 @@ class CVA6(CPU):
|
||||||
i_clk_i = ClockSignal("sys"),
|
i_clk_i = ClockSignal("sys"),
|
||||||
i_rst_n = ~ResetSignal("sys") | self.reset,
|
i_rst_n = ~ResetSignal("sys") | self.reset,
|
||||||
|
|
||||||
# Interrupts.
|
|
||||||
i_irq_sources = self.interrupt,
|
|
||||||
|
|
||||||
# AXI interface.
|
# AXI interface.
|
||||||
o_AWVALID_o = axi_if.aw.valid,
|
o_AWVALID_o = axi_if.aw.valid,
|
||||||
i_AWREADY_i = axi_if.aw.ready,
|
i_AWREADY_i = axi_if.aw.ready,
|
||||||
|
|
Loading…
Reference in New Issue