Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHI! I don't know instruction cycle
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif HI! I want fast CopyMemory function and write inline asm code. (under line) I don't know " LDW, STW" machine cyc...
Altera_Forum
Honored Contributor
21 years agoThe cycle times for LDW and STW are in the Nios II processor reference handbook, chapter 16.
There is a two cycle load-use stall on the results of LDW so you should move your STW two cycles down. You could also consider calculating (IN_pDS + IN_iSZ) before the loop as that would save one add per loop. And finally you will gain by unrolling the loop if you are moving lots of data.