summaryrefslogtreecommitdiff
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-02-24 22:31:30 +0100
committerClifford Wolf <clifford@clifford.at>2015-02-24 22:31:30 +0100
commit9ae21263f0de0c0011c7de290af3600ddeb51a34 (patch)
tree3d2701e49ff3e8bd02ecdd3c606fd551b0eed05d /kernel/rtlil.h
parent81fa4e81a60ffee742c676ab68deefa15495aab9 (diff)
Some cleanups in "clean"
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index dd40e2fb..1d0008f9 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -807,6 +807,14 @@ struct RTLIL::Design
bool selected_module(RTLIL::Module *mod) const;
bool selected_whole_module(RTLIL::Module *mod) const;
+ RTLIL::Selection &selection() {
+ return selection_stack.back();
+ }
+
+ const RTLIL::Selection &selection() const {
+ return selection_stack.back();
+ }
+
bool full_selection() const {
return selection_stack.back().full_selection;
}