Quartus II 错误

编程知识 更新时间:2023-05-02 19:05:29

1、  assign语句放在always中了;

//Error (10137): Verilog HDL Procedural Assignment error at bcd_code.v(39): object "qout" on left-hand side of assignment must have a variable data type

2、  ·timescale用的是进制符号,应该是键盘左上角;

//Error (10170): Verilog HDL syntax error at bcd_code_tb.v(1) near text: '. Check for and fix any syntax errors that appear immediately before or at the specified keyword. The Altera Knowledge Database contains many articles with specific details on how to resolve this error. Visit the Knowledge Database at https://www.altera/support/support-resources/knowledge-base/search.html and search for this specific error message number.
3、# ** Error (suppressible): D:/altera/bcd_code/tb/bcd_code_tb.v(14): (vlog-2388) 'clk' already declared in this scope (bcd_code_tb).

故障代码
bcd_code   bcd_code0(
                            .clk(clk),
                            .cin(cin),
                            .rst(rst),
                            .Cout(Cout),
                            .qout(qout)
                            );
reg clk;
reg cin;
reg rst;

wire Cout;
wire [3:0]qout;

出现这个错误的原因:bcd_code0模块例化出现在了reg     clk;之前,也就是例化模块里面的变量要先申明,将clk的申明写到test例化之前错误就解决了。

 

更多推荐

Quartus II 错误

本文发布于:2023-04-28 04:35:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/e3f2a6c06284a4d0b3c5f08f6649d0a1.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Quartus   II

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 107663文章数
  • 27233阅读数
  • 0评论数