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 ago --- Quote Start --- I was going off of the 32-bit IORD version of the float he is using in his question. Might need some sort of compiler dependent modifier to match the version of 'float' used by his external hardware. --- Quote End --- But you said "any relatively standard C compiler" which isn't true unqualified. A lot of people here are learning C and highly non-portable constructs should be presented with warnings. I was trying to show the constraints of where it works - there are many platforms where that won't work at all. Bill A