3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 17:15:33 +00:00

Add and use SigSpec::reverse()

This commit is contained in:
Eddie Hung 2020-01-28 10:37:16 -08:00
parent e18aeda7ed
commit 6d27d43727
2 changed files with 5 additions and 3 deletions

View file

@ -851,6 +851,8 @@ public:
RTLIL::SigSpec repeat(int num) const;
void reverse() { inline_unpack(); std::reverse(bits_.begin(), bits_.end()); }
bool operator <(const RTLIL::SigSpec &other) const;
bool operator ==(const RTLIL::SigSpec &other) const;
inline bool operator !=(const RTLIL::SigSpec &other) const { return !(*this == other); }