Display the release statement details.

This commit is contained in:
steve 2004-12-15 17:11:13 +00:00
parent 4444079409
commit 0193daa436
1 changed files with 21 additions and 1 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: statement.c,v 1.1 2004/12/12 18:15:06 steve Exp $"
#ident "$Id: statement.c,v 1.2 2004/12/15 17:11:13 steve Exp $"
#endif
# include "config.h"
@ -95,6 +95,22 @@ static void show_stmt_force(ivl_statement_t net, unsigned ind)
show_expression(ivl_stmt_rval(net), ind+4);
}
static void show_stmt_release(ivl_statement_t net, unsigned ind)
{
unsigned idx;
unsigned lwid = 0;
fprintf(out, "%*srelease <lwidth=%u>\n", ind, "",
ivl_stmt_lwidth(net));
for (idx = 0 ; idx < ivl_stmt_lvals(net) ; idx += 1) {
lwid += show_assign_lval(ivl_stmt_lval(net, idx), ind+4);
}
fprintf(out, "%*sTotal l-value width: %u bits\n",
ind+4, "", lwid);
}
void show_statement(ivl_statement_t net, unsigned ind)
{
unsigned idx;
@ -222,6 +238,10 @@ void show_statement(ivl_statement_t net, unsigned ind)
fprintf(out, "%*s/* noop */;\n", ind, "");
break;
case IVL_ST_RELEASE:
show_stmt_release(net, ind);
break;
case IVL_ST_STASK: {
fprintf(out, "%*sCall %s(%u parameters);\n", ind, "",
ivl_stmt_name(net), ivl_stmt_parm_count(net));