UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 46004

AutoESL - Synthesis results in an error "@E [AP-70] test.cpp:21: error: wrong number of template arguments (0, should be 1)"

Description

The AutoESL tool reports the following errors during Synthesis:

@E [AP-70] test.cpp:21: error: wrong number of template arguments (0, should be 1)

解决方案

This error has been fixed in AutoESL version 2012.1.

For AutoESL 2011.4.2 and earlier, the workaround for this issue is to use the following coding style:


#include "ap_int.h"
//doesn't work
//typedef ap_uint<8> mydata;
//typedef mydata data_array[8];

//workaround:
typedef int mydata;
typedef mydata data_array[8];

//alternative workaround:
//typedef ap_uint<8> data_array[8];

void test (data_array input_array, data_array output_array)
{
for (int i=0; i<7; i++)
{
output_array[i] = input_array[i];
}
}

AR# 46004
创建日期 05/07/2012
Last Updated 09/09/2014
状态 Active
Type 已知问题
Tools
  • AutoESL - 2010.b
  • AutoESL - 2011.1
  • AutoESL - 2011.3
  • More
  • AutoESL - 2011.4
  • AutoESL - 2011.4.2
  • Less