Forum Discussion
Altera_Forum
Honored Contributor
21 years agoCan I accelerate?
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif hello,everyone! My NiosII's C code is: int main() { unsigned count; while(1) { count=IORD_ALTER...
Altera_Forum
Honored Contributor
21 years agoOne point of interest - in the code which is generated:
.L2:
ldwio r2, 0(r3)
stwio r2, 0(r3)
br .L2 the processor will stall for two cycles after the ldwio because it can't use the value read from memory until two cycles later. It can use other registers though so the compiler will usually be able to insert other instructions here to keep the CPU busy.