mirror of https://github.com/YosysHQ/yosys.git
rtlil: Add `Design::select()` for selecting whole modules.
This commit is contained in:
parent
d5d0cc88d2
commit
3ccdab940c
|
@ -1061,6 +1061,13 @@ struct RTLIL::Design
|
||||||
return selected_member(module->name, member->name);
|
return selected_member(module->name, member->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename T1> void select(T1 *module) {
|
||||||
|
if (selection_stack.size() > 0) {
|
||||||
|
RTLIL::Selection &sel = selection_stack.back();
|
||||||
|
sel.select(module);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
template<typename T1, typename T2> void select(T1 *module, T2 *member) {
|
template<typename T1, typename T2> void select(T1 *module, T2 *member) {
|
||||||
if (selection_stack.size() > 0) {
|
if (selection_stack.size() > 0) {
|
||||||
RTLIL::Selection &sel = selection_stack.back();
|
RTLIL::Selection &sel = selection_stack.back();
|
||||||
|
|
Loading…
Reference in New Issue