sc_signal.cc (13288:f1c04129f709) sc_signal.cc (13324:c8b709468e61)
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

--- 16 unchanged lines hidden (view full) ---

25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include <sstream>
31
32#include "systemc/core/scheduler.hh"
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

--- 16 unchanged lines hidden (view full) ---

25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include <sstream>
31
32#include "systemc/core/scheduler.hh"
33#include "systemc/ext/channel/messages.hh"
33#include "systemc/ext/channel/sc_signal.hh"
34#include "systemc/ext/core/sc_main.hh"
35
36namespace sc_gem5
37{
38
39ScSignalBase::ScSignalBase(const char *name) :
40 sc_core::sc_prim_channel(name), _changeStamp(~0ULL),

--- 39 unchanged lines hidden (view full) ---

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 }
34#include "systemc/ext/channel/sc_signal.hh"
35#include "systemc/ext/core/sc_main.hh"
36
37namespace sc_gem5
38{
39
40ScSignalBase::ScSignalBase(const char *name) :
41 sc_core::sc_prim_channel(name), _changeStamp(~0ULL),

--- 39 unchanged lines hidden (view full) ---

81 ss << "\n first driver `" << first->name() << "' (" <<
82 first->kind() << ")";
83 ss << "\n second driver `" << second->name() << "' (" <<
84 second->kind() << ")";
85 if (delta_conflict) {
86 ss << "\n conflicting write in delta cycle " <<
87 sc_core::sc_delta_count();
88 }
88 SC_REPORT_ERROR(
89 "(E115) sc_signal<T> cannot have more than one driver",
89 SC_REPORT_ERROR(sc_core::SC_ID_MORE_THAN_ONE_SIGNAL_DRIVER_,
90 ss.str().c_str());
91}
92
93} // anonymous namespace
94
95WriteChecker<sc_core::SC_ONE_WRITER>::WriteChecker(ScSignalBase *_sig) :
96 sig(_sig), firstPort(nullptr), proc(nullptr), writeStamp(~0ULL)
97{}

--- 91 unchanged lines hidden ---
90 ss.str().c_str());
91}
92
93} // anonymous namespace
94
95WriteChecker<sc_core::SC_ONE_WRITER>::WriteChecker(ScSignalBase *_sig) :
96 sig(_sig), firstPort(nullptr), proc(nullptr), writeStamp(~0ULL)
97{}

--- 91 unchanged lines hidden ---