X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=kernel%2Frtlil.h;h=8509670ff4b2580361c8cb3a01555a718a01e441;hb=83450a94898321a239f67f92e05fb9a246f4dd6d;hp=81ca93dce4d1848065e73f41627076a9fb2d73ae;hpb=b6345b111d994ff0de1bcd91379db1c289feb03b;p=yosys.git diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 81ca93dce..8509670ff 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -601,6 +601,7 @@ struct RTLIL::SigChunk RTLIL::SigChunk &operator =(const RTLIL::SigChunk &other) = default; RTLIL::SigChunk extract(int offset, int length) const; + inline int size() const { return width; } bool operator <(const RTLIL::SigChunk &other) const; bool operator ==(const RTLIL::SigChunk &other) const;