I´m working with floating point numbers in System Generator. I need to perform this arithmetic operation y = x*(-1) . I think it could be done by using the mult block, but I don´t like this way because is very expensive in terms of FPGA demanded resources.
So I was wondering if there is any block to perform some kind of data conversión. The only thing is needed to do is to change one bit.
Does anyone know how to change the sign a floating point number using a reasonable way?
Thank you so much.
System Generator: a block to change sign of a floating point
floating pointfpgaxilinxxilinx system generator
Related Topic
- Electronic – DSPs: Can I perform floating point division in a Xilinx DSP48
- Electronic – System Generator: How to configure the CORDIC divider block. Understanding the block parameters
- Digital Architecture Design Question: Fast way to perform a floating point exponential operation
- Electronic – System Generator: How to generate a .bit file
- Electronic – System Generator: a block similar to a three state logic
- Electronic – FPGA firmware design: How big is too big
- Electronic – FPGA Floating-point to Unsigned 32bits
- Electronic – TMS320 Floating Point (Texas Instruments DSP from ’98)
Best Answer
Negating a floating point number involves inverting the sign bit.
(For fixed-point numbers there's a Negate block in the sysgen library which should avoid using a multiplier)
Be aware though, that sysgen is not designed for use with floating-point - you might find yourself jumping through all sorts of hoops!