port.hh (13273:af60ddcf2a32) port.hh (13282:d0546737f962)
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

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

142
143 Port(::sc_core::sc_port_base *port_base, int max) :
144 portBase(port_base), finalized(false), _maxSize(max), _size(0),
145 regPortNeeded(true)
146 {
147 allPorts.push_front(this);
148 }
149
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

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

142
143 Port(::sc_core::sc_port_base *port_base, int max) :
144 portBase(port_base), finalized(false), _maxSize(max), _size(0),
145 regPortNeeded(true)
146 {
147 allPorts.push_front(this);
148 }
149
150 ~Port() { allPorts.remove(this); }
151
150 void
151 bind(::sc_core::sc_interface *interface)
152 {
153 if (bindings.empty())
154 addInterface(interface);
155 else
156 bindings.push_back(new Binding(interface));
157 }

--- 21 unchanged lines hidden ---
152 void
153 bind(::sc_core::sc_interface *interface)
154 {
155 if (bindings.empty())
156 addInterface(interface);
157 else
158 bindings.push_back(new Binding(interface));
159 }

--- 21 unchanged lines hidden ---