port.cc (13293:60c727f33e16) port.cc (13320:9995d3de4a88)
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

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

120
121 sensitivities.clear();
122
123 for (auto &r: resets)
124 finalizeReset(r);
125
126 resets.clear();
127
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

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

120
121 sensitivities.clear();
122
123 for (auto &r: resets)
124 finalizeReset(r);
125
126 resets.clear();
127
128 if (size() > maxSize()) {
129 std::ostringstream ss;
130 ss << size() << " binds exceeds maximum of " << maxSize() <<
131 " allowed";
132 portBase->report_error(
133 "(E109) complete binding failed", ss.str().c_str());
134 }
135
128 switch (portBase->_portPolicy()) {
129 case sc_core::SC_ONE_OR_MORE_BOUND:
130 if (size() == 0)
131 portBase->report_error(
132 "(E109) complete binding failed", "port not bound");
133 break;
134 case sc_core::SC_ALL_BOUND:
135 if (size() < maxSize() || size() < 1) {

--- 27 unchanged lines hidden ---
136 switch (portBase->_portPolicy()) {
137 case sc_core::SC_ONE_OR_MORE_BOUND:
138 if (size() == 0)
139 portBase->report_error(
140 "(E109) complete binding failed", "port not bound");
141 break;
142 case sc_core::SC_ALL_BOUND:
143 if (size() < maxSize() || size() < 1) {

--- 27 unchanged lines hidden ---