这个VHDL语言哪里出错啦?
oduleT3_1792_2(codeout,indec);input[3:0]indec;output[6:0]codeout;reg[6:0]codeout;alwa...
odule T3_1792_2 (codeout,indec);
input[3:0] indec;
output[6:0] codeout;
reg[6:0] codeout;
always@ (indec)
begin
case(indec)
4'd0:codeout=7'b1111110;
4'd1:codeout=7'b0110000;
4'd2:codeout=7'b1101101;
4'd3:codeout=7'b1111001;
4'd4:codeout=7'b0110011;
4'd5:codeout=7'b1011011;
4'd6:codeout=7'b1011111;
4'd7:codeout=7'b1110000;
4'd8:codeout=7'b1111111;
4'd9:codeout=7'b1111011;
default: codeout=7'bx;
endcase
end
endmodule
Error (10500): VHDL syntax error at T3_1792_2.vhd(1) near text "module"; expecting "entity", or "architecture", or "use", or "library", or "package", or "configuration"
Error (10500): VHDL syntax error at T3_1792_2.vhd(5) near text @ 展开
input[3:0] indec;
output[6:0] codeout;
reg[6:0] codeout;
always@ (indec)
begin
case(indec)
4'd0:codeout=7'b1111110;
4'd1:codeout=7'b0110000;
4'd2:codeout=7'b1101101;
4'd3:codeout=7'b1111001;
4'd4:codeout=7'b0110011;
4'd5:codeout=7'b1011011;
4'd6:codeout=7'b1011111;
4'd7:codeout=7'b1110000;
4'd8:codeout=7'b1111111;
4'd9:codeout=7'b1111011;
default: codeout=7'bx;
endcase
end
endmodule
Error (10500): VHDL syntax error at T3_1792_2.vhd(1) near text "module"; expecting "entity", or "architecture", or "use", or "library", or "package", or "configuration"
Error (10500): VHDL syntax error at T3_1792_2.vhd(5) near text @ 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询