mirror of https://github.com/YosysHQ/yosys.git
Added design->full_selection() helper method
This commit is contained in:
parent
90b016716b
commit
bd2c8ec886
|
@ -219,6 +219,9 @@ struct RTLIL::Design {
|
|||
bool selected_module(RTLIL::IdString mod_name) const;
|
||||
bool selected_whole_module(RTLIL::IdString mod_name) const;
|
||||
bool selected_member(RTLIL::IdString mod_name, RTLIL::IdString memb_name) const;
|
||||
bool full_selection() const {
|
||||
return selection_stack.back().full_selection;
|
||||
}
|
||||
template<typename T1> bool selected(T1 *module) const {
|
||||
return selected_module(module->name);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue