mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Added bool constructors to SigBit and SigSpec
This commit is contained in:
parent
bca2442c67
commit
7d6e586df8
2 changed files with 12 additions and 0 deletions
|
@ -2188,6 +2188,16 @@ RTLIL::SigSpec::SigSpec(std::set<RTLIL::SigBit> bits)
|
|||
check();
|
||||
}
|
||||
|
||||
RTLIL::SigSpec::SigSpec(bool bit)
|
||||
{
|
||||
cover("kernel.rtlil.sigspec.init.bool");
|
||||
|
||||
width_ = 0;
|
||||
hash_ = 0;
|
||||
append_bit(bit);
|
||||
check();
|
||||
}
|
||||
|
||||
void RTLIL::SigSpec::pack() const
|
||||
{
|
||||
RTLIL::SigSpec *that = (RTLIL::SigSpec*)this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue