{
SC_CTOR(X)
{
- SC_REPORT_ERROR(SC_ID_SET_TIME_RESOLUTION_,"");
+ SC_REPORT_ERROR("set time resolution failed","");
}
};
int sc_main(int, char*[])
{
- sc_report_handler::set_actions( SC_ID_DISABLE_WILL_ORPHAN_PROCESS_
- , SC_DO_NOTHING );
+ sc_report_handler::set_actions( "disable() or dont_initialize() "
+ "called on process with no static sensitivity, it will be "
+ "orphaned", SC_DO_NOTHING );
sc_signal<int> sig_int;
// report multiple writer errors as warnings
sc_core::sc_report_handler::set_actions(
- sc_core::SC_ID_MORE_THAN_ONE_SIGNAL_DRIVER_
+ "sc_signal<T> cannot have more than one driver"
, sc_core::SC_DEFAULT_WARNING_ACTIONS
);
int sc_main(int, char*[])
{
// don't run without callbacks enabled
- sc_report_handler::set_actions( SC_ID_PHASE_CALLBACKS_UNSUPPORTED_
+ sc_report_handler::set_actions( "simulation phase callbacks not enabled"
, SC_DEFAULT_ERROR_ACTIONS );
phase_tracer pt;
int sc_main (int, char*[])
{
- sc_report_handler::set_actions( SC_ID_DISABLE_WILL_ORPHAN_PROCESS_, SC_DO_NOTHING );
+ sc_report_handler::set_actions( "disable() or dont_initialize() "
+ "called on process with no static sensitivity, it will be orphaned",
+ SC_DO_NOTHING );
sctop top1("Top1");
sc_start(10, SC_NS);
return 0;
int sc_main( int, char*[] )
{
- sc_report_handler::set_actions( SC_ID_SET_TIME_RESOLUTION_, SC_DO_NOTHING );
- sc_report_handler::set_actions( SC_ID_TIME_CONVERSION_FAILED_, SC_DISPLAY );
+ sc_report_handler::set_actions( "set time resolution failed", SC_DO_NOTHING );
+ sc_report_handler::set_actions( "sc_time conversion failed", SC_DISPLAY );
unsigned resolutions[] = { 100, 10, 1 };
sc_time_unit resunit = SC_FS;