//WRAPPED bool in(const pool<IdString> &rhs) const { return rhs.count(*this) != 0; }
bool in_pool_IdString(boost::python::list *rhs);
+
+ bool operator<(IdString rhs) { return get_cpp_obj() <rhs.get_cpp_obj(); }
+
+ bool operator==(IdString rhs) { return get_cpp_obj() ==rhs.get_cpp_obj(); }
+
+ bool operator!=(IdString rhs) { return get_cpp_obj() !=rhs.get_cpp_obj(); }
};
std::ostream &operator<<(std::ostream &ostr, const IdString &ref)
//WRAPPED inline RTLIL::Const extract(int offset, int len = 1, RTLIL::State padding = RTLIL::State::S0) const {
inline Const extract(int offset, int len = 1, State padding = RTLIL::State::S0);
+
+ bool operator<(Const rhs) { return get_cpp_obj() <rhs.get_cpp_obj(); }
+
+ bool operator==(Const rhs) { return get_cpp_obj() ==rhs.get_cpp_obj(); }
+
+ bool operator!=(Const rhs) { return get_cpp_obj() !=rhs.get_cpp_obj(); }
};
std::ostream &operator<<(std::ostream &ostr, const Const &ref)
//WRAPPED RTLIL::SigChunk extract(int offset, int length) const;
SigChunk extract(int offset, int length);
+
+ bool operator<(SigChunk rhs) { return get_cpp_obj() <rhs.get_cpp_obj(); }
+
+ bool operator==(SigChunk rhs) { return get_cpp_obj() ==rhs.get_cpp_obj(); }
+
+ bool operator!=(SigChunk rhs) { return get_cpp_obj() !=rhs.get_cpp_obj(); }
};
std::ostream &operator<<(std::ostream &ostr, const SigChunk &ref)
{
return ref_obj;
}
+
+ bool operator<(SigBit rhs) { return get_cpp_obj() <rhs.get_cpp_obj(); }
+
+ bool operator==(SigBit rhs) { return get_cpp_obj() ==rhs.get_cpp_obj(); }
+
+ bool operator!=(SigBit rhs) { return get_cpp_obj() !=rhs.get_cpp_obj(); }
};
std::ostream &operator<<(std::ostream &ostr, const SigBit &ref)
//WRAPPED void check() const;
void check();
+
+ bool operator<(SigSpec rhs) { return get_cpp_obj() <rhs.get_cpp_obj(); }
+
+ bool operator==(SigSpec rhs) { return get_cpp_obj() ==rhs.get_cpp_obj(); }
+
+ bool operator!=(SigSpec rhs) { return get_cpp_obj() !=rhs.get_cpp_obj(); }
};
std::ostream &operator<<(std::ostream &ostr, const SigSpec &ref)
.def("in_IdString", &IdString::in_IdString)
.def("in_std_string", &IdString::in_std_string)
.def("in_pool_IdString", &IdString::in_pool_IdString)
+ .def(self < self)
+ .def(self == self)
+ .def(self != self)
;
class_<Const>("Const")
.def("is_fully_def", &Const::is_fully_def)
.def("is_fully_undef", &Const::is_fully_undef)
.def("extract", &Const::extract)
+ .def(self < self)
+ .def(self == self)
+ .def(self != self)
;
class_<CaseRule>("CaseRule")
.def(boost::python::self_ns::str(boost::python::self_ns::self))
.def(boost::python::self_ns::repr(boost::python::self_ns::self))
.def("extract", &SigChunk::extract)
+ .def(self < self)
+ .def(self == self)
+ .def(self != self)
;
class_<SigBit>("SigBit")
.def(boost::python::self_ns::str(boost::python::self_ns::self))
.def(boost::python::self_ns::repr(boost::python::self_ns::self))
+ .def(self < self)
+ .def(self == self)
+ .def(self != self)
;
class_<SigSpec>("SigSpec")
.def("parse_sel", &SigSpec::parse_sel)
.def("parse_rhs", &SigSpec::parse_rhs)
.def("check", &SigSpec::check)
+ .def(self < self)
+ .def(self == self)
+ .def(self != self)
;
class_<Cell>("Cell", no_init)