Forum Discussion
Altera_Forum
Honored Contributor
14 years agoUsing Scaler II with NIOS II
Hello, I've got problem using the Scaler II from the vip suite with Nios II. It seems that my attempt to write to the scaler's register fail everytime I try. Once the megacore is stopped, ...
Altera_Forum
Honored Contributor
14 years agoI've never used that core before but here are some things to check:
1) Make sure 'reg' is a 32-bit word offset. So if the registers are spaced at bytes 0x0, 0x4, 0x8, 0xC, 0x10, etc.... then you use 'reg' offsets of 0, 1, 2, 3, 4, etc... to access them (IORD and IOWR are 32-bit word access macros) 2) Make sure that the register you are accessing is readable, sometimes hardware folks don't bother making their registers read/write capable.