diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-08-31 18:07:48 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-08-31 18:07:48 +0200 |
commit | be44157c0f07c3bcca2363b5ce95a71fe7ad6dd9 (patch) | |
tree | a2b7ec325570e3295f6a857f48e6dbc0cc0a4db3 | |
parent | a1c7d4a8e24c14eae7f1f7e383f18b25a190875b (diff) | |
download | yosys-be44157c0f07c3bcca2363b5ce95a71fe7ad6dd9.tar.gz yosys-be44157c0f07c3bcca2363b5ce95a71fe7ad6dd9.tar.bz2 yosys-be44157c0f07c3bcca2363b5ce95a71fe7ad6dd9.zip |
Added RTLIL::Const::size()
-rw-r--r-- | kernel/rtlil.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 907600408..935329384 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -440,6 +440,8 @@ struct RTLIL::Const std::string as_string() const; std::string decode_string() const; + + inline int size() const { return bits.size(); } }; struct RTLIL::Selection |