mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 20:33:39 +00:00
delete conn iter attempt
This commit is contained in:
parent
277c10e127
commit
e243968406
1 changed files with 1 additions and 18 deletions
|
@ -1602,29 +1602,12 @@ public:
|
||||||
}
|
}
|
||||||
int count(RTLIL::IdString portname) {
|
int count(RTLIL::IdString portname) {
|
||||||
try {
|
try {
|
||||||
parent->getParam(portname);
|
parent->getPort(portname);
|
||||||
} catch (const std::out_of_range& e) {
|
} catch (const std::out_of_range& e) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return 1;
|
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;
|
FakeParams parameters;
|
||||||
FakeConns connections_;
|
FakeConns connections_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue