System Generator: a block to change sign of a floating point

floating pointfpgaxilinxxilinx system generator

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.

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!