summaryrefslogtreecommitdiff
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 95de5f8c..c25f7185 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -505,13 +505,18 @@ struct RTLIL::SigSpecIterator {
struct RTLIL::SigSpec {
private:
+ int width_;
+ unsigned long hash_;
std::vector<RTLIL::SigChunk> chunks_; // LSB at index 0
std::vector<RTLIL::SigBit> bits_; // LSB at index 0
- int width_;
void pack() const;
void unpack() const;
- bool packed() const;
+ void hash() const;
+
+ inline bool packed() const {
+ return bits_.empty();
+ }
inline void inline_unpack() const {
if (!chunks_.empty())