systemc: Change an error message to match the reference outputs.
authorGabe Black <gabeblack@google.com>
Sat, 15 Sep 2018 22:33:58 +0000 (15:33 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:22:43 +0000 (00:22 +0000)
This is different from the message the Accellera implementation would
print, so it looks like it wouldn't pass this test as is.

Change-Id: I0286fd3e3df7bc3e87f38c35086a32d8dec0bcc9
Reviewed-on: https://gem5-review.googlesource.com/c/12814
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/channel/sc_in_resolved.cc
src/systemc/channel/sc_inout_resolved.cc
src/systemc/ext/channel/sc_inout_rv.hh

index 40190c895e0b539ed6b9ed3aaf082f78df10a87b..94cb55a897c26f825bee92718fb27ae24c46419c 100644 (file)
@@ -47,7 +47,7 @@ sc_in_resolved::end_of_elaboration()
 {
     sc_in<sc_dt::sc_logic>::end_of_elaboration();
     if (!dynamic_cast<sc_signal_resolved *>(get_interface())) {
-        std::string msg = csprintf("%s (%s)", name(), kind());
+        std::string msg = csprintf("port '%s' (%s)", name(), kind());
         SC_REPORT_ERROR("(E117) resolved port not bound to resolved signal",
                 msg.c_str());
     }
index 8355a884784d166b5a45654d4a1589e1df67abb7..2f3dd1883d1e39d61074a9a2ed443e00c3aaeaa7 100644 (file)
@@ -48,7 +48,7 @@ sc_inout_resolved::end_of_elaboration()
 {
     sc_inout<sc_dt::sc_logic>::end_of_elaboration();
     if (!dynamic_cast<sc_signal_resolved *>(get_interface())) {
-        std::string msg = csprintf("%s (%s)", name(), kind());
+        std::string msg = csprintf("port '%s' (%s)", name(), kind());
         SC_REPORT_ERROR("(E117) resolved port not bound to resolved signal",
                 msg.c_str());
     }
index 5ff9d105e64587ae894006dea1574d744c9c2714..046146924b0a2f2875a7559ed0aaa58c11ec1985 100644 (file)
@@ -94,7 +94,7 @@ class sc_inout_rv : public sc_inout<sc_dt::sc_lv<W>>
         sc_inout<sc_dt::sc_lv<W> >::end_of_elaboration();
         if (!dynamic_cast<sc_signal_rv<W> *>(this->get_interface())) {
             std::ostringstream ss;
-            ss << this->name() << " (" << this->kind() << ")";
+            ss << "port '" << this->name() << "' (" << this->kind() << ")";
             SC_REPORT_ERROR(
                     "(E117) resolved port not bound to resolved signal",
                     ss.str().c_str());