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 --- 130 unchanged lines hidden (view full) --- 139 portBase(port_base), finalized(false), _maxSize(max), _size(0) 140 { 141 allPorts.push_front(this); 142 } 143 144 void 145 bind(::sc_core::sc_interface *interface) 146 { |
147 if (bindings.empty()) 148 addInterface(interface); 149 else 150 bindings.push_back(new Binding(interface)); |
151 } 152 153 void 154 bind(::sc_core::sc_port_base *port) 155 { 156 bindings.push_back(new Binding(port)); 157 } 158 --- 13 unchanged lines hidden --- |