Altera_Forum
Honored Contributor
21 years agoio.h vs normal data access
Hi there,
Maybe a silly question... What is the purpose of the io.h headerfile? A memory addressable device can be referenced as follows: data = *(INT32U*) 0x200000; or using io.h data = IORD_32DIRECT(0x200000, 0); I find that it some cases the first option does not work correctly - the device chip selects do not get set while doing the read. I have now switched to using io.h for such reads but would like to know if anyone can explain this? Thanks R