mirror of https://github.com/YosysHQ/yosys.git
SigSpec::remove_const() to return SigSpec&
This commit is contained in:
parent
0b6d47f8bf
commit
d63f105708
|
@ -3297,7 +3297,7 @@ void RTLIL::SigSpec::replace(int offset, const RTLIL::SigSpec &with)
|
||||||
check();
|
check();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RTLIL::SigSpec::remove_const()
|
RTLIL::SigSpec& RTLIL::SigSpec::remove_const()
|
||||||
{
|
{
|
||||||
if (packed())
|
if (packed())
|
||||||
{
|
{
|
||||||
|
@ -3331,6 +3331,7 @@ void RTLIL::SigSpec::remove_const()
|
||||||
}
|
}
|
||||||
|
|
||||||
check();
|
check();
|
||||||
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RTLIL::SigSpec::remove(int offset, int length)
|
void RTLIL::SigSpec::remove(int offset, int length)
|
||||||
|
|
|
@ -767,7 +767,7 @@ public:
|
||||||
void remove2(const std::set<RTLIL::SigBit> &pattern, RTLIL::SigSpec *other);
|
void remove2(const std::set<RTLIL::SigBit> &pattern, RTLIL::SigSpec *other);
|
||||||
|
|
||||||
void remove(int offset, int length = 1);
|
void remove(int offset, int length = 1);
|
||||||
void remove_const();
|
RTLIL::SigSpec& remove_const();
|
||||||
|
|
||||||
RTLIL::SigSpec extract(const RTLIL::SigSpec &pattern, const RTLIL::SigSpec *other = NULL) const;
|
RTLIL::SigSpec extract(const RTLIL::SigSpec &pattern, const RTLIL::SigSpec *other = NULL) const;
|
||||||
RTLIL::SigSpec extract(const pool<RTLIL::SigBit> &pattern, const RTLIL::SigSpec *other = NULL) const;
|
RTLIL::SigSpec extract(const pool<RTLIL::SigBit> &pattern, const RTLIL::SigSpec *other = NULL) const;
|
||||||
|
|
Loading…
Reference in New Issue