Hi,
in C programming,it's easy to get a negative value of any variables, as minus -xn; in FPGA, suppose it's 16bit 2's complement number format, how to compute a negative value of a given number 'xn'? I mean, there must be a solution to get the result easily, not "reverse every 16-bits first,and add
1" to get the result. I am confused about this, there must be something wrong with my understandings.Sun lei.