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

OpenCL Clock Speed and other stuff

Altera_Forum
Contributeur émérite II
3 204 Visites

Hi everyone. 

 

I am writing a code in OpenCL for a Stratix V FPGA and the return value for the CL_DEVICE_MAX_CLOCK_FREQUENCY is 1Ghz. 

Is there any way to increase the clock speed? Also is this value the actual clock value used to run the kernel in the FPGA? 

 

Thanks
0 Compliments
6 Réponses
Altera_Forum
Contributeur émérite II
1 525 Visites

That value shows nothing; the actual operating frequency will be determined after placement and routing of the kernel and is generally in the range of 150-300 MHz.

0 Compliments
Altera_Forum
Contributeur émérite II
1 525 Visites

Is there any way to specify what clock speed to use? Thanks

0 Compliments
Altera_Forum
Contributeur émérite II
1 525 Visites

I am afraid this is not possible with OpenCL.

0 Compliments
Altera_Forum
Contributeur émérite II
1 525 Visites

Otherwise is there any way to check the clock speed during execution?

0 Compliments
Altera_Forum
Contributeur émérite II
1 525 Visites

Clock speed is set in the BSP. The clock speed your design will run at is in the reports generated by aoc. If for some reason your kernel can't run at the speed set by the BSP, aoc will compile it to run slower. This info would be included in the aoc-generated reports.

0 Compliments
Altera_Forum
Contributeur émérite II
1 525 Visites

To complete sstrell's answer, the operating frequency is reported in the report named "acl_quartus_report.txt" after full placement and routing.

0 Compliments
Répondre