diff --git a/t-dll.cc b/t-dll.cc index c3ad49d0e..47ed90aaa 100644 --- a/t-dll.cc +++ b/t-dll.cc @@ -281,6 +281,13 @@ ivl_scope_t dll_target::find_scope(ivl_design_s &des, const NetScope*cur) return scope; } + for (map::iterator idx = des.root_tasks.begin() + ; idx != des.root_tasks.end() ; ++ idx) { + ivl_scope_t scope = find_scope_from_root(idx->second, cur); + if (scope) + return scope; + } + return 0; }