sc_module.hh (12909:88127fe770f5) sc_module.hh (12914:8fe7d8389c0f)
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

--- 22 unchanged lines hidden (view full) ---

31#define __SYSTEMC_CORE_EXT_SC_MODULE_HH__
32
33#include <vector>
34
35#include "sc_object.hh"
36#include "sc_sensitive.hh"
37#include "sc_time.hh"
38
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

--- 22 unchanged lines hidden (view full) ---

31#define __SYSTEMC_CORE_EXT_SC_MODULE_HH__
32
33#include <vector>
34
35#include "sc_object.hh"
36#include "sc_sensitive.hh"
37#include "sc_time.hh"
38
39namespace sc_dt
40{
41
42class sc_logic;
43
44} // namespace sc_dt
45
39namespace sc_core
40{
41
42template <class T>
43class sc_in;
44template <class T>
45class sc_out;
46template <class T>

--- 134 unchanged lines hidden (view full) ---

181 void wait(double, sc_time_unit);
182 void wait(const sc_time &, const sc_event &);
183 void wait(double, sc_time_unit, const sc_event &);
184 void wait(const sc_time &, const sc_event_or_list &);
185 void wait(double, sc_time_unit, const sc_event_or_list &);
186 void wait(const sc_time &, const sc_event_and_list &);
187 void wait(double, sc_time_unit, const sc_event_and_list &);
188
46namespace sc_core
47{
48
49template <class T>
50class sc_in;
51template <class T>
52class sc_out;
53template <class T>

--- 134 unchanged lines hidden (view full) ---

188 void wait(double, sc_time_unit);
189 void wait(const sc_time &, const sc_event &);
190 void wait(double, sc_time_unit, const sc_event &);
191 void wait(const sc_time &, const sc_event_or_list &);
192 void wait(double, sc_time_unit, const sc_event_or_list &);
193 void wait(const sc_time &, const sc_event_and_list &);
194 void wait(double, sc_time_unit, const sc_event_and_list &);
195
196 // Nonstandard
189 void halt();
197 void halt();
198 void at_posedge(const sc_signal_in_if<bool> &);
199 void at_posedge(const sc_signal_in_if<sc_dt::sc_logic> &);
200 void at_negedge(const sc_signal_in_if<bool> &);
201 void at_negedge(const sc_signal_in_if<sc_dt::sc_logic> &);
190
191 virtual void before_end_of_elaboration() {}
192 virtual void end_of_elaboration() {}
193 virtual void start_of_simulation() {}
194 virtual void end_of_simulation() {}
195
196 private:
197 // Disabled

--- 40 unchanged lines hidden (view full) ---

238#define SC_THREAD(name) /* Implementation defined */
239#define SC_CTHREAD(name, clk) /* Implementation defined */
240
241// Nonstandard
242// Documentation for this is very scarce, but it looks like it's supposed to
243// stop the currently executing cthread, or if a cthread isn't running report
244// an error.
245void halt();
202
203 virtual void before_end_of_elaboration() {}
204 virtual void end_of_elaboration() {}
205 virtual void start_of_simulation() {}
206 virtual void end_of_simulation() {}
207
208 private:
209 // Disabled

--- 40 unchanged lines hidden (view full) ---

250#define SC_THREAD(name) /* Implementation defined */
251#define SC_CTHREAD(name, clk) /* Implementation defined */
252
253// Nonstandard
254// Documentation for this is very scarce, but it looks like it's supposed to
255// stop the currently executing cthread, or if a cthread isn't running report
256// an error.
257void halt();
258void at_posedge(const sc_signal_in_if<bool> &);
259void at_posedge(const sc_signal_in_if<sc_dt::sc_logic> &);
260void at_negedge(const sc_signal_in_if<bool> &);
261void at_negedge(const sc_signal_in_if<sc_dt::sc_logic> &);
246
247const char *sc_gen_unique_name(const char *);
248
249typedef sc_module sc_behavior;
250typedef sc_module sc_channel;
251
252bool sc_start_of_simulation_invoked();
253bool sc_end_of_simulation_invoked();

--- 23 unchanged lines hidden ---
262
263const char *sc_gen_unique_name(const char *);
264
265typedef sc_module sc_behavior;
266typedef sc_module sc_channel;
267
268bool sc_start_of_simulation_invoked();
269bool sc_end_of_simulation_invoked();

--- 23 unchanged lines hidden ---