mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-20 06:05:50 +00:00
Revert some stuff
This commit is contained in:
parent
0b0c7bd19d
commit
fbc2b71ed4
9 changed files with 8 additions and 42 deletions
|
|
@ -5437,18 +5437,6 @@ bool RTLIL::SigSpec::is_chunk() const
|
|||
return GetSize(chunks_) == 1;
|
||||
}
|
||||
|
||||
bool RTLIL::SigSpec::is_mostly_const() const
|
||||
{
|
||||
cover("kernel.rtlil.sigspec.is_mostly_const");
|
||||
|
||||
pack();
|
||||
int constbits = 0;
|
||||
for (auto it = chunks_.begin(); it != chunks_.end(); it++)
|
||||
if (it->width > 0 && it->wire == NULL)
|
||||
constbits += it->width;
|
||||
return (constbits > width_/2);
|
||||
}
|
||||
|
||||
bool RTLIL::SigSpec::known_driver() const
|
||||
{
|
||||
pack();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue