Call set_active_entity in the right places

This commit is contained in:
Nick Gasson 2008-07-29 13:04:29 +01:00
parent c26b7ce675
commit 39717989a8
2 changed files with 7 additions and 2 deletions

View File

@ -71,6 +71,7 @@ static int generate_vhdl_process(vhdl_entity *ent, ivl_process_t proc)
ss << ivl_scope_tname(scope);
vhdl_proc->set_comment(ss.str());
set_active_entity(NULL);
return 0;
}

View File

@ -768,8 +768,12 @@ static int draw_all_logic_and_lpm(ivl_scope_t scope, void *_parent)
assert(ent);
if (ent->get_derived_from() == ivl_scope_name(scope)) {
declare_logic(ent->get_arch(), scope);
declare_lpm(ent->get_arch(), scope);
set_active_entity(ent);
{
declare_logic(ent->get_arch(), scope);
declare_lpm(ent->get_arch(), scope);
}
set_active_entity(NULL);
}
}