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]
# # #
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]
# # #
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]
# # #
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
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
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()
# # #
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]
# # #
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]
# # #
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(
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"):