vlog95: Don't hide exp function with variable.
This patch renames the exp variable to be exponent since exp is a math function.
This commit is contained in:
parent
60d08d5f02
commit
e3324dd2ae
|
|
@ -91,9 +91,9 @@ void emit_scaled_delayx(ivl_scope_t scope, ivl_expr_t expr)
|
||||||
}
|
}
|
||||||
emit_scaled_delay(scope, value);
|
emit_scaled_delay(scope, value);
|
||||||
} else {
|
} else {
|
||||||
int exp = ivl_scope_time_units(scope) - sim_precision;
|
int exponent = ivl_scope_time_units(scope) - sim_precision;
|
||||||
assert(exp >= 0);
|
assert(exponent >= 0);
|
||||||
if (exp == 0) emit_expr(scope, expr, 0);
|
if (exponent == 0) emit_expr(scope, expr, 0);
|
||||||
else {
|
else {
|
||||||
uint64_t scale_val, scale = 1;
|
uint64_t scale_val, scale = 1;
|
||||||
int rtype;
|
int rtype;
|
||||||
|
|
@ -135,9 +135,9 @@ void emit_scaled_delayx(ivl_scope_t scope, ivl_expr_t expr)
|
||||||
vlog_errors += 1;
|
vlog_errors += 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
while (exp > 0) {
|
while (exponent > 0) {
|
||||||
scale *= 10;
|
scale *= 10;
|
||||||
exp -= 1;
|
exponent -= 1;
|
||||||
}
|
}
|
||||||
if (scale != scale_val) {
|
if (scale != scale_val) {
|
||||||
fprintf(vlog_out, "<invalid>");
|
fprintf(vlog_out, "<invalid>");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue