diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 7249f0ca..6eb52cf2 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -340,6 +340,7 @@ struct RTLIL::Selection struct RTLIL::Design { + int refcount_modules_; std::map modules_; std::vector selection_stack; @@ -348,6 +349,8 @@ struct RTLIL::Design ~Design(); + RTLIL::ObjRange modules() { return RTLIL::ObjRange(&modules_, &refcount_modules_); } + void check(); void optimize();