mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-20 07:36:39 +00:00
delete conn iter attempt
This commit is contained in:
parent
277c10e127
commit
e243968406
|
@ -1602,29 +1602,12 @@ public:
|
|||
}
|
||||
int count(RTLIL::IdString portname) {
|
||||
try {
|
||||
parent->getParam(portname);
|
||||
parent->getPort(portname);
|
||||
} catch (const std::out_of_range& e) {
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
// const std::array<RTLIL::Const> make_array () {
|
||||
|
||||
// return std::array<RTLIL::Const>
|
||||
// }
|
||||
std::vector<int> fixed_data{1, 9, 100};
|
||||
|
||||
auto begin() {
|
||||
if (parent->is_legacy())
|
||||
return parent->legacy->connections_.begin();
|
||||
if (parent->type.in(ID($pos))) {
|
||||
return parent->pos.connections().begin();
|
||||
}
|
||||
}
|
||||
|
||||
auto end() {
|
||||
return parent->is_legacy() ? parent->legacy->connections_.end() : fixed_data.end();
|
||||
}
|
||||
};
|
||||
FakeParams parameters;
|
||||
FakeConns connections_;
|
||||
|
|
Loading…
Reference in a new issue