Forum Discussion
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...
Altera_Forum
Honored Contributor
21 years agoRikusg.
If you were working with Nios I then what you showed in your first example was correct. However from a software point of view, you can't pre-determine if you will get a cache hit or miss (cache hit in your case will cause the program to fail since your device will not be accessed).