mirror of https://github.com/YosysHQ/yosys.git
Fix spacing
This commit is contained in:
parent
d89d663c92
commit
15535112b7
|
@ -52,30 +52,30 @@ struct ExclusiveDatabase
|
||||||
}
|
}
|
||||||
else continue;
|
else continue;
|
||||||
|
|
||||||
log_assert(!nonconst_sig.empty());
|
log_assert(!nonconst_sig.empty());
|
||||||
log_assert(!const_sig.empty());
|
log_assert(!const_sig.empty());
|
||||||
sig_cmp_prev[y_port] = std::make_pair(nonconst_sig,const_sig.as_const());
|
sig_cmp_prev[y_port] = std::make_pair(nonconst_sig,const_sig.as_const());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool query(const SigSpec &sig) const
|
bool query(const SigSpec &sig) const
|
||||||
{
|
{
|
||||||
SigSpec nonconst_sig;
|
SigSpec nonconst_sig;
|
||||||
pool<Const> const_values;
|
pool<Const> const_values;
|
||||||
|
|
||||||
for (auto bit : sig.bits()) {
|
for (auto bit : sig.bits()) {
|
||||||
auto it = sig_cmp_prev.find(bit);
|
auto it = sig_cmp_prev.find(bit);
|
||||||
if (it == sig_cmp_prev.end())
|
if (it == sig_cmp_prev.end())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (nonconst_sig.empty())
|
if (nonconst_sig.empty())
|
||||||
nonconst_sig = it->second.first;
|
nonconst_sig = it->second.first;
|
||||||
else if (nonconst_sig != it->second.first)
|
else if (nonconst_sig != it->second.first)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!const_values.insert(it->second.second).second)
|
if (!const_values.insert(it->second.second).second)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue