gem5  v20.1.0.0
evs.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Google, Inc.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met: redistributions of source code must retain the above copyright
7  * notice, this list of conditions and the following disclaimer;
8  * redistributions in binary form must reproduce the above copyright
9  * notice, this list of conditions and the following disclaimer in the
10  * documentation and/or other materials provided with the distribution;
11  * neither the name of the copyright holders nor the names of its
12  * contributors may be used to endorse or promote products derived from
13  * this software without specific prior written permission.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 #ifndef __ARCH_ARM_FASTMODEL_CORTEXA76_EVS_HH__
29 #define __ARCH_ARM_FASTMODEL_CORTEXA76_EVS_HH__
30 
31 #include <memory>
32 
36 #include "mem/port_proxy.hh"
37 #include "params/FastModelScxEvsCortexA76x1.hh"
38 #include "params/FastModelScxEvsCortexA76x2.hh"
39 #include "params/FastModelScxEvsCortexA76x3.hh"
40 #include "params/FastModelScxEvsCortexA76x4.hh"
41 #include "scx_evs_CortexA76x1.h"
42 #include "scx_evs_CortexA76x2.h"
43 #include "scx_evs_CortexA76x3.h"
44 #include "scx_evs_CortexA76x4.h"
48 
49 namespace FastModel
50 {
51 
52 class CortexA76Cluster;
53 
54 template <class Types>
55 class ScxEvsCortexA76 : public Types::Base
56 {
57  private:
58  static const int CoreCount = Types::CoreCount;
59  using Base = typename Types::Base;
60  using Params = typename Types::Params;
61 
63 
65 
67  64, svp_gicv3_comms::gicv3_comms_fw_if,
68  svp_gicv3_comms::gicv3_comms_bw_if, 1,
70 
73 
83 
88 
89  void sendFunc(PacketPtr pkt);
90 
91  void clockChangeHandler();
92 
93  const Params &params;
94 
95  public:
96  ScxEvsCortexA76(const sc_core::sc_module_name &mod_name, const Params &p);
97 
98  void before_end_of_elaboration() override;
99  Port &gem5_getPort(const std::string &if_name, int idx) override;
100 
101  void
103  {
104  Base::end_of_elaboration();
105  Base::start_of_simulation();
106  }
107  void start_of_simulation() override {}
108 };
109 
111 {
112  using Base = scx_evs_CortexA76x1;
113  using Params = FastModelScxEvsCortexA76x1Params;
114  static const int CoreCount = 1;
115 };
117 extern template class ScxEvsCortexA76<ScxEvsCortexA76x1Types>;
118 
120 {
121  using Base = scx_evs_CortexA76x2;
122  using Params = FastModelScxEvsCortexA76x2Params;
123  static const int CoreCount = 2;
124 };
126 extern template class ScxEvsCortexA76<ScxEvsCortexA76x2Types>;
127 
129 {
130  using Base = scx_evs_CortexA76x3;
131  using Params = FastModelScxEvsCortexA76x3Params;
132  static const int CoreCount = 3;
133 };
135 extern template class ScxEvsCortexA76<ScxEvsCortexA76x3Types>;
136 
138 {
139  using Base = scx_evs_CortexA76x4;
140  using Params = FastModelScxEvsCortexA76x4Params;
141  static const int CoreCount = 4;
142 };
144 extern template class ScxEvsCortexA76<ScxEvsCortexA76x4Types>;
145 
146 } // namespace FastModel
147 
148 #endif // __ARCH_ARM_FASTMODEL_CORTEXA76_EVS_HH__
FastModel::ScxEvsCortexA76::cnthpirq
std::vector< std::unique_ptr< SignalReceiver > > cnthpirq
Definition: evs.hh:74
FastModel::ScxEvsCortexA76::cntpnsirq
std::vector< std::unique_ptr< SignalReceiver > > cntpnsirq
Definition: evs.hh:82
FastModel::ScxEvsCortexA76::CoreCount
static const int CoreCount
Definition: evs.hh:58
sc_core::SC_ONE_OR_MORE_BOUND
@ SC_ONE_OR_MORE_BOUND
Definition: sc_port.hh:69
FastModel::ScxEvsCortexA76::ctidbgirq
std::vector< std::unique_ptr< SignalReceiver > > ctidbgirq
Definition: evs.hh:79
FastModel::ScxEvsCortexA76::commirq
std::vector< std::unique_ptr< SignalReceiver > > commirq
Definition: evs.hh:78
FastModel::ScxEvsCortexA76::cnthvirq
std::vector< std::unique_ptr< SignalReceiver > > cnthvirq
Definition: evs.hh:75
FastModel::ScxEvsCortexA76::gem5_getPort
Port & gem5_getPort(const std::string &if_name, int idx) override
Definition: evs.cc:140
sc_core::sc_attribute< Tick >
FastModel::ScxEvsCortexA76::SC_HAS_PROCESS
SC_HAS_PROCESS(ScxEvsCortexA76)
FastModel::ScxEvsCortexA76x4Types::Base
scx_evs_CortexA76x4 Base
Definition: evs.hh:139
FastModel::ScxEvsCortexA76::clockRateControl
ClockRateControlInitiatorSocket clockRateControl
Definition: evs.hh:64
FastModel::ScxEvsCortexA76x1Types::Params
FastModelScxEvsCortexA76x1Params Params
Definition: evs.hh:113
std::vector
STL vector class.
Definition: stl.hh:37
FastModel::ScxEvsCortexA76x4Types
Definition: evs.hh:137
FastModel::ScxEvsCortexA76::start_of_simulation
void start_of_simulation() override
Definition: evs.hh:107
FastModel::ScxEvsCortexA76::gem5CpuCluster
sc_core::sc_attribute< CortexA76Cluster * > gem5CpuCluster
Definition: evs.hh:86
FastModel::ScxEvsCortexA76::amba
AmbaInitiator amba
Definition: evs.hh:71
sc_event.hh
FastModel::ScxEvsCortexA76x1Types::Base
scx_evs_CortexA76x1 Base
Definition: evs.hh:112
FastModel::ScxEvsCortexA76::clockPeriod
sc_core::sc_attribute< Tick > clockPeriod
Definition: evs.hh:85
sc_core::sc_event
Definition: sc_event.hh:169
Port
Ports are used to interface objects to each other.
Definition: port.hh:56
FastModel::ScxEvsCortexA76::clockChanged
sc_core::sc_event clockChanged
Definition: evs.hh:84
FastModel::ScxEvsCortexA76x1Types
Definition: evs.hh:110
port_proxy.hh
FastModel::ScxEvsCortexA76x3Types::Params
FastModelScxEvsCortexA76x3Params Params
Definition: evs.hh:131
FastModel::ScxEvsCortexA76::TlmGicTarget
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
Definition: evs.hh:69
FastModel::ScxEvsCortexA76::sendFunctional
sc_core::sc_attribute< PortProxy::SendFunctionalFunc > sendFunctional
Definition: evs.hh:87
sc_core::sc_module_name
Definition: sc_module_name.hh:41
FastModel::ScxEvsCortexA76::ScxEvsCortexA76
ScxEvsCortexA76(const sc_core::sc_module_name &mod_name, const Params &p)
Definition: evs.cc:48
FastModel::ScxEvsCortexA76x2Types::Params
FastModelScxEvsCortexA76x2Params Params
Definition: evs.hh:122
FastModel::ScxEvsCortexA76::before_end_of_elaboration
void before_end_of_elaboration() override
Definition: evs.cc:108
FastModel::ScxEvsCortexA76::redist
std::vector< std::unique_ptr< TlmGicTarget > > redist
Definition: evs.hh:72
sc_module.hh
amba_ports.hh
FastModel::ScxEvsCortexA76::Base
typename Types::Base Base
Definition: evs.hh:59
ClockRateControlInitiatorSocket
Definition: exported_clock_rate_control.hh:60
FastModel::ScxEvsCortexA76x3Types::Base
scx_evs_CortexA76x3 Base
Definition: evs.hh:130
FastModel::ScxEvsCortexA76x1Types::CoreCount
static const int CoreCount
Definition: evs.hh:114
FastModel::ScxEvsCortexA76::sendFunc
void sendFunc(PacketPtr pkt)
Definition: evs.cc:98
FastModel::ScxEvsCortexA76::cntpsirq
std::vector< std::unique_ptr< SignalReceiver > > cntpsirq
Definition: evs.hh:76
FastModel::ScxEvsCortexA76::end_of_elaboration
void end_of_elaboration() override
Definition: evs.hh:102
FastModel::ScxEvsCortexA76
Definition: evs.hh:55
FastModel::ScxEvsCortexA76::vcpumntirq
std::vector< std::unique_ptr< SignalReceiver > > vcpumntirq
Definition: evs.hh:81
FastModel
Definition: amba_from_tlm_bridge.cc:32
FastModel::ScxEvsCortexA76::clockChangeHandler
void clockChangeHandler()
Definition: evs.cc:42
sc_gem5::TlmInitiatorBaseWrapper
Definition: tlm_port_wrapper.hh:40
Packet
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
Definition: packet.hh:257
FastModel::ScxEvsCortexA76x3Types
Definition: evs.hh:128
exported_clock_rate_control.hh
tlm_port_wrapper.hh
FastModel::ScxEvsCortexA76x4Types::Params
FastModelScxEvsCortexA76x4Params Params
Definition: evs.hh:140
FastModel::ScxEvsCortexA76::params
const Params & params
Definition: evs.hh:93
MipsISA::p
Bitfield< 0 > p
Definition: pra_constants.hh:323
signal_receiver.hh
FastModel::ScxEvsCortexA76x2Types::Base
scx_evs_CortexA76x2 Base
Definition: evs.hh:121
FastModel::ScxEvsCortexA76::Params
typename Types::Params Params
Definition: evs.hh:60
sc_gem5::TlmTargetBaseWrapper
Definition: tlm_port_wrapper.hh:44
FastModel::ScxEvsCortexA76::cntvirq
std::vector< std::unique_ptr< SignalReceiver > > cntvirq
Definition: evs.hh:77
FastModel::ScxEvsCortexA76::pmuirq
std::vector< std::unique_ptr< SignalReceiver > > pmuirq
Definition: evs.hh:80
FastModel::ScxEvsCortexA76x2Types
Definition: evs.hh:119

Generated on Wed Sep 30 2020 14:01:58 for gem5 by doxygen 1.8.17