gem5  v22.0.0.2
sc_module.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2018 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 __SYSTEMC_CORE_EXT_SC_MODULE_HH__
29 #define __SYSTEMC_CORE_EXT_SC_MODULE_HH__
30 
31 #include <string>
32 #include <vector>
33 
34 #include "sc_object.hh"
35 #include "sc_process_handle.hh"
36 #include "sc_sensitive.hh"
37 #include "sc_time.hh"
38 
39 namespace sc_dt
40 {
41 
42 class sc_logic;
43 
44 } // namespace sc_dt
45 
46 namespace sc_gem5
47 {
48 
49 class Kernel;
50 class Module;
51 class Process;
52 struct ProcessFuncWrapper;
53 
54 Process *newMethodProcess(const char *name, ProcessFuncWrapper *func);
55 Process *newThreadProcess(const char *name, ProcessFuncWrapper *func);
56 Process *newCThreadProcess(const char *name, ProcessFuncWrapper *func);
57 
58 } // namespace sc_gem5
59 
60 namespace gem5
61 {
62 
63 class Port;
64 
65 } // namespace gem5
66 
67 namespace sc_core
68 {
69 
70 template <class T>
71 class sc_in;
72 template <class T>
73 class sc_out;
74 template <class T>
75 class sc_inout;
76 template <class T>
77 class sc_signal_in_if;
78 
79 class sc_event;
80 class sc_event_and_list;
81 class sc_event_or_list;
82 class sc_module_name;
83 
85 {
86  private:
89 
90  public:
91  sc_bind_proxy();
94 
95  sc_interface *interface() const { return _interface; }
96  sc_port_base *port() const { return _port; }
97 };
98 
99 extern const sc_bind_proxy SC_BIND_PROXY_NIL;
100 
101 class sc_module : public sc_object
102 {
103  public:
104  // Gem5 specific extensions
105  virtual gem5::Port &gem5_getPort(const std::string &if_name, int idx=-1);
106 
107  public:
108  friend class ::sc_gem5::Kernel;
109  friend class ::sc_gem5::Module;
110 
111  virtual ~sc_module();
112 
113  virtual const char *kind() const { return "sc_module"; }
114 
115  void operator () (const sc_bind_proxy &p001,
116  const sc_bind_proxy &p002 = SC_BIND_PROXY_NIL,
117  const sc_bind_proxy &p003 = SC_BIND_PROXY_NIL,
118  const sc_bind_proxy &p004 = SC_BIND_PROXY_NIL,
119  const sc_bind_proxy &p005 = SC_BIND_PROXY_NIL,
120  const sc_bind_proxy &p006 = SC_BIND_PROXY_NIL,
121  const sc_bind_proxy &p007 = SC_BIND_PROXY_NIL,
122  const sc_bind_proxy &p008 = SC_BIND_PROXY_NIL,
123  const sc_bind_proxy &p009 = SC_BIND_PROXY_NIL,
124  const sc_bind_proxy &p010 = SC_BIND_PROXY_NIL,
125  const sc_bind_proxy &p011 = SC_BIND_PROXY_NIL,
126  const sc_bind_proxy &p012 = SC_BIND_PROXY_NIL,
127  const sc_bind_proxy &p013 = SC_BIND_PROXY_NIL,
128  const sc_bind_proxy &p014 = SC_BIND_PROXY_NIL,
129  const sc_bind_proxy &p015 = SC_BIND_PROXY_NIL,
130  const sc_bind_proxy &p016 = SC_BIND_PROXY_NIL,
131  const sc_bind_proxy &p017 = SC_BIND_PROXY_NIL,
132  const sc_bind_proxy &p018 = SC_BIND_PROXY_NIL,
133  const sc_bind_proxy &p019 = SC_BIND_PROXY_NIL,
134  const sc_bind_proxy &p020 = SC_BIND_PROXY_NIL,
135  const sc_bind_proxy &p021 = SC_BIND_PROXY_NIL,
136  const sc_bind_proxy &p022 = SC_BIND_PROXY_NIL,
137  const sc_bind_proxy &p023 = SC_BIND_PROXY_NIL,
138  const sc_bind_proxy &p024 = SC_BIND_PROXY_NIL,
139  const sc_bind_proxy &p025 = SC_BIND_PROXY_NIL,
140  const sc_bind_proxy &p026 = SC_BIND_PROXY_NIL,
141  const sc_bind_proxy &p027 = SC_BIND_PROXY_NIL,
142  const sc_bind_proxy &p028 = SC_BIND_PROXY_NIL,
143  const sc_bind_proxy &p029 = SC_BIND_PROXY_NIL,
144  const sc_bind_proxy &p030 = SC_BIND_PROXY_NIL,
145  const sc_bind_proxy &p031 = SC_BIND_PROXY_NIL,
146  const sc_bind_proxy &p032 = SC_BIND_PROXY_NIL,
147  const sc_bind_proxy &p033 = SC_BIND_PROXY_NIL,
148  const sc_bind_proxy &p034 = SC_BIND_PROXY_NIL,
149  const sc_bind_proxy &p035 = SC_BIND_PROXY_NIL,
150  const sc_bind_proxy &p036 = SC_BIND_PROXY_NIL,
151  const sc_bind_proxy &p037 = SC_BIND_PROXY_NIL,
152  const sc_bind_proxy &p038 = SC_BIND_PROXY_NIL,
153  const sc_bind_proxy &p039 = SC_BIND_PROXY_NIL,
154  const sc_bind_proxy &p040 = SC_BIND_PROXY_NIL,
155  const sc_bind_proxy &p041 = SC_BIND_PROXY_NIL,
156  const sc_bind_proxy &p042 = SC_BIND_PROXY_NIL,
157  const sc_bind_proxy &p043 = SC_BIND_PROXY_NIL,
158  const sc_bind_proxy &p044 = SC_BIND_PROXY_NIL,
159  const sc_bind_proxy &p045 = SC_BIND_PROXY_NIL,
160  const sc_bind_proxy &p046 = SC_BIND_PROXY_NIL,
161  const sc_bind_proxy &p047 = SC_BIND_PROXY_NIL,
162  const sc_bind_proxy &p048 = SC_BIND_PROXY_NIL,
163  const sc_bind_proxy &p049 = SC_BIND_PROXY_NIL,
164  const sc_bind_proxy &p050 = SC_BIND_PROXY_NIL,
165  const sc_bind_proxy &p051 = SC_BIND_PROXY_NIL,
166  const sc_bind_proxy &p052 = SC_BIND_PROXY_NIL,
167  const sc_bind_proxy &p053 = SC_BIND_PROXY_NIL,
168  const sc_bind_proxy &p054 = SC_BIND_PROXY_NIL,
169  const sc_bind_proxy &p055 = SC_BIND_PROXY_NIL,
170  const sc_bind_proxy &p056 = SC_BIND_PROXY_NIL,
171  const sc_bind_proxy &p057 = SC_BIND_PROXY_NIL,
172  const sc_bind_proxy &p058 = SC_BIND_PROXY_NIL,
173  const sc_bind_proxy &p059 = SC_BIND_PROXY_NIL,
174  const sc_bind_proxy &p060 = SC_BIND_PROXY_NIL,
175  const sc_bind_proxy &p061 = SC_BIND_PROXY_NIL,
176  const sc_bind_proxy &p062 = SC_BIND_PROXY_NIL,
177  const sc_bind_proxy &p063 = SC_BIND_PROXY_NIL,
178  const sc_bind_proxy &p064 = SC_BIND_PROXY_NIL);
179 
180  // Deprecated
185 
186  virtual const std::vector<sc_object *> &get_child_objects() const;
187  virtual const std::vector<sc_event *> &get_child_events() const;
188 
189  protected:
190  sc_module(const sc_module_name &);
191  sc_module();
192 
193  // Deprecated
194  sc_module(const char *);
195  sc_module(const std::string &);
196 
197  /* Deprecated, but used in the regression tests. */
198  void end_module();
199 
200  void reset_signal_is(const sc_in<bool> &, bool);
201  void reset_signal_is(const sc_inout<bool> &, bool);
202  void reset_signal_is(const sc_out<bool> &, bool);
203  void reset_signal_is(const sc_signal_in_if<bool> &, bool);
204 
205  void async_reset_signal_is(const sc_in<bool> &, bool);
206  void async_reset_signal_is(const sc_inout<bool> &, bool);
207  void async_reset_signal_is(const sc_out<bool> &, bool);
208  void async_reset_signal_is(const sc_signal_in_if<bool> &, bool);
209 
211 
212  void dont_initialize();
213  void set_stack_size(size_t);
214 
215  void next_trigger();
216  void next_trigger(const sc_event &);
217  void next_trigger(const sc_event_or_list &);
218  void next_trigger(const sc_event_and_list &);
219  void next_trigger(const sc_time &);
220  void next_trigger(double, sc_time_unit);
221  void next_trigger(const sc_time &, const sc_event &);
222  void next_trigger(double, sc_time_unit, const sc_event &);
223  void next_trigger(const sc_time &, const sc_event_or_list &);
224  void next_trigger(double, sc_time_unit, const sc_event_or_list &);
225  void next_trigger(const sc_time &, const sc_event_and_list &);
226  void next_trigger(double, sc_time_unit, const sc_event_and_list &);
227 
228  // Nonstandard
229  bool timed_out();
230 
231  void wait();
232  void wait(int);
233  void wait(const sc_event &);
234  void wait(const sc_event_or_list &);
235  void wait(const sc_event_and_list &);
236  void wait(const sc_time &);
237  void wait(double, sc_time_unit);
238  void wait(const sc_time &, const sc_event &);
239  void wait(double, sc_time_unit, const sc_event &);
240  void wait(const sc_time &, const sc_event_or_list &);
241  void wait(double, sc_time_unit, const sc_event_or_list &);
242  void wait(const sc_time &, const sc_event_and_list &);
243  void wait(double, sc_time_unit, const sc_event_and_list &);
244 
245  // Nonstandard
246  void halt();
247  void at_posedge(const sc_signal_in_if<bool> &);
249  void at_negedge(const sc_signal_in_if<bool> &);
251 
252  virtual void before_end_of_elaboration() {}
253  virtual void end_of_elaboration() {}
254  virtual void start_of_simulation() {}
255  virtual void end_of_simulation() {}
256 
257  private:
259 
260  // Disabled
261  sc_module(const sc_module &) : sc_object() {};
262  sc_module &operator = (const sc_module &) { return *this; }
263 };
264 
265 void next_trigger();
266 void next_trigger(const sc_event &);
267 void next_trigger(const sc_event_or_list &);
268 void next_trigger(const sc_event_and_list &);
269 void next_trigger(const sc_time &);
270 void next_trigger(double, sc_time_unit);
271 void next_trigger(const sc_time &, const sc_event &);
272 void next_trigger(double, sc_time_unit, const sc_event &);
273 void next_trigger(const sc_time &, const sc_event_or_list &);
274 void next_trigger(double, sc_time_unit, const sc_event_or_list &);
275 void next_trigger(const sc_time &, const sc_event_and_list &);
276 void next_trigger(double, sc_time_unit, const sc_event_and_list &);
277 
278 void wait();
279 void wait(int);
280 void wait(const sc_event &);
281 void wait(const sc_event_or_list &);
282 void wait(const sc_event_and_list &);
283 void wait(const sc_time &);
284 void wait(double, sc_time_unit);
285 void wait(const sc_time &, const sc_event &);
286 void wait(double, sc_time_unit, const sc_event &);
287 void wait(const sc_time &, const sc_event_or_list &);
288 void wait(double, sc_time_unit, const sc_event_or_list &);
289 void wait(const sc_time &, const sc_event_and_list &);
290 void wait(double, sc_time_unit, const sc_event_and_list &);
291 
292 // Nonstandard
293 bool timed_out();
294 
295 #define SC_MODULE(name) struct name : ::sc_core::sc_module
296 
297 #define SC_CTOR(name) \
298  typedef name SC_CURRENT_USER_MODULE; \
299  name(::sc_core::sc_module_name)
300 
301 #define SC_HAS_PROCESS(name) typedef name SC_CURRENT_USER_MODULE
302 
303 #define SC_METHOD(name) \
304  { \
305  ::sc_gem5::Process *p = \
306  ::sc_gem5::newMethodProcess( \
307  #name, new ::sc_gem5::ProcessMemberFuncWrapper< \
308  SC_CURRENT_USER_MODULE>(this, \
309  &SC_CURRENT_USER_MODULE::name)); \
310  if (p) \
311  this->sensitive << p; \
312  }
313 #define SC_THREAD(name) \
314  { \
315  ::sc_gem5::Process *p = \
316  ::sc_gem5::newThreadProcess( \
317  #name, new ::sc_gem5::ProcessMemberFuncWrapper< \
318  SC_CURRENT_USER_MODULE>(this, \
319  &SC_CURRENT_USER_MODULE::name)); \
320  if (p) \
321  this->sensitive << p; \
322  }
323 #define SC_CTHREAD(name, clk) \
324  { \
325  ::sc_gem5::Process *p = \
326  ::sc_gem5::newCThreadProcess( \
327  #name, new ::sc_gem5::ProcessMemberFuncWrapper< \
328  SC_CURRENT_USER_MODULE>(this, \
329  &SC_CURRENT_USER_MODULE::name)); \
330  if (p) \
331  this->sensitive(p, clk); \
332  }
333 
334 // Nonstandard
335 // Documentation for this is very scarce, but it looks like it's supposed to
336 // stop the currently executing cthread, or if a cthread isn't running report
337 // an error.
338 void halt();
339 void at_posedge(const sc_signal_in_if<bool> &);
340 void at_posedge(const sc_signal_in_if<sc_dt::sc_logic> &);
341 void at_negedge(const sc_signal_in_if<bool> &);
342 void at_negedge(const sc_signal_in_if<sc_dt::sc_logic> &);
343 
344 const char *sc_gen_unique_name(const char *);
345 
346 // Nonstandard
347 bool sc_hierarchical_name_exists(const char *name);
348 
351 
354 
355 // Nonstandard
356 // Allocates a module of type x and records a pointer to it so that it gets
357 // destructed automatically at the end of the simulation.
359 #define SC_NEW(x) ::sc_core::sc_module_sc_new(new x);
360 
361 // Nonstandard
362 #define SC_WAIT() \
363  ::sc_core::sc_set_location(__FILE__, __LINE__); \
364  ::sc_core::wait(); \
365  ::sc_core::sc_set_location(NULL, 0)
366 
367 // Nonstandard
368 #define SC_WAITN(n) \
369  ::sc_core::sc_set_location(__FILE__, __LINE__); \
370  ::sc_core::wait(n); \
371  ::sc_core::sc_set_location(NULL, 0)
372 
373 // Nonstandard
374 #define SC_WAIT_UNTIL(expr) \
375  do { SC_WAIT(); } while (!(expr))
376 
377 } // namespace sc_core
378 
379 #endif //__SYSTEMC_EXT_CORE_SC_MODULE_HH__
sc_core::sc_port_base
Definition: sc_port.hh:74
sc_core::sc_in< bool >
Definition: sc_in.hh:165
sc_core::sc_module::operator()
void operator()(const sc_bind_proxy &p001, const sc_bind_proxy &p002=SC_BIND_PROXY_NIL, const sc_bind_proxy &p003=SC_BIND_PROXY_NIL, const sc_bind_proxy &p004=SC_BIND_PROXY_NIL, const sc_bind_proxy &p005=SC_BIND_PROXY_NIL, const sc_bind_proxy &p006=SC_BIND_PROXY_NIL, const sc_bind_proxy &p007=SC_BIND_PROXY_NIL, const sc_bind_proxy &p008=SC_BIND_PROXY_NIL, const sc_bind_proxy &p009=SC_BIND_PROXY_NIL, const sc_bind_proxy &p010=SC_BIND_PROXY_NIL, const sc_bind_proxy &p011=SC_BIND_PROXY_NIL, const sc_bind_proxy &p012=SC_BIND_PROXY_NIL, const sc_bind_proxy &p013=SC_BIND_PROXY_NIL, const sc_bind_proxy &p014=SC_BIND_PROXY_NIL, const sc_bind_proxy &p015=SC_BIND_PROXY_NIL, const sc_bind_proxy &p016=SC_BIND_PROXY_NIL, const sc_bind_proxy &p017=SC_BIND_PROXY_NIL, const sc_bind_proxy &p018=SC_BIND_PROXY_NIL, const sc_bind_proxy &p019=SC_BIND_PROXY_NIL, const sc_bind_proxy &p020=SC_BIND_PROXY_NIL, const sc_bind_proxy &p021=SC_BIND_PROXY_NIL, const sc_bind_proxy &p022=SC_BIND_PROXY_NIL, const sc_bind_proxy &p023=SC_BIND_PROXY_NIL, const sc_bind_proxy &p024=SC_BIND_PROXY_NIL, const sc_bind_proxy &p025=SC_BIND_PROXY_NIL, const sc_bind_proxy &p026=SC_BIND_PROXY_NIL, const sc_bind_proxy &p027=SC_BIND_PROXY_NIL, const sc_bind_proxy &p028=SC_BIND_PROXY_NIL, const sc_bind_proxy &p029=SC_BIND_PROXY_NIL, const sc_bind_proxy &p030=SC_BIND_PROXY_NIL, const sc_bind_proxy &p031=SC_BIND_PROXY_NIL, const sc_bind_proxy &p032=SC_BIND_PROXY_NIL, const sc_bind_proxy &p033=SC_BIND_PROXY_NIL, const sc_bind_proxy &p034=SC_BIND_PROXY_NIL, const sc_bind_proxy &p035=SC_BIND_PROXY_NIL, const sc_bind_proxy &p036=SC_BIND_PROXY_NIL, const sc_bind_proxy &p037=SC_BIND_PROXY_NIL, const sc_bind_proxy &p038=SC_BIND_PROXY_NIL, const sc_bind_proxy &p039=SC_BIND_PROXY_NIL, const sc_bind_proxy &p040=SC_BIND_PROXY_NIL, const sc_bind_proxy &p041=SC_BIND_PROXY_NIL, const sc_bind_proxy &p042=SC_BIND_PROXY_NIL, const sc_bind_proxy &p043=SC_BIND_PROXY_NIL, const sc_bind_proxy &p044=SC_BIND_PROXY_NIL, const sc_bind_proxy &p045=SC_BIND_PROXY_NIL, const sc_bind_proxy &p046=SC_BIND_PROXY_NIL, const sc_bind_proxy &p047=SC_BIND_PROXY_NIL, const sc_bind_proxy &p048=SC_BIND_PROXY_NIL, const sc_bind_proxy &p049=SC_BIND_PROXY_NIL, const sc_bind_proxy &p050=SC_BIND_PROXY_NIL, const sc_bind_proxy &p051=SC_BIND_PROXY_NIL, const sc_bind_proxy &p052=SC_BIND_PROXY_NIL, const sc_bind_proxy &p053=SC_BIND_PROXY_NIL, const sc_bind_proxy &p054=SC_BIND_PROXY_NIL, const sc_bind_proxy &p055=SC_BIND_PROXY_NIL, const sc_bind_proxy &p056=SC_BIND_PROXY_NIL, const sc_bind_proxy &p057=SC_BIND_PROXY_NIL, const sc_bind_proxy &p058=SC_BIND_PROXY_NIL, const sc_bind_proxy &p059=SC_BIND_PROXY_NIL, const sc_bind_proxy &p060=SC_BIND_PROXY_NIL, const sc_bind_proxy &p061=SC_BIND_PROXY_NIL, const sc_bind_proxy &p062=SC_BIND_PROXY_NIL, const sc_bind_proxy &p063=SC_BIND_PROXY_NIL, const sc_bind_proxy &p064=SC_BIND_PROXY_NIL)
Definition: sc_module.cc:125
sc_core::sc_signal_in_if< bool >
Definition: sc_signal_in_if.hh:74
sc_core::sc_module
Definition: sc_module.hh:101
sc_core::sc_module::set_stack_size
void set_stack_size(size_t)
Definition: sc_module.cc:345
sc_dt
Definition: sc_bit.cc:67
sc_core::sc_bind_proxy::_interface
sc_interface * _interface
Definition: sc_module.hh:87
sc_core
Definition: messages.cc:31
sc_core::sc_module::async_reset_signal_is
void async_reset_signal_is(const sc_in< bool > &, bool)
Definition: sc_module.cc:311
sc_core::sc_time_unit
sc_time_unit
Definition: sc_time.hh:40
sc_core::sc_module::reset_signal_is
void reset_signal_is(const sc_in< bool > &, bool)
Definition: sc_module.cc:286
sc_core::sc_event_and_list
Definition: sc_event.hh:61
sc_core::sc_interface
Definition: sc_interface.hh:37
sc_core::sc_bind_proxy::interface
sc_interface * interface() const
Definition: sc_module.hh:95
sc_core::sc_event_or_list
Definition: sc_event.hh:93
sc_core::sc_module::sc_module
sc_module()
Definition: sc_module.cc:256
sc_core::sc_bind_proxy::_port
sc_port_base * _port
Definition: sc_module.hh:88
sc_core::sc_bind_proxy::port
sc_port_base * port() const
Definition: sc_module.hh:96
sc_core::sc_module_sc_new
sc_module * sc_module_sc_new(sc_module *mod)
Definition: sc_module.cc:858
sc_core::sc_hierarchical_name_exists
bool sc_hierarchical_name_exists(const char *name)
Definition: sc_module.cc:839
std::vector
STL vector class.
Definition: stl.hh:37
sc_gem5::newThreadProcess
Process * newThreadProcess(const char *name, ProcessFuncWrapper *func)
Definition: sc_module.cc:69
sc_core::sc_module::~sc_module
virtual ~sc_module()
Definition: sc_module.cc:122
sc_core::timed_out
bool timed_out()
Definition: sc_module.cc:626
sc_core::sc_module::next_trigger
void next_trigger()
Definition: sc_module.cc:351
sc_core::sc_bind_proxy
Definition: sc_module.hh:84
sc_core::sc_module::kind
virtual const char * kind() const
Definition: sc_module.hh:113
sc_core::sc_module::get_child_objects
virtual const std::vector< sc_object * > & get_child_objects() const
Definition: sc_module.cc:245
sc_core::sc_module::end_of_simulation
virtual void end_of_simulation()
Definition: sc_module.hh:255
sc_core::sc_sensitive
Definition: sc_sensitive.hh:63
sc_core::sc_module::dont_initialize
void dont_initialize()
Definition: sc_module.cc:336
sc_core::sc_event
Definition: sc_event.hh:169
sc_core::sc_time
Definition: sc_time.hh:49
sc_core::sc_module::operator<<
sc_module & operator<<(sc_interface &)
Definition: sc_module.cc:217
sc_core::sc_module_name
Definition: sc_module_name.hh:41
sc_core::sc_channel
sc_module sc_channel
Definition: sc_module.hh:350
sc_gem5::newMethodProcess
Process * newMethodProcess(const char *name, ProcessFuncWrapper *func)
Definition: sc_module.cc:54
sc_core::sc_module::sc_module
sc_module(const sc_module &)
Definition: sc_module.hh:261
sc_core::sc_gen_unique_name
const char * sc_gen_unique_name(const char *seed)
Definition: sc_module.cc:820
sc_core::sc_object
Definition: sc_object.hh:50
name
const std::string & name()
Definition: trace.cc:49
sc_core::sc_module::operator=
sc_module & operator=(const sc_module &)
Definition: sc_module.hh:262
sc_core::sc_module::end_of_elaboration
virtual void end_of_elaboration()
Definition: sc_module.hh:253
sc_core::sc_behavior
sc_module sc_behavior
Definition: sc_module.hh:349
sc_sensitive.hh
sc_core::sc_module::at_negedge
void at_negedge(const sc_signal_in_if< bool > &)
Definition: sc_module.cc:525
sc_core::sc_start_of_simulation_invoked
bool sc_start_of_simulation_invoked()
Definition: sc_module.cc:846
sc_process_handle.hh
sc_core::sc_module::timed_out
bool timed_out()
Definition: sc_module.cc:421
sc_core::sc_bind_proxy::sc_bind_proxy
sc_bind_proxy()
Definition: sc_module.cc:104
sc_core::wait
void wait()
Definition: sc_module.cc:653
sc_core::SC_BIND_PROXY_NIL
const sc_bind_proxy SC_BIND_PROXY_NIL
Definition: sc_module.cc:114
gem5::Port
Ports are used to interface objects to each other.
Definition: port.hh:61
sc_core::at_posedge
void at_posedge(const sc_signal_in_if< bool > &s)
Definition: sc_module.cc:784
sc_core::sc_module::gem5_getPort
virtual gem5::Port & gem5_getPort(const std::string &if_name, int idx=-1)
Definition: sc_module.cc:117
sc_core::sc_module::before_end_of_elaboration
virtual void before_end_of_elaboration()
Definition: sc_module.hh:252
sc_core::sc_signal_in_if< sc_dt::sc_logic >
Definition: sc_signal_in_if.hh:108
sc_gem5::newCThreadProcess
Process * newCThreadProcess(const char *name, ProcessFuncWrapper *func)
Definition: sc_module.cc:84
sc_core::sc_out< bool >
sc_object.hh
sc_core::sc_inout< bool >
Definition: sc_inout.hh:193
sc_core::sc_module::wait
void wait()
Definition: sc_module.cc:428
sc_gem5
Definition: sc_clock.cc:41
sc_core::sc_module::halt
void halt()
Definition: sc_module.cc:507
sc_core::at_negedge
void at_negedge(const sc_signal_in_if< bool > &s)
Definition: sc_module.cc:802
sc_core::sc_module::_gem5_module
sc_gem5::Module * _gem5_module
Definition: sc_module.hh:258
sc_core::sc_module::start_of_simulation
virtual void start_of_simulation()
Definition: sc_module.hh:254
sc_core::sc_module::sensitive
sc_sensitive sensitive
Definition: sc_module.hh:210
sc_core::halt
void halt()
Definition: sc_module.cc:777
gem5
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
Definition: gpu_translation_state.hh:37
sc_time.hh
sc_core::next_trigger
void next_trigger()
Definition: sc_module.cc:538
sc_core::sc_module::end_module
void end_module()
Definition: sc_module.cc:280
sc_core::sc_end_of_simulation_invoked
bool sc_end_of_simulation_invoked()
Definition: sc_module.cc:852
sc_gem5::Module
Definition: module.hh:71
sc_core::sc_module::get_child_events
virtual const std::vector< sc_event * > & get_child_events() const
Definition: sc_module.cc:251
sc_core::sc_module::at_posedge
void at_posedge(const sc_signal_in_if< bool > &)
Definition: sc_module.cc:513
sc_core::sc_module::operator,
sc_module & operator,(sc_interface &)
Definition: sc_module.cc:231

Generated on Thu Jul 28 2022 13:32:38 for gem5 by doxygen 1.8.17