diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-10-04 17:53:20 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-10-04 17:53:20 -0700 |
commit | a5ac33f230b5dd20273f6636e5b573ef0478b8f9 (patch) | |
tree | 6f67a20084e1490fec10824cf4ff9eb4c6fe14e8 /kernel/rtlil.h | |
parent | aae2b9fd9c8dc915fadacc24962436dd7aedff36 (diff) | |
parent | 0acc51c3d82f65f73fa9e475c6fc41beabd925a6 (diff) | |
download | yosys-a5ac33f230b5dd20273f6636e5b573ef0478b8f9.tar.gz yosys-a5ac33f230b5dd20273f6636e5b573ef0478b8f9.tar.bz2 yosys-a5ac33f230b5dd20273f6636e5b573ef0478b8f9.zip |
Merge branch 'master' into eddie/abc_to_abc9
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index c08653b65..e5b24cc02 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -609,8 +609,11 @@ struct RTLIL::Const std::string decode_string() const; inline int size() const { return bits.size(); } + inline bool empty() const { return bits.empty(); } inline RTLIL::State &operator[](int index) { return bits.at(index); } inline const RTLIL::State &operator[](int index) const { return bits.at(index); } + inline decltype(bits)::iterator begin() { return bits.begin(); } + inline decltype(bits)::iterator end() { return bits.end(); } bool is_fully_zero() const; bool is_fully_ones() const; |