Make sure LPM comparison result is std_logic not Boolean

This commit is contained in:
Nick Gasson 2008-07-27 19:05:49 +01:00
parent 8b32096e2a
commit b9cecbef64
1 changed files with 3 additions and 1 deletions

View File

@ -130,7 +130,9 @@ static vhdl_expr *rel_lpm_to_expr(vhdl_scope *scope, ivl_lpm_t lpm, vhdl_binop_t
expr->add_expr(e);
}
return expr;
// Need to make sure output is std_logic rather than Boolean
vhdl_type std_logic(VHDL_TYPE_STD_LOGIC);
return expr->cast(&std_logic);
}
static vhdl_expr *part_select_vp_lpm_to_expr(vhdl_scope *scope, ivl_lpm_t lpm)