28#ifndef __ARCH_ARM_FASTMODEL_CORTEXR52_EVS_HH__
29#define __ARCH_ARM_FASTMODEL_CORTEXR52_EVS_HH__
41#include "params/FastModelScxEvsCortexR52x1.hh"
42#include "params/FastModelScxEvsCortexR52x2.hh"
43#include "params/FastModelScxEvsCortexR52x3.hh"
44#include "params/FastModelScxEvsCortexR52x4.hh"
45#include "scx_evs_CortexR52x1.h"
46#include "scx_evs_CortexR52x2.h"
47#include "scx_evs_CortexR52x3.h"
48#include "scx_evs_CortexR52x4.h"
60class CortexR52Cluster;
69 using Base =
typename Types::Base;
70 using Params =
typename Types::Params;
142 this->signalInterrupt->spi(num,
true);
148 this->signalInterrupt->spi(num,
false);
156 Base::end_of_elaboration();
157 Base::start_of_simulation();
172 using Base = scx_evs_CortexR52x1;
173 using Params = FastModelScxEvsCortexR52x1Params;
181 using Base = scx_evs_CortexR52x2;
182 using Params = FastModelScxEvsCortexR52x2Params;
183 static const int CoreCount = 2;
190 using Base = scx_evs_CortexR52x3;
191 using Params = FastModelScxEvsCortexR52x3Params;
192 static const int CoreCount = 3;
199 using Base = scx_evs_CortexR52x4;
200 using Params = FastModelScxEvsCortexR52x4Params;
201 static const int CoreCount = 4;
Ports are used to interface objects to each other.
Abstract superclass for simulation objects.
void raiseInterruptPin(int num)
static const int SpiCount
void setSysCounterFrq(uint64_t sys_counter_frq) override
static const int PpiCount
SignalSinkPort< bool > model_reset
std::vector< std::unique_ptr< ClstrInt > > spis
void lowerInterruptPin(int num)
CortexR52Cluster * gem5CpuCluster
typename Types::Base Base
void end_of_elaboration() override
Port & gem5_getPort(const std::string &if_name, int idx) override
SC_HAS_PROCESS(ScxEvsCortexR52)
void setCluster(SimObject *cluster) override
void setClkPeriod(Tick clk_period) override
std::vector< std::unique_ptr< CorePins > > corePins
SignalInterruptInitiatorSocket signalInterrupt
typename Types::Params Params
void setResetAddr(int core, Addr addr, bool secure) override
static const int CoreCount
ScxEvsCortexR52(const Params &p)
void start_of_simulation() override
ClockRateControlInitiatorSocket clockRateControl
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
uint64_t Tick
Tick count type.
PortProxy Object Declaration.
amba_pv::signal_master_port< T > SignalInitiator
std::vector< std::unique_ptr< CoreInt > > ppis
SignalSender poweron_reset
SignalInitiator< uint64_t > cfgvectable
void lowerInterruptPin(int num)
CorePins(Evs *_evs, int _cpu)
SignalReceiverInt standbywfi
void raiseInterruptPin(int num)
static const int CoreCount
FastModelScxEvsCortexR52x1Params Params
FastModelScxEvsCortexR52x2Params Params
FastModelScxEvsCortexR52x3Params Params
FastModelScxEvsCortexR52x4Params Params
const std::string & name()