Merge remote-tracking branch 'origin/master' into xaig
[yosys.git] / kernel / rtlil.h
index 6c860f36cbb6e81344b249e6919c76bbf7867747..d3ad57d727bd496e1d945371a5de51e70dfc4df7 100644 (file)
@@ -607,6 +607,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;