Fix the white space errors in tgt-vvp
This commit is contained in:
parent
314714997f
commit
029a61d074
|
|
@ -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. */
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue