Intel Software: Intel FPGA SDK for OpenCL

Type: Answers

Area: OpenCL, Tools


Last Modified: April 04, 2018
Version Found: v17.1
Version Fixed: v18.0
Bug ID: FB: 547074;

Error (13224): Verilog HDL or VHDL error at <kernel_filename>.v: ansi port p_avm_printf_addrhello_world_enable cannot be redeclared

Description

In the Intel® FPGA SDK for OpenCL™ version 17.1, you may see this error while calling a printf () inside a kernel with attribute num_compute_units().

 

Workaround/Fix

To avoid this error, perform either of the following actions:

  • manually replicate printf calls inside the kernel 
  • replace printf with channel calls that send data to a non-compute-id kernel which in turn performs the printfs.

This is fixed in the Intel FPGA SDK for OpenCL version 18.0