Forum Discussion
Altera_Forum
Honored Contributor
19 years agoSPI RX problems
Hi I am trying to receive data via SPI on the Nios II using a Cyclone II. The Nios is the slave and the SPI master transmits data at 2MHz. I have tested transmitting data from the Nios ...
Altera_Forum
Honored Contributor
15 years agoExplicit comparisons like that can cause compilers to generate extra instructions. Comparisons against zero (as below) are ok:
if ((foo & FOO_BIT) != 0)but need extra parenthesis.