Forum Discussion
Altera_Forum
Honored Contributor
10 years agoI think that C code should actually be:
value = (value & (0x1 << 23)) ?
value | (0xFF << 24 ) :
value;
Notice that you are checking bit 23 to see if it is a 1 or a 0 (not bit 24!).