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 --- 14 unchanged lines hidden (view full) --- 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 "base/logging.hh" |
31#include "systemc/ext/channel/messages.hh" |
32#include "systemc/ext/channel/sc_inout_resolved.hh" 33#include "systemc/ext/channel/sc_signal_resolved.hh" 34#include "systemc/ext/utils/sc_report_handler.hh" 35 36namespace sc_core 37{ 38 39sc_inout_resolved::sc_inout_resolved() : sc_inout<sc_dt::sc_logic>() {} --- 5 unchanged lines hidden (view full) --- 45sc_inout_resolved::~sc_inout_resolved() {} 46 47void 48sc_inout_resolved::end_of_elaboration() 49{ 50 sc_inout<sc_dt::sc_logic>::end_of_elaboration(); 51 if (!dynamic_cast<sc_signal_resolved *>(get_interface())) { 52 std::string msg = csprintf("port '%s' (%s)", name(), kind()); |
53 SC_REPORT_ERROR(SC_ID_RESOLVED_PORT_NOT_BOUND_, msg.c_str()); |
54 } 55} 56 57sc_inout_resolved & 58sc_inout_resolved::operator = (const sc_dt::sc_logic &l) 59{ 60 (*this)->write(l); 61 return *this; --- 33 unchanged lines hidden --- |