summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-18 11:36:34 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-18 11:36:34 +0200
commita721f7d768feb3ce68cb384805ea7f1fde3e08ed (patch)
treed14d6ecf2dbecb465d3795a7392984b65daa6391
parent309ae98246cf9ff115b7d95ae14991faf72a5a38 (diff)
Added automatic conversion from RTLIL::SigSpec to std::vector<RTLIL::SigBit>
-rw-r--r--kernel/rtlil.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 17406d5d..3a22d137 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -542,6 +542,7 @@ struct RTLIL::SigSpec {
static bool parse(RTLIL::SigSpec &sig, RTLIL::Module *module, std::string str);
static bool parse_sel(RTLIL::SigSpec &sig, RTLIL::Design *design, RTLIL::Module *module, std::string str);
static bool parse_rhs(const RTLIL::SigSpec &lhs, RTLIL::SigSpec &sig, RTLIL::Module *module, std::string str);
+ operator std::vector<RTLIL::SigBit>() const { return to_sigbit_vector(); }
};
inline RTLIL::SigBit::SigBit(const RTLIL::SigSpec &sig) {