在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 1962|回复: 1

[求助] Vivado HLS软件报cannot find the top function

[复制链接]
发表于 2013-4-15 19:30:51 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
!!!求助:!!!
XILINX公司的Vivado HLS 软件使用过程中,我输入一段代码,比方说最简单的冒泡排序:
#include <stdio.h>
void main ()
{
int i,j,temp;
int a[10];
for(i=0;i<10;i++)
  scanf("%d",&a[i]);
for (j=0;j<=9;j++)
{for(i=0;i<10-j;i++)
  if(a[i]>a[i+1])
  {
   temp=a[i];
   a[i]=a[i+1];
   a[i+1]=temp;
  }
}
for(i=1;i<11;i++)
  printf("%5d",a[i]);
printf("\n");
}
然后点击编译,就出现这个错误
cannot find the top function 'order' in the design. Possible causes are: (1) the top function name is misspelled; (2) the top function is nonexistent or declared as static.
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'xpcl::MessageReporter::Exception'
  what():  std::exception
我存这个文件的文件名为order,请高手指教!小生在此感激不尽!
发表于 2013-11-6 14:53:35 | 显示全部楼层
请问解决这个问题没有,我也出现了类似的问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-4-27 23:43 , Processed in 0.021650 second(s), 8 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表