Using XOR gate would help to decide on the sign of the operators. Then, depending on the sign, I would have to cast it properly or just translate negative numbers into positive by flipping the bits and adding one. After that, do multiplication of positive #s and change the result into 2's...
Thanks for the answer Kriki,
I think your approach will work. The only thing to figure out now is the multiplication I have to do with 'signed' numbers. I guess an IF statement which checks whether one or both numbers are negative should be introduced to decide whether the answer is negative...
Hi everyone,
I am fairly new to VHDL and had several questions about types conversions that I've numbered for easiness of separating them. Any help would be greatly appreciated.
I am using signed type throughout my program. Now, there is one third party function that outputs std_logic_vector...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.