Forum Discussion
Altera_Forum
Honored Contributor
13 years agoI'd check that IOWR_32DIRECT() doesn't multiply the offset by 4.
It is actually much safer to define C structs that map hardware registers than to use offset constants. Unfortunatly that isn't the was Altera have defined things - but it can be done quite easily. Just make sure the accesses bypass the data cache.