Add comments file/line number comments
Added to entities, architectures, and processes
This commit is contained in:
parent
e0834f7f38
commit
bb80b432e6
|
|
@ -67,8 +67,10 @@ static int generate_vhdl_process(vhdl_entity *ent, ivl_process_t proc)
|
|||
const char *type = ivl_process_type(proc) == IVL_PR_INITIAL
|
||||
? "initial" : "always";
|
||||
std::ostringstream ss;
|
||||
ss << "Generated from " << type << " process in ";
|
||||
ss << ivl_scope_tname(scope);
|
||||
ss << "Generated from " << type << " process in "
|
||||
<< ivl_scope_tname(scope) << " ("
|
||||
<< ivl_scope_file(scope) << " line "
|
||||
<< ivl_scope_lineno(scope) << ")";
|
||||
vhdl_proc->set_comment(ss.str());
|
||||
|
||||
set_active_entity(NULL);
|
||||
|
|
|
|||
|
|
@ -556,7 +556,9 @@ static void create_skeleton_entity_for(ivl_scope_t scope)
|
|||
|
||||
// Build a comment to add to the entity/architecture
|
||||
ostringstream ss;
|
||||
ss << "Generated from Verilog module " << ivl_scope_tname(scope);
|
||||
ss << "Generated from Verilog module " << ivl_scope_tname(scope)
|
||||
<< " (" << ivl_scope_file(scope) << " line "
|
||||
<< ivl_scope_lineno(scope) << ")";
|
||||
|
||||
arch->set_comment(ss.str());
|
||||
ent->set_comment(ss.str());
|
||||
|
|
|
|||
Loading…
Reference in New Issue