gem5 v24.0.0.0
Loading...
Searching...
No Matches
signal_interrupt.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_PROTOCOL_SIGNAL_INTERRUPT_HH__
29#define __ARCH_ARM_FASTMODEL_PROTOCOL_SIGNAL_INTERRUPT_HH__
30
31#include <string>
32#include <systemc>
33#include <tlm>
34
35namespace gem5
36{
37
39
41{
42 public:
44 virtual void ppi(uint8_t cpu, uint32_t num, bool state) = 0;
45 virtual void spi(uint32_t num, bool state) = 0;
46};
47
49{
50 public:
52};
53
55{
56 public:
57 SignalInterruptSlaveBase(const std::string &name) {}
58};
59
61 public tlm::tlm_base_initiator_socket<64, SignalInterruptFwIf,
62 SignalInterruptBwIf>
63{
64 private:
66
67 public:
70
71 using Base::bind;
72 using Base::operator();
73
82
83 const char *
84 kind() const override
85 {
86 return "SignalInterruptInitiatorSocket";
87 }
88
89 std::type_index
90 get_protocol_types() const override
91 {
93 }
94};
95
97 public tlm::tlm_base_target_socket<64, SignalInterruptFwIf,
98 SignalInterruptBwIf>
99{
100 public:
103
104 using Base::bind;
105 using Base::operator();
106
107 using Base::Base;
108
109 const char *
110 kind() const override
111 {
112 return "SignalInterruptInitiatorSocket";
113 }
114
115 std::type_index
116 get_protocol_types() const override
117 {
119 }
120};
121
122} // namespace gem5
123
124#endif // __ARCH_ARM_FASTMODEL_PROTOCOL_SIGNAL_INTERRUPT_HH__
virtual void spi(uint32_t num, bool state)=0
virtual void ppi(uint8_t cpu, uint32_t num, bool state)=0
std::type_index get_protocol_types() const override
const char * kind() const override
tlm::tlm_base_initiator_socket< 64, SignalInterruptFwIf, SignalInterruptBwIf > Base
SignalInterruptSlaveBase(const std::string &name)
tlm::tlm_base_target_socket< 64, SignalInterruptFwIf, SignalInterruptBwIf > Base
std::type_index get_protocol_types() const override
const char * kind() const override
virtual sc_core::sc_export< SignalInterruptBwIf > & get_base_export()
atomic_var_t state
Definition helpers.cc:211
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
Definition binary32.hh:36
const std::string & name()
Definition trace.cc:48

Generated on Tue Jun 18 2024 16:23:56 for gem5 by doxygen 1.11.0