Catch case where signal with same name in task and module

This fixes task3.14C
This commit is contained in:
Nick Gasson 2008-08-08 19:47:20 +01:00
parent 13cb81f4bb
commit 090ae5fa56
1 changed files with 6 additions and 0 deletions

View File

@ -577,6 +577,12 @@ static int draw_task(ivl_scope_t scope, ivl_scope_t parent)
string signame(make_safe_name(sig));
// Check this signal isn't declared in the outer scope
if (ent->get_arch()->get_scope()->have_declared(signame)) {
signame += "_";
signame += taskname;
}
vhdl_signal_decl *decl = new vhdl_signal_decl(signame.c_str(), sigtype);
ostringstream ss;