Fix for br1025 : support nested scopes in root level tasks/functions.
(cherry picked from commit 85fa24fa58)
This commit is contained in:
parent
95d3579509
commit
6b11df1999
7
t-dll.cc
7
t-dll.cc
|
|
@ -281,6 +281,13 @@ ivl_scope_t dll_target::find_scope(ivl_design_s &des, const NetScope*cur)
|
||||||
return scope;
|
return scope;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (map<const NetScope*,ivl_scope_t>::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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue