Verilog错误期待描述

时间:2015-05-21 15:25:44

标签: verilog intel-fpga quartus

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语法错误;期待描述

Dunno意味着什么。

1 个答案:

答案 0 :(得分:2)

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

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