Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17254 Discussions

Error: spi_0: Failed to find module spi_spi_0

slolson
Beginner
2,973 Views

I am trying to generate the SPI (4 Wire Serial) Intel FPGA IP core, but the platform designer fails to generate the HDL. It looks like it could be due to "Info: spi_0: Illegal division by zero at /tools/intelFPGA_lite/23.1std/quartus/../ip/altera/sopc_builder_ip/altera_avalon_spi/em_spi_qsys.pm line 330." Please advise. Thanks in advance.

slolson_0-1752286059736.png

 

0 Kudos
1 Solution
ShengN_Intel
Employee
2,226 Views

Hi,


Please don't export the clock and reset ports then connect those ports to the clock source.


Thanks,

regards,

Sheng


View solution in original post

0 Kudos
11 Replies
sstrell
Honored Contributor III
2,534 Views

Are you trying to create just the IP to instantiate in your design or are you creating a Platform Designer system that includes this IP?  If it's the former, you should be adding it to your Quartus project from the IP Catalog in Quartus itself, not in an empty Platform Designer system like you are showing here.

If you're trying to create a system design that includes the IP, I'm not sure if you're getting the error because the rest of the system is empty, which would be odd.

But better to understand what your use case is here first.

0 Kudos
slolson
Beginner
2,531 Views

Thanks for your reply. My use case is actually just the former -- just looking to utilize the standalone IP. However, I have noticed multiple cores are only available in the IP catalog found through the Platform Designer, not the regular IP Catalog in Quartus. The SPI (4 Wire Serial) Intel FPGA IP core happens to be one of these. Attached is a screenshot of SPI results in the regular IP Catalog. Perhaps I am missing something?

slolson_1-1752514156680.png

 

 

0 Kudos
sstrell
Honored Contributor III
2,512 Views

What are you trying to connect to with this interface?

0 Kudos
slolson
Beginner
2,504 Views

I am sending data from existing buffers in my design to an external MCU.

0 Kudos
ShengN_Intel
Employee
2,322 Views

Hi,


Could you double click the IP to see any error settings configuration?

If got error, it'll not be generated.


Thanks,

Regards,

Sheng


0 Kudos
slolson
Beginner
2,316 Views

Yes, no errors after configuration before generating HDL.

0 Kudos
ShengN_Intel
Employee
2,227 Views

Hi,


Please don't export the clock and reset ports then connect those ports to the clock source.


Thanks,

regards,

Sheng


0 Kudos
slolson
Beginner
2,126 Views

That worked! Thank you. Why was the clock source needed in this case but not always using other IP cores in Platform Designer?

0 Kudos
ShengN_Intel
Employee
2,048 Views

Hi,


That SPI IP is always associated with other ip. So please generate it together with other IPs in .qsys system instead of standalone.


0 Kudos
slolson
Beginner
1,674 Views

I see. To clarify, I was wondering why this IP requires a clock source, whereas others don't. What makes this one different? Thank you.

0 Kudos
KennyTan_Altera
Moderator
853 Views

reopening the case


0 Kudos
Reply