Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

QSYS fails to generate SS_n export correctly for SPI interface?

I have been tearing my hair out over this and have concluded that the SOPC generation of an SPI peripheral is broken somehow in QSYS (yet worked fine with SOPC Builder).

I have an SPI master in my SOPC design and specify the number of slaves to be 3.

The SOPC module generated by QSYS declares the SS_n signal as:

output wire spi_0_SS_n

yet it connects it to an SPI instance where .SS_n is declared as

output [2:0] SS_n

so only a single one of my chip-selects ever gets asserted and thus I can only communicate with one of the SPI devices now instead of all three.

Anyone else seen this? Any work-around suggestions?

I have tried removing the SPI device and re-adding it in QSYS but (predictably) it is consistently wrong.

Thanks,

-dave

14 Replies