diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 584c4e11b..a8e43fe1d 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -1726,6 +1726,8 @@ public: operator std::vector() const; operator std::vector() const { return to_sigbit_vector(); } const RTLIL::SigBit &at(int offset, const RTLIL::SigBit &defval) { return offset < size() ? (*this)[offset] : defval; } + RTLIL::SigBit& at(int offset) { return (*this)[offset]; } + RTLIL::SigBit at(int offset) const { return (*this)[offset]; } [[nodiscard]] Hasher hash_into(Hasher h) const { Hasher::hash_t val;