mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/cpu: rename cpu.buses to cpu.periph_buses.
This commit is contained in:
parent
05815c4ecc
commit
467fee3e23
10 changed files with 49 additions and 49 deletions
|
@ -73,12 +73,12 @@ class BlackParrotRV64(CPU):
|
|||
def __init__(self, platform, variant="standard"):
|
||||
assert variant in CPU_VARIANTS, "Unsupported variant %s" % variant
|
||||
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.interrupt = Signal(4)
|
||||
self.idbus = idbus = wishbone.Interface(data_width=64, adr_width=37)
|
||||
self.buses = [idbus]
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.interrupt = Signal(4)
|
||||
self.idbus = idbus = wishbone.Interface(data_width=64, adr_width=37)
|
||||
self.periph_buses = [idbus]
|
||||
|
||||
# # #
|
||||
|
||||
|
|
|
@ -34,13 +34,13 @@ class LM32(CPU):
|
|||
|
||||
def __init__(self, platform, variant="standard"):
|
||||
assert variant in CPU_VARIANTS, "Unsupported variant %s" % variant
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.ibus = i = wishbone.Interface()
|
||||
self.dbus = d = wishbone.Interface()
|
||||
self.interrupt = Signal(32)
|
||||
self.buses = [i, d]
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.ibus = i = wishbone.Interface()
|
||||
self.dbus = d = wishbone.Interface()
|
||||
self.interrupt = Signal(32)
|
||||
self.periph_buses = [i, d]
|
||||
|
||||
# # #
|
||||
|
||||
|
|
|
@ -41,12 +41,12 @@ class Microwatt(CPU):
|
|||
|
||||
def __init__(self, platform, variant="standard"):
|
||||
assert variant in CPU_VARIANTS, "Unsupported variant %s" % variant
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.wb_insn = wb_insn = wishbone.Interface(data_width=64, adr_width=28)
|
||||
self.wb_data = wb_data = wishbone.Interface(data_width=64, adr_width=28)
|
||||
self.buses = [wb_insn, wb_data]
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.wb_insn = wb_insn = wishbone.Interface(data_width=64, adr_width=28)
|
||||
self.wb_data = wb_data = wishbone.Interface(data_width=64, adr_width=28)
|
||||
self.periph_buses = [wb_insn, wb_data]
|
||||
|
||||
# # #
|
||||
|
||||
|
|
|
@ -31,13 +31,13 @@ class Minerva(CPU):
|
|||
|
||||
def __init__(self, platform, variant="standard"):
|
||||
assert variant in CPU_VARIANTS, "Unsupported variant %s" % variant
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.ibus = wishbone.Interface()
|
||||
self.dbus = wishbone.Interface()
|
||||
self.buses = [self.ibus, self.dbus]
|
||||
self.interrupt = Signal(32)
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.ibus = wishbone.Interface()
|
||||
self.dbus = wishbone.Interface()
|
||||
self.periph_buses = [self.ibus, self.dbus]
|
||||
self.interrupt = Signal(32)
|
||||
|
||||
# TODO: create variants
|
||||
self.with_icache = False
|
||||
|
|
|
@ -63,13 +63,13 @@ class MOR1KX(CPU):
|
|||
|
||||
def __init__(self, platform, variant="standard"):
|
||||
assert variant in CPU_VARIANTS, "Unsupported variant %s" % variant
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.ibus = i = wishbone.Interface()
|
||||
self.dbus = d = wishbone.Interface()
|
||||
self.buses = [i, d]
|
||||
self.interrupt = Signal(32)
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.ibus = i = wishbone.Interface()
|
||||
self.dbus = d = wishbone.Interface()
|
||||
self.periph_buses = [i, d]
|
||||
self.interrupt = Signal(32)
|
||||
|
||||
if variant == "linux":
|
||||
self.mem_map = self.mem_map_linux
|
||||
|
|
|
@ -56,13 +56,13 @@ class PicoRV32(CPU):
|
|||
|
||||
def __init__(self, platform, variant="standard"):
|
||||
assert variant in CPU_VARIANTS, "Unsupported variant %s" % variant
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.idbus = idbus = wishbone.Interface()
|
||||
self.buses = [idbus]
|
||||
self.interrupt = Signal(32)
|
||||
self.trap = Signal()
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.idbus = idbus = wishbone.Interface()
|
||||
self.periph_buses = [idbus]
|
||||
self.interrupt = Signal(32)
|
||||
self.trap = Signal()
|
||||
|
||||
# # #
|
||||
|
||||
|
|
|
@ -106,7 +106,7 @@ class RocketRV64(CPU):
|
|||
|
||||
self.mmio_wb = mmio_wb = wishbone.Interface(data_width=mmio_dw, adr_width=32-log2_int(mmio_dw//8))
|
||||
|
||||
self.buses = [mmio_wb]
|
||||
self.periph_buses = [mmio_wb]
|
||||
|
||||
# # #
|
||||
|
||||
|
|
|
@ -31,12 +31,12 @@ class SERV(CPU):
|
|||
|
||||
def __init__(self, platform, variant="standard"):
|
||||
assert variant in CPU_VARIANTS, "Unsupported variant %s" % variant
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.ibus = ibus = wishbone.Interface()
|
||||
self.dbus = dbus = wishbone.Interface()
|
||||
self.buses = [ibus, dbus]
|
||||
self.platform = platform
|
||||
self.variant = variant
|
||||
self.reset = Signal()
|
||||
self.ibus = ibus = wishbone.Interface()
|
||||
self.dbus = dbus = wishbone.Interface()
|
||||
self.periph_buses = [ibus, dbus]
|
||||
|
||||
# # #
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ class VexRiscv(CPU, AutoCSR):
|
|||
self.reset = Signal()
|
||||
self.ibus = ibus = wishbone.Interface()
|
||||
self.dbus = dbus = wishbone.Interface()
|
||||
self.buses = [ibus, dbus]
|
||||
self.periph_buses = [ibus, dbus]
|
||||
self.interrupt = Signal(32)
|
||||
|
||||
self.cpu_params = dict(
|
||||
|
|
|
@ -781,7 +781,7 @@ class SoC(Module):
|
|||
if reset_address is None:
|
||||
reset_address = self.mem_map["rom"]
|
||||
self.cpu.set_reset_address(reset_address)
|
||||
for n, cpu_bus in enumerate(self.cpu.buses):
|
||||
for n, cpu_bus in enumerate(self.cpu.periph_buses):
|
||||
self.bus.add_master(name="cpu_bus{}".format(n), master=cpu_bus)
|
||||
self.csr.add("cpu", use_loc_if_exists=True)
|
||||
if hasattr(self.cpu, "interrupt"):
|
||||
|
|
Loading…
Reference in a new issue