diff options
Diffstat (limited to 'src/systemc/dt/bit')
-rw-r--r-- | src/systemc/dt/bit/sc_bit.cc | 8 | ||||
-rw-r--r-- | src/systemc/dt/bit/sc_logic.cc | 10 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/systemc/dt/bit/sc_bit.cc b/src/systemc/dt/bit/sc_bit.cc index 7572a0e56..8382c880c 100644 --- a/src/systemc/dt/bit/sc_bit.cc +++ b/src/systemc/dt/bit/sc_bit.cc @@ -77,8 +77,8 @@ void sc_bit::invalid_value(char c) { std::stringstream msg; - msg << "sc_bit('" << c << "')"; - SC_REPORT_ERROR("value is not valid", msg.str().c_str()); + msg << "sc_bit( '" << c << "' )"; + SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str()); sc_core::sc_abort(); // can't recover from here } @@ -86,8 +86,8 @@ void sc_bit::invalid_value(int i) { std::stringstream msg; - msg << "sc_bit(" << i << ")"; - SC_REPORT_ERROR("value is not valid", msg.str().c_str()); + msg << "sc_bit( " << i << " )"; + SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str()); sc_core::sc_abort(); // can't recover from here } diff --git a/src/systemc/dt/bit/sc_logic.cc b/src/systemc/dt/bit/sc_logic.cc index 81663fcee..4943d3df1 100644 --- a/src/systemc/dt/bit/sc_logic.cc +++ b/src/systemc/dt/bit/sc_logic.cc @@ -72,7 +72,7 @@ sc_logic::invalid_value(char c) { std::stringstream msg; msg << "sc_logic('" << c << "')"; - SC_REPORT_ERROR("value is not valid", msg.str().c_str()); + SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str()); } void @@ -80,7 +80,7 @@ sc_logic::invalid_value(int i) { std::stringstream msg; msg << "sc_logic(" << i << ")"; - SC_REPORT_ERROR("value is not valid", msg.str().c_str()); + SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str()); } @@ -88,9 +88,11 @@ void sc_logic::invalid_01() const { if ((int)m_val == Log_Z) { - SC_REPORT_WARNING("sc_logic value 'Z' cannot be converted to bool", 0); + SC_REPORT_WARNING( + "(W211) sc_logic value 'Z' cannot be converted to bool", 0); } else { - SC_REPORT_WARNING("sc_logic value 'X' cannot be converted to bool", 0); + SC_REPORT_WARNING( + "(W212) sc_logic value 'X' cannot be converted to bool", 0); } } |