verilog写的程序用ISE跑报错 Xst:1706是什么问题?
程序是这样的:modulemoshiqiehuan(clk,btn,out);inputclk;input[2:0]btn;outputout;reg[2:0]out,n...
程序是这样的:
module moshiqiehuan(clk,btn,out
);
input clk;
input[2:0] btn;
output out;
reg[2:0] out,n;
reg[7:0] count=0;
always@(posedge clk)
begin
if(count==1000)
begin
count=0;
n[0]=btn[0];
n[1]=btn[1];
n[2]=btn[2];
end
else
count=count+1;
end
always@(posedge clk)
begin
case (n)
3'b001:out=3'b111;
3'b010:out=3'b001;
3'b100:out=3'b010;
default: out=3'b111;
endcase
end
endmodule
报错如下:
ERROR:Xst:1706 - Unit <moshiqiehuan>: port <out_index0002> of logic node <out_mux0000<1>> has no source
ERROR:Xst:1706 - Unit <moshiqiehuan>: port <out_index0001> of logic node <out_mux0000<2>> has no source
ERROR:Xst:1706 - Unit <moshiqiehuan>: port <out_index0001> of logic node <out_or0000> has no source
ERROR:Xst:1847 - Design checking failed
程序很简单,想不通啊,求解 展开
module moshiqiehuan(clk,btn,out
);
input clk;
input[2:0] btn;
output out;
reg[2:0] out,n;
reg[7:0] count=0;
always@(posedge clk)
begin
if(count==1000)
begin
count=0;
n[0]=btn[0];
n[1]=btn[1];
n[2]=btn[2];
end
else
count=count+1;
end
always@(posedge clk)
begin
case (n)
3'b001:out=3'b111;
3'b010:out=3'b001;
3'b100:out=3'b010;
default: out=3'b111;
endcase
end
endmodule
报错如下:
ERROR:Xst:1706 - Unit <moshiqiehuan>: port <out_index0002> of logic node <out_mux0000<1>> has no source
ERROR:Xst:1706 - Unit <moshiqiehuan>: port <out_index0001> of logic node <out_mux0000<2>> has no source
ERROR:Xst:1706 - Unit <moshiqiehuan>: port <out_index0001> of logic node <out_or0000> has no source
ERROR:Xst:1847 - Design checking failed
程序很简单,想不通啊,求解 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询