Forum Discussion
Altera_Forum
Honored Contributor
15 years agoWritting floating point numbers using IOWR IORD
Hi, I'm trying to read a custom register which has a 32 bit floating point value, from the NIOS in the c-code using the Macro IORD(base,offset). If I assign this to a variable defined as flo...
Altera_Forum
Honored Contributor
15 years agoAdditionally, if the u32 isn't a valid float representation, the processor accessing the float member can throw an exception - even on a simple load or store. I know this is true on a 386 and later because I wrote a learning utility to convert IEEE floats to and from a HEX representation. A bad HEX value would throw an exception before I even got to the printf to see the ASCII value.
Bill