Altera_Forum
Honored Contributor
19 years agoStruct interface for IO doesn't work
I was trying to convert a large code base written for the NIOS I processor to NIOS II. My clever idea was to simply include the excalibur.h and compile for NIOS II. However, every time I read from a memory address through the old struct interface of NIOS I, the compiler uses a ldw assembly instruction. If I do the same memory-mapped read using the macros supplied with NIOS II, the compiler uses a ldwio. What gives? Did Altera hack their compiler to explicitly not support a struct-based interface for memory-mapped IO?
--Jordan