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 |
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 |
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> &); |
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> &); |
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 --- |