mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-03 15:47:58 +00:00
rtlil_bufnorm: ignore timing info harder
This commit is contained in:
parent
07f5307bd4
commit
0351f852cc
1 changed files with 7 additions and 2 deletions
|
|
@ -1054,10 +1054,15 @@ void RTLIL::Cell::unsetPort(const RTLIL::IdString& portname)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool ignored_cell(const RTLIL::IdString& type)
|
||||||
|
{
|
||||||
|
return type == ID($specify2) || type == ID($specify3) || type == ID($specrule);
|
||||||
|
}
|
||||||
|
|
||||||
void RTLIL::Cell::setPort(const RTLIL::IdString& portname, RTLIL::SigSpec signal)
|
void RTLIL::Cell::setPort(const RTLIL::IdString& portname, RTLIL::SigSpec signal)
|
||||||
{
|
{
|
||||||
bool is_input_port = false;
|
bool is_input_port = false;
|
||||||
if (module->sig_norm_index != nullptr && type != ID($specify2) && type != ID($specify3) && type != ID($specrule)) {
|
if (module->sig_norm_index != nullptr && !ignored_cell(type)) {
|
||||||
module->sig_norm_index->sigmap.apply(signal);
|
module->sig_norm_index->sigmap.apply(signal);
|
||||||
auto dir = port_dir(portname);
|
auto dir = port_dir(portname);
|
||||||
|
|
||||||
|
|
@ -1093,7 +1098,7 @@ void RTLIL::Cell::setPort(const RTLIL::IdString& portname, RTLIL::SigSpec signal
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (module->sig_norm_index != nullptr) {
|
if (module->sig_norm_index != nullptr && !ignored_cell(type)) {
|
||||||
module->sig_norm_index->dirty.insert(this);
|
module->sig_norm_index->dirty.insert(this);
|
||||||
if (!r.second) {
|
if (!r.second) {
|
||||||
if (is_input_port) {
|
if (is_input_port) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue