Knowledge Base Article

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().

Resolution

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

Updated 11 months ago
Version 3.0
No CommentsBe the first to comment