Skip to content

Commit

Permalink
Dump IVL_ST_DELAYX statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Nov 20, 2005
1 parent 244844c commit 3f108f0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tgt-stub/statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.7 2005/07/11 16:56:51 steve Exp $"
#ident "$Id: statement.c,v 1.8 2005/11/20 15:58:53 steve Exp $"
#endif

# include "config.h"
Expand Down Expand Up @@ -84,6 +84,13 @@ static void show_stmt_cassign(ivl_statement_t net, unsigned ind)
show_expression(ivl_stmt_rval(net), ind+4);
}

static void show_stmt_delayx(ivl_statement_t net, unsigned ind)
{
fprintf(out, "%*s#(X) /* calculated delay */\n", ind, "");
show_expression(ivl_stmt_delay_expr(net), ind+4);
show_statement(ivl_stmt_sub_stmt(net), ind+2);
}

static void show_stmt_force(ivl_statement_t net, unsigned ind)
{
unsigned idx;
Expand Down Expand Up @@ -287,6 +294,10 @@ void show_statement(ivl_statement_t net, unsigned ind)
show_statement(ivl_stmt_sub_stmt(net), ind+2);
break;

case IVL_ST_DELAYX:
show_stmt_delayx(net, ind);
break;

case IVL_ST_FORCE:
show_stmt_force(net, ind);
break;
Expand Down

0 comments on commit 3f108f0

Please sign in to comment.