From: Eddie Hung Date: Tue, 6 Aug 2019 22:25:11 +0000 (-0700) Subject: Add SigSpec::extract_end() convenience function X-Git-Tag: working-ls180~1163^2~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84f52aee0d01378796792c9a2f068a22d955f586;p=yosys.git Add SigSpec::extract_end() convenience function --- diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 633cb51d6..c07d39c65 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -788,6 +788,7 @@ public: RTLIL::SigSpec extract(const RTLIL::SigSpec &pattern, const RTLIL::SigSpec *other = NULL) const; RTLIL::SigSpec extract(const pool &pattern, const RTLIL::SigSpec *other = NULL) const; RTLIL::SigSpec extract(int offset, int length = 1) const; + RTLIL::SigSpec extract_end(int offset) const { return extract(offset, width_ - offset); } void append(const RTLIL::SigSpec &signal); void append_bit(const RTLIL::SigBit &bit);