Division and modulus operators

This commit is contained in:
Nick Gasson
2008-08-07 14:18:26 +01:00
parent 28d782e13c
commit e4d0a92d7c
4 changed files with 13 additions and 1 deletions
+6
View File
@@ -270,6 +270,12 @@ static vhdl_expr *translate_binary(ivl_expr_t e)
case '*':
result = translate_numeric(lhs, rhs, VHDL_BINOP_MULT);
break;
case '/':
result = translate_numeric(lhs, rhs, VHDL_BINOP_DIV);
break;
case '%':
result = translate_numeric(lhs, rhs, VHDL_BINOP_MOD);
break;
case 'e':
result = translate_relation(lhs, rhs, VHDL_BINOP_EQ);
break;