sc_signal.cc (13277:b479038de4d9) | sc_signal.cc (13278:a059617d0d44) |
---|---|
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 --- 63 unchanged lines hidden (view full) --- 72{ 73 74void 75reportSignalError(ScSignalBase *sig, sc_core::sc_object *first, 76 sc_core::sc_object *second, bool delta_conflict=false) 77{ 78 std::ostringstream ss; 79 ss << "\n signal " << "`" << sig->name() << "' (" << sig->kind() << ")"; | 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 --- 63 unchanged lines hidden (view full) --- 72{ 73 74void 75reportSignalError(ScSignalBase *sig, sc_core::sc_object *first, 76 sc_core::sc_object *second, bool delta_conflict=false) 77{ 78 std::ostringstream ss; 79 ss << "\n signal " << "`" << sig->name() << "' (" << sig->kind() << ")"; |
80 ss << "\n first driver `" << first->name() << "' (" << | 80 ss << "\n first driver `" << first->name() << "' (" << |
81 first->kind() << ")"; 82 ss << "\n second driver `" << second->name() << "' (" << 83 second->kind() << ")"; 84 if (delta_conflict) { 85 ss << "\n conflicting write in delta cycle " << 86 sc_core::sc_delta_count(); 87 } 88 SC_REPORT_ERROR( --- 87 unchanged lines hidden --- | 81 first->kind() << ")"; 82 ss << "\n second driver `" << second->name() << "' (" << 83 second->kind() << ")"; 84 if (delta_conflict) { 85 ss << "\n conflicting write in delta cycle " << 86 sc_core::sc_delta_count(); 87 } 88 SC_REPORT_ERROR( --- 87 unchanged lines hidden --- |