【问题标题】:Verilog error expecting a description需要描述的 Verilog 错误
【发布时间】:2015-05-21 15:25:43
【问题描述】:
module controle(clock, reset, funct, opcode, overflow, PCW, PCCondW, PCDataW, PCSrc, EPCW, AluOutW, MemRegW, AluOp, AluSrcA, AluSrcB, BShift, BSrc, ShamtSrc, AW, RegW, RegDst, RegSrc, Loads, Stores, IRW, MemW, IorD, LSE);
input [5:0] opcode, funct;
input overflow, clock;
output reg AW, IRW, MemW, MemRegW, EPCW, AluOutW, PCW, PCCondW, AluSrcA,                                                     BSrc, RegW, LSE, reset;
output reg [2:0] BShift, PCDataW, Loads, PCSrc, RegSrc;
output reg [1:0] ALuSrcB, Stores, AluOp, ShamtSrc, IorD, RegDst;
parameter estado = 2'h00;
always @ (posedge clock)
begin
case(estado)
//cases
endcase
end
endmodule;

尝试编译此代码时出现以下错误:

错误 (10170):在 controle.v(418) 文本“;”附近出现 Verilog HDL 语法错误;期待描述

不知道这是什么意思。

【问题讨论】:

    标签: verilog intel-fpga quartus


    【解决方案1】:

    endmodule 关键字(最后一行)之后不应使用分号:

    module controle(...);
      ...
    endmodule
    

    【讨论】:

      猜你喜欢
      • 2019-05-20
      • 2017-05-02
      • 1970-01-01
      • 1970-01-01
      • 2014-01-02
      • 1970-01-01
      • 2012-02-10
      • 1970-01-01
      相关资源
      最近更新 更多