summaryrefslogtreecommitdiff
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 0919b392..7fb416f1 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -496,11 +496,17 @@ struct RTLIL::SigBit {
};
struct RTLIL::SigSpec {
-public:
- std::vector<RTLIL::SigChunk> __chunks; // LSB at index 0
- int __width;
+private:
+ std::vector<RTLIL::SigChunk> chunks_; // LSB at index 0
+ int width_;
public:
+ std::vector<RTLIL::SigChunk> &chunks() { return chunks_; }
+ const std::vector<RTLIL::SigChunk> &chunks() const { return chunks_; }
+
+ int &size() { return width_; }
+ const int &size() const { return width_; }
+
SigSpec();
SigSpec(const RTLIL::Const &data);
SigSpec(const RTLIL::SigChunk &chunk);