42 template <
class Types>
49 template <
class Types>
75 Base::cnthpirq[
i].bind(
cnthpirq[i]->signal_in);
76 Base::cnthvirq[
i].bind(
cnthvirq[i]->signal_in);
77 Base::cntpsirq[
i].bind(
cntpsirq[i]->signal_in);
78 Base::cntvirq[
i].bind(
cntvirq[i]->signal_in);
79 Base::commirq[
i].bind(
commirq[i]->signal_in);
80 Base::ctidbgirq[
i].bind(
ctidbgirq[i]->signal_in);
81 Base::pmuirq[
i].bind(
pmuirq[i]->signal_in);
83 Base::cntpnsirq[
i].bind(
cntpnsirq[i]->signal_in);
91 this->dont_initialize();
98 template <
class Types>
103 panic_if(Base::amba->transport_dbg(*trans) != trans->get_data_length(),
104 "Didn't send entire functional packet!");
108 template <
class Types>
112 Base::before_end_of_elaboration();
116 auto set_on_change = [cluster](
119 auto *pin = gen->get(cluster->getCore(num)->getContext(0));
120 auto handler = [pin](
bool status)
122 status ? pin->raise() : pin->clear();
128 set_on_change(*
cnthpirq[
i], cluster->params().cnthpirq,
i);
129 set_on_change(*
cnthvirq[i], cluster->params().cnthvirq,
i);
130 set_on_change(*
cntpsirq[i], cluster->params().cntpsirq,
i);
131 set_on_change(*
cntvirq[i], cluster->params().cntvirq,
i);
132 set_on_change(*
commirq[i], cluster->params().commirq,
i);
133 set_on_change(*
ctidbgirq[i], cluster->params().ctidbgirq,
i);
134 set_on_change(*
pmuirq[i], cluster->params().pmuirq,
i);
135 set_on_change(*
vcpumntirq[i], cluster->params().vcpumntirq,
i);
136 set_on_change(*
cntpnsirq[i], cluster->params().cntpnsirq,
i);
140 template <
class Types>
144 if (if_name ==
"redistributor")
146 else if (if_name ==
"amba")
149 return Base::gem5_getPort(if_name, idx);
160 FastModelScxEvsCortexA76x1Params::create()
166 FastModelScxEvsCortexA76x2Params::create()
172 FastModelScxEvsCortexA76x3Params::create()
178 FastModelScxEvsCortexA76x4Params::create()
typename Types::Params Params
Ports are used to interface objects to each other.
std::vector< std::unique_ptr< SignalReceiver > > cntpsirq
const std::string & name()
void onChange(OnChangeFunc func)
sc_core::sc_event clockChanged
ClockRateControlInitiatorSocket clockRateControl
static const std::string PeriodAttributeName
static const int CoreCount
sc_core::sc_attribute< CortexA76Cluster * > gem5CpuCluster
typename Types::Base Base
tlm::tlm_generic_payload * packet2payload(PacketPtr packet)
Convert a gem5 packet to a TLM payload by copying all the relevant information to new tlm payload...
ScxEvsCortexA76< ScxEvsCortexA76x2Types > ScxEvsCortexA76x2
std::vector< std::unique_ptr< SignalReceiver > > commirq
std::vector< std::unique_ptr< SignalReceiver > > pmuirq
Port & gem5_getPort(const std::string &if_name, int idx) override
sc_core::sc_attribute< PortProxy::SendFunctionalFunc > sendFunctional
std::string csprintf(const char *format, const Args &...args)
virtual void bind(base_target_socket_type &s)
sc_core::sc_attribute< Tick > clockPeriod
std::vector< std::unique_ptr< SignalReceiver > > cnthvirq
ScxEvsCortexA76(const sc_core::sc_module_name &mod_name, const Params &p)
A Packet is used to encapsulate a transfer between two objects in the memory system (e...
sc_gem5::TlmTargetBaseWrapper< 64, svp_gicv3_comms::gicv3_comms_fw_if, svp_gicv3_comms::gicv3_comms_bw_if, 1, sc_core::SC_ONE_OR_MORE_BOUND > TlmGicTarget
std::vector< std::unique_ptr< SignalReceiver > > vcpumntirq
static const std::string ClockEventName
ScxEvsCortexA76< ScxEvsCortexA76x4Types > ScxEvsCortexA76x4
Base class for ARM GIC implementations.
static const std::string Gem5CpuClusterAttributeName
void sendFunc(PacketPtr pkt)
void clockChangeHandler()
void before_end_of_elaboration() override
std::vector< std::unique_ptr< SignalReceiver > > ctidbgirq
This SimObject is instantiated in the python world and serves as an ArmInterruptPin generator...
static const std::string SendFunctionalAttributeName
std::vector< std::unique_ptr< SignalReceiver > > cntpnsirq
ScxEvsCortexA76< ScxEvsCortexA76x1Types > ScxEvsCortexA76x1
std::vector< std::unique_ptr< SignalReceiver > > cnthpirq
#define panic_if(cond,...)
Conditional panic macro that checks the supplied condition and only panics if the condition is true a...
ScxEvsCortexA76< ScxEvsCortexA76x3Types > ScxEvsCortexA76x3
std::vector< std::unique_ptr< TlmGicTarget > > redist
std::vector< std::unique_ptr< SignalReceiver > > cntvirq