Add a comment to the output about casex/z translation

This commit is contained in:
Nick Gasson 2008-10-14 20:21:19 +01:00
parent a47b7352b4
commit 8a3309d79d
1 changed files with 8 additions and 0 deletions

View File

@ -653,6 +653,14 @@ int draw_casezx(vhdl_procedural *proc, stmt_container *container,
draw_stmt(proc, where, ivl_stmt_case_stmt(stmt, i), is_last);
}
// Add a comment to say that this corresponds to a casex/z statement
// as this may not be obvious
ostringstream ss;
ss << "Generated from case"
<< (ivl_statement_type(stmt) == IVL_ST_CASEX ? 'x' : 'z')
<< " statement at " << ivl_stmt_file(stmt) << ":" << ivl_stmt_lineno(stmt);
result->set_comment(ss.str());
container->add_stmt(result);
// We don't actually use the generated `test' expression