Forum Discussion
Altera_Forum
Honored Contributor
21 years agoBug in NIOS2 GCC ?
Could this be a bug in the NIOS2-GCC ? char testsub(void) {
return __builtin_ldbio (0x1000);
} Generates the following Assembly code (Using -O2 and -fomit-frame-pointer): movi r3...
Altera_Forum
Honored Contributor
21 years agoJonah,
Just wanted to say thanks! I used your asm example in my legacy NiosII port just this hour with great results! This may be a topic for another thread, but is there any way to read one and only one byte from an 8 bit peripheral? I did the trick of ignoring the bottom 2 address bits to read one and only one address, but still issues 4 read pulses. Not always good with an 8 bit fifo. LDWIO is smart enough to grab all 4 fifo pops into a single long word, but there aren't always 4 bytes in the fifo. Ken