sc_module.hh (12907:89f8c39eb808) sc_module.hh (12909:88127fe770f5)
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

--- 172 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
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

--- 172 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
189 void halt();
190
189 virtual void before_end_of_elaboration() {}
190 virtual void end_of_elaboration() {}
191 virtual void start_of_simulation() {}
192 virtual void end_of_simulation() {}
193
194 private:
195 // Disabled
196 sc_module(const sc_module &) : sc_object() {};

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

231 name(::sc_core::sc_module_name)
232
233#define SC_HAS_PROCESS(name) typedef name SC_CURRENT_USER_MODULE
234
235#define SC_METHOD(name) /* Implementation defined */
236#define SC_THREAD(name) /* Implementation defined */
237#define SC_CTHREAD(name, clk) /* Implementation defined */
238
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
198 sc_module(const sc_module &) : sc_object() {};

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

233 name(::sc_core::sc_module_name)
234
235#define SC_HAS_PROCESS(name) typedef name SC_CURRENT_USER_MODULE
236
237#define SC_METHOD(name) /* Implementation defined */
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();
246
239const char *sc_gen_unique_name(const char *);
240
241typedef sc_module sc_behavior;
242typedef sc_module sc_channel;
243
244bool sc_start_of_simulation_invoked();
245bool sc_end_of_simulation_invoked();
246

--- 22 unchanged lines hidden ---
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();
254

--- 22 unchanged lines hidden ---