mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 04:13:39 +00:00
clean, not backtracking
This commit is contained in:
parent
33987d975e
commit
2d6c45469f
1 changed files with 2 additions and 2 deletions
|
@ -1041,7 +1041,7 @@ namespace {
|
||||||
if (it == cell->parameters.end())
|
if (it == cell->parameters.end())
|
||||||
error(__LINE__);
|
error(__LINE__);
|
||||||
expected_params.insert(name);
|
expected_params.insert(name);
|
||||||
return it->second.as_int();
|
return (*it).second.as_int();
|
||||||
}
|
}
|
||||||
|
|
||||||
int param_bool(const RTLIL::IdString& name)
|
int param_bool(const RTLIL::IdString& name)
|
||||||
|
@ -1080,7 +1080,7 @@ namespace {
|
||||||
auto it = cell->connections_.find(name);
|
auto it = cell->connections_.find(name);
|
||||||
if (it == cell->connections_.end())
|
if (it == cell->connections_.end())
|
||||||
error(__LINE__);
|
error(__LINE__);
|
||||||
if (GetSize(it->second) != width)
|
if (GetSize((*it).second) != width)
|
||||||
error(__LINE__);
|
error(__LINE__);
|
||||||
expected_ports.insert(name);
|
expected_ports.insert(name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue