Forum Discussion
Altera_Forum
Honored Contributor
21 years agoWhat cause this problem?
I modify the nios2 cpu and run the program that contains my own defined instruction on linux. After the execution, when I use the command "ls", the following problem will happen and the linux will be...
Altera_Forum
Honored Contributor
21 years agoOkay, you just freaked me out. You've modified the Nios II CPU so that a call instruction to a special address causes data transfers between main memory and onchip memory?
Here's the way I would recommend doing this. Create a custom instruction that has an Avalon master interface. When you execute the custom instruction, have it perform the equivalent of a DMA operation and do the memory transfer. If you Nios II has a data cache and this data could have been in that cache, it needs to be flushed.