From 029a61d0749ee5296784710ed9db6ec21c84a8c0 Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 23 Jul 2010 19:24:10 -0700 Subject: [PATCH] Fix the white space errors in tgt-vvp --- tgt-vvp/eval_expr.c | 10 +++++----- tgt-vvp/vvp_process.c | 4 ++-- tgt-vvp/vvp_scope.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tgt-vvp/eval_expr.c b/tgt-vvp/eval_expr.c index 6e901d8b3..98204b085 100644 --- a/tgt-vvp/eval_expr.c +++ b/tgt-vvp/eval_expr.c @@ -1565,10 +1565,10 @@ static struct vector_info draw_binary_expr_arith(ivl_expr_t expr, unsigned wid) case 'p': if (ivl_expr_signed(le) || ivl_expr_signed(re)) { - fprintf(vvp_out, " %%pow/s %u, %u, %u;\n", + fprintf(vvp_out, " %%pow/s %u, %u, %u;\n", lv.base, rv.base, wid); } else { - fprintf(vvp_out, " %%pow %u, %u, %u;\n", + fprintf(vvp_out, " %%pow %u, %u, %u;\n", lv.base, rv.base, wid); } break; @@ -1729,7 +1729,7 @@ static struct vector_info draw_concat_expr(ivl_expr_t expr, unsigned wid, fprintf(vvp_out, " %%mov %u, %u, %u; Reuse " "calculated expression.\n", res.base+off, avec.base, awid); - clr_vector(avec); + clr_vector(avec); } else { struct vector_info dest; @@ -1748,7 +1748,7 @@ static struct vector_info draw_concat_expr(ivl_expr_t expr, unsigned wid, /* Clear the temporary space and return nothing. * This will be caught in draw_eval_expr_dest() * and dropped. */ - clr_vector(res); + clr_vector(res); res.base = 0; res.wid = 0; } @@ -1782,7 +1782,7 @@ static struct vector_info draw_concat_expr(ivl_expr_t expr, unsigned wid, fprintf(vvp_out, " %%mov %u, %u, %u;\n", res.base, full_res.base, wid); - clr_vector(full_res); + clr_vector(full_res); } /* Save the accumulated result in the lookaside map. */ diff --git a/tgt-vvp/vvp_process.c b/tgt-vvp/vvp_process.c index 492680e64..2ed708f5c 100644 --- a/tgt-vvp/vvp_process.c +++ b/tgt-vvp/vvp_process.c @@ -618,7 +618,7 @@ static int show_stmt_assign_sig_real(ivl_statement_t net) // For now, only support 1-dimensional arrays. assert(ivl_signal_dimensions(var) == 1); - + // Calculate the word index into an index register ivl_expr_t word_ex = ivl_lval_idx(lval); int word_ix = allocate_word(); @@ -777,7 +777,7 @@ static int show_stmt_assign_nb(ivl_statement_t net) fprintf(vvp_out, " %%evctl%s %s, %d;\n", type, name, count_index); clr_word(count_index); - } else { + } else { fprintf(vvp_out, " %%evctl/i %s, %lu;\n", name, count); } } else { diff --git a/tgt-vvp/vvp_scope.c b/tgt-vvp/vvp_scope.c index ba01d3aae..aed28c035 100644 --- a/tgt-vvp/vvp_scope.c +++ b/tgt-vvp/vvp_scope.c @@ -686,7 +686,7 @@ static void draw_udp_in_scope(ivl_net_logic_t lptr) int i; unsigned ninp; const char **input_strings; - + /* Do we need a delay? */ unsigned need_delay_flag = need_delay(lptr);