diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-07-19 14:03:34 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-07-19 14:03:34 -0700 |
commit | e87916b7eb7dd9fccaab19f7d494f44bdfb929f5 (patch) | |
tree | 9050bee3d21de884fb5eb70b3cea0dc6832fc2fe /kernel/rtlil.h | |
parent | 8791e0caac279dd1ca04e93ba8d0175f3cc70f91 (diff) | |
parent | c926eeb43a9c42a0ecc34871f383f4181b7a45f9 (diff) | |
download | yosys-e87916b7eb7dd9fccaab19f7d494f44bdfb929f5.tar.gz yosys-e87916b7eb7dd9fccaab19f7d494f44bdfb929f5.tar.bz2 yosys-e87916b7eb7dd9fccaab19f7d494f44bdfb929f5.zip |
Merge remote-tracking branch 'origin/eddie/wreduce_add' into ice40dsp
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index b484f5306..868aaaa14 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -818,6 +818,7 @@ public: operator std::vector<RTLIL::SigChunk>() const { return chunks(); } operator std::vector<RTLIL::SigBit>() const { return bits(); } + RTLIL::SigBit at(int offset, const RTLIL::SigBit &defval) { return offset < width_ ? (*this)[offset] : defval; } unsigned int hash() const { if (!hash_) updhash(); return hash_; }; |