F
fl
Hi,
I am new to VHDL. My project is about designing a division lookup table forsigned number entries. In order to use less resources, I want to implementthe table only for positive entries. "The sign of the division result can be evaluated by an XOR gate." If the result sign is negative, it may need to negate a division operand. For example, if the signed number is 16-bit, Ican negate -32700 by bit-wise not the bits and add 1. Is this method right? Or do you have a better and simple method?
Second, how to deal with -32768, because the maximum positive number is 32767.
I have read VHDL data type conversion of signed and unsigned. I do not findthey are useful in my problem yet. signed, unsigned are only a number interpretation?
Thanks,
I am new to VHDL. My project is about designing a division lookup table forsigned number entries. In order to use less resources, I want to implementthe table only for positive entries. "The sign of the division result can be evaluated by an XOR gate." If the result sign is negative, it may need to negate a division operand. For example, if the signed number is 16-bit, Ican negate -32700 by bit-wise not the bits and add 1. Is this method right? Or do you have a better and simple method?
Second, how to deal with -32768, because the maximum positive number is 32767.
I have read VHDL data type conversion of signed and unsigned. I do not findthey are useful in my problem yet. signed, unsigned are only a number interpretation?
Thanks,