Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
15475 Discussions

Error: Cannot fit kernel(s) on device

Altera_Forum
Honored Contributor II
1,066 Views

​​Hello everyone, 

 

I want to implement some function of open source code with DE1SoC. 

 

The project uses opencl kernel to program the FPGA and have a host program to call the kernel. 

But when I build the project, there is an error said 'Error: Cannot fit kernel(s) on device'. While the host program and .aoco files were generated successfully. The details are as below: 

 

 

+--------------------------------------------------------------------+ ; Estimated Resource Usage Summary ; +----------------------------------------+---------------------------+ ; Resource + Usage ; +----------------------------------------+---------------------------+ ; Logic utilization ; 95% ; ; ALUTs ; 55% ; ; Dedicated logic registers ; 45% ; ; Memory blocks ; 84% ; ; DSP blocks ; 32% ; +----------------------------------------+---------------------------; aoc: First stage compilation completed successfully. Error: Cannot fit kernel(s) on device make: *** Error 1  

 

 

And the last several lines in the log file shows below (Seems there is no error?): 

2018.01.26.11:18:23 Info: border: "hps_io" instantiated altera_interface_generator "border" 2018.01.26.11:18:23 Info: error_adapter_0: "avalon_st_adapter" instantiated error_adapter "error_adapter_0" 2018.01.26.11:18:23 Info: error_adapter_0: "avalon_st_adapter" instantiated error_adapter "error_adapter_0" 2018.01.26.11:18:23 Info: error_adapter_0: "avalon_st_adapter" instantiated error_adapter "error_adapter_0" 2018.01.26.11:18:23 Info: system: Done "system" with 93 modules, 244 files 

 

 

I have build the hello-word demo and boardtest demo successfully which are contented in the de1soc_opencl_v02.pdf (http://www.terasic.com.cn/attachment/archive/836/de1soc_opencl_v02.pdf). 

 

 

I use AOCL-16.1.0.196-windows and DE1 BSP for Altera SDK OpenCL 16.0. 

 

 

I totally have no idea about this problem. I have found very little solutions about this. 

 

 

Would you give me some suggestion? 

Thank you!
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
121 Views

Whatever design you've created is too big to fit in the FPGA. 

 

And the "error adapters" are not errors with your design. Sometimes they need to be added into the interconnect fabric for a system. The key issue is that your design is simply too big for the device.
Altera_Forum
Honored Contributor II
121 Views

For DE1SOC, I get Lane num = 8, and Vec Size = 4. Higher than that will result the error you have.

Reply