Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHi Sam16,
I appreciate that this is a late reply, but thought a reply might be better than nothing. I found I would get better access using commands like memcpy rather than individual reads, but I haven't done as careful timing as you. Other options would include setting a pointer, eg ip_regs_base = *((unsigned long *)(map_base + ....); and then you can do: IP_regs[0] = ip_regs_base[0]; and ip_regs_base[0] = 1; to simplify what the compiler might generate. But memcpy is tailored to moving memory quickly and efficiently, so it will use minimal instructions to do the job. Cheers, Simon