gem5  v22.1.0.0
_using.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_EXT_UTILS__USING_HH__
29 #define __SYSTEMC_EXT_UTILS__USING_HH__
30 
31 #include "_utils.hh"
32 
34 using sc_core::SC_INFO;
36 using sc_core::SC_ERROR;
37 using sc_core::SC_FATAL;
40 using sc_core::SC_NONE;
41 using sc_core::SC_LOW;
42 using sc_core::SC_MEDIUM;
43 using sc_core::SC_HIGH;
44 using sc_core::SC_FULL;
45 using sc_core::SC_DEBUG;
46 using sc_core::sc_report;
47 
51 using sc_core::SC_THROW;
52 using sc_core::SC_LOG;
56 using sc_core::SC_STOP;
57 using sc_core::SC_ABORT;
68 
73 using sc_core::sc_trace;
75 
77 
80 using sc_core::sc_vector;
82 
83 using sc_dt::sc_abs;
84 using sc_dt::sc_max;
85 using sc_dt::sc_min;
86 
98 
106 
115 
116 #endif //__SYSTEMC_EXT_UTILS__USING_HH__
const char SC_ID_ABORT_[]
Definition: messages.cc:41
const char SC_ID_BACK_ON_EMPTY_LIST_[]
Definition: messages.cc:46
const unsigned int sc_version_major
Definition: functions.cc:33
const char SC_ID_STRING_TOO_LONG_[]
Definition: messages.cc:43
sc_trace_file * sc_create_vcd_trace_file(const char *name)
static const char * sc_copyright()
Definition: functions.hh:94
const char SC_ID_VECTOR_NONOBJECT_ELEMENTS_[]
Definition: messages.cc:54
const char SC_ID_WITHOUT_MESSAGE_[]
Definition: messages.cc:36
const char SC_ID_NOT_IMPLEMENTED_[]
Definition: messages.cc:37
bool sc_report_close_default_log()
sc_verbosity
Definition: sc_report.hh:49
@ SC_MEDIUM
Definition: sc_report.hh:52
@ SC_NONE
Definition: sc_report.hh:50
@ SC_HIGH
Definition: sc_report.hh:53
@ SC_LOW
Definition: sc_report.hh:51
@ SC_DEBUG
Definition: sc_report.hh:55
@ SC_FULL
Definition: sc_report.hh:54
void sc_interrupt_here(const char *msg_type, sc_severity)
const char * sc_version()
Definition: functions.cc:44
const char SC_ID_INTERNAL_ERROR_[]
Definition: messages.cc:38
@ SC_DEFAULT_ERROR_ACTIONS
@ SC_DEFAULT_INFO_ACTIONS
@ SC_DEFAULT_WARNING_ACTIONS
@ SC_DEFAULT_FATAL_ACTIONS
const std::string sc_version_release_date
Definition: functions.cc:37
unsigned sc_actions
std::exception sc_exception
Definition: sc_exception.hh:36
static const char * sc_release()
Definition: functions.hh:89
void sc_trace_delta_cycles(sc_trace_file *, bool on=true)
const std::string sc_version_prerelease
Definition: functions.cc:38
const std::string sc_report_compose_message(const sc_report &)
const std::string sc_version_originator
Definition: functions.cc:36
const char SC_ID_OUT_OF_BOUNDS_[]
Definition: messages.cc:40
@ SC_MAX_SEVERITY
Definition: sc_report.hh:45
@ SC_ERROR
Definition: sc_report.hh:43
@ SC_FATAL
Definition: sc_report.hh:44
@ SC_INFO
Definition: sc_report.hh:41
@ SC_WARNING
Definition: sc_report.hh:42
void sc_close_vcd_trace_file(sc_trace_file *tf)
const char SC_ID_REGISTER_ID_FAILED_[]
Definition: messages.cc:34
const char SC_ID_IEEE_1666_DEPRECATION_[]
Definition: messages.cc:48
const char SC_ID_VECTOR_INIT_CALLED_TWICE_[]
Definition: messages.cc:50
const unsigned int sc_version_minor
Definition: functions.cc:34
void sc_trace(sc_trace_file *tf, const sc_in< T > &i, const std::string &name)
Definition: sc_in.hh:156
void sc_write_comment(sc_trace_file *tf, const std::string &comment)
const char SC_ID_FRONT_ON_EMPTY_LIST_[]
Definition: messages.cc:44
void sc_stop_here(const char *msg_type, sc_severity)
const unsigned int sc_version_patch
Definition: functions.cc:35
const char SC_ID_ASSERTION_FAILED_[]
Definition: messages.cc:39
const std::string sc_version_string
Definition: functions.cc:40
const char SC_ID_VECTOR_BIND_EMPTY_[]
Definition: messages.cc:52
const char SC_ID_UNKNOWN_ERROR_[]
Definition: messages.cc:35
const std::string sc_copyright_string
Definition: functions.cc:41
void(* sc_report_handler_proc)(const sc_report &, const sc_actions &)
const T sc_min(const T &a, const T &b)
Definition: functions.hh:59
const T sc_abs(const T &a)
Definition: functions.hh:38
const T sc_max(const T &a, const T &b)
Definition: functions.hh:56

Generated on Wed Dec 21 2022 10:22:41 for gem5 by doxygen 1.9.1