- Joined
- Apr 27, 2011
- Messages
- 2
- Reaction score
- 0
hello, i'm new here and i'm asking you how can i create an arithmetic unit that operates addition, substraction, multiplication and division. I have numbers on 4 bits and the result will be maximum on 8 bits. I've tried using "+" , "-" and "*" operators but I get the error:
I use the following syntax:
Thanks in advance!
Cally
Code:
Operator "+" is not defined for such operands.
I use the following syntax:
Code:
when "00" => y <= A + B;
Thanks in advance!
Cally