sc_port.cc (13283:362061d5b968) | sc_port.cc (13290:1e720f971554) |
---|---|
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 --- 13 unchanged lines hidden (view full) --- 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 * Authors: Gabe Black 28 */ 29 | 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 --- 13 unchanged lines hidden (view full) --- 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 * Authors: Gabe Black 28 */ 29 |
30#include <sstream> 31 |
|
30#include "base/logging.hh" 31#include "systemc/core/module.hh" 32#include "systemc/core/port.hh" 33#include "systemc/core/scheduler.hh" 34#include "systemc/ext/core/sc_main.hh" 35#include "systemc/ext/core/sc_port.hh" 36 37namespace sc_core --- 45 unchanged lines hidden (view full) --- 83} 84 85void 86sc_port_base::warn_unimpl(const char *func) const 87{ 88 warn("%s not implemented.\n", func); 89} 90 | 32#include "base/logging.hh" 33#include "systemc/core/module.hh" 34#include "systemc/core/port.hh" 35#include "systemc/core/scheduler.hh" 36#include "systemc/ext/core/sc_main.hh" 37#include "systemc/ext/core/sc_port.hh" 38 39namespace sc_core --- 45 unchanged lines hidden (view full) --- 85} 86 87void 88sc_port_base::warn_unimpl(const char *func) const 89{ 90 warn("%s not implemented.\n", func); 91} 92 |
93void 94sc_port_base::report_error(const char *id, const char *add_msg) const 95{ 96 std::ostringstream ss; 97 if (add_msg) 98 ss << add_msg << ": "; 99 ss << "port '" << name() << "' (" << kind() << ")"; 100 SC_REPORT_ERROR(id, ss.str().c_str()); 101} 102 |
|
91int sc_port_base::maxSize() const { return _gem5Port->maxSize(); } 92int sc_port_base::size() const { return _gem5Port->size(); } 93 94void sc_port_base::bind(sc_interface &i) { _gem5Port->bind(&i); } 95void sc_port_base::bind(sc_port_base &p) { _gem5Port->bind(&p); } 96 97} // namespace sc_core | 103int sc_port_base::maxSize() const { return _gem5Port->maxSize(); } 104int sc_port_base::size() const { return _gem5Port->size(); } 105 106void sc_port_base::bind(sc_interface &i) { _gem5Port->bind(&i); } 107void sc_port_base::bind(sc_port_base &p) { _gem5Port->bind(&p); } 108 109} // namespace sc_core |