port.hh (13260:4d18f1d20093) port.hh (13270:99e1cfb8c6e8)
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 {
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 bindings.push_back(new Binding(interface));
147 if (bindings.empty())
148 addInterface(interface);
149 else
150 bindings.push_back(new Binding(interface));
148 }
149
150 void
151 bind(::sc_core::sc_port_base *port)
152 {
153 bindings.push_back(new Binding(port));
154 }
155

--- 13 unchanged lines hidden ---
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 ---