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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 6608|回复: 4

[求助] 求教quartus

[复制链接]
发表于 2014-10-21 22:29:18 | 显示全部楼层 |阅读模式

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

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

x
初学verilog,在modelsim里编译成功的程序为什么在quartus里编译显示错误呢?module mux_two(out,a,b,sl);
  input a,b;
  input sl;
  output out;
  reg out;
  always @(a or b or sl)
  if(!sl==1)
    out=a;
  else
    out=b;
  endmodule

提示:
Error (287076): Can't find an inherited or default value for parameter "WIDTH" -- specify a parameter value
Error (287072): Symbolic name "WIDTH" is used but not defined
Error (287037): Argument for LOG2 cannot be negative number or zero
Error (287087): Group range of arithmetic expression contains negative number -1, but numbers in group ranges cannot be negative
Error (287087): Group range of arithmetic expression contains negative number -1, but numbers in group ranges cannot be negative
Error (12153): Can't elaborate top-level user hierarchy
Error: Quartus II 32-bit Analysis & Synthesis was unsuccessful. 6 errors, 0 warnings

Error: Peak virtual memory: 347 megabytes

Error: Processing ended: Tue Oct 21 22:12:49 2014

Error: Elapsed time: 00:00:01

Error: Total CPU time (on all processors): 00:00:01
Error (293001): Quartus II Full Compilation was unsuccessful. 8 errors, 0 warnings
发表于 2014-10-22 16:27:30 | 显示全部楼层
错误不是在这段,WIDTH没有定义吧
 楼主| 发表于 2014-10-23 10:53:10 | 显示全部楼层
回复 2# 成长中的原始人

可是为什么在modelsim里显示编译成功呢
发表于 2023-11-27 10:58:00 | 显示全部楼层
Error (287076): Can't find an inherited or default value for parameter "lpm_width" -- specify a parameter value
Error (287076): Can't find an inherited or default value for parameter "LPM_NUMWORDS" -- specify a parameter value
Error (287072): Symbolic name "LPM_NUMWORDS" is used but not defined
Error (287037): Argument for LOG2 cannot be negative number or zero
Error (287072): Symbolic name "lpm_width" is used but not defined
Error (287087): Group range of arithmetic expression contains negative number -1, but numbers in group ranges cannot be negative
Error (287087): Group range of arithmetic expression contains negative number -1, but numbers in group ranges cannot be negative
Error (287078): Assertion error: Value of LPM_WIDTH parameter must be greater than or equal to 1
Error (12153): Can't elaborate top-level user hierarchy
Error: Quartus II 64-Bit Analysis & Synthesis was unsuccessful. 9 errors, 1 warning
        Error: Peak virtual memory: 4601 megabytes
        Error: Processing ended: Mon Nov 27 10:57:31 2023
        Error: Elapsed time: 00:00:01
        Error: Total CPU time (on all processors): 00:00:01
Error (293001): Quartus II Full Compilation was unsuccessful. 11 errors, 1 warning
发表于 2023-11-29 13:57:39 | 显示全部楼层
在module上面使用`include"(绝对地址)"引用你定义parameter的文件
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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


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

GMT+8, 2024-11-22 09:28 , Processed in 0.022612 second(s), 9 queries , Gzip On, Redis On.

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