david90
- 311
- 2
I'm getting this error a lot now and I'm not sure why
WARNING:Xst:524 - All outputs of the instance <N1> of the block <clkdiv> are unconnected in block <pwm>
here's my code
module pwm(clk,in,pwm_out);
input clk;
input [7:0] in;
output pwm_out;
clkdiv N1(clk,gclk);
reg i,pwm_out;
always @(posedge gclk)
begin
for(i=0; i <=255; i=i+1)
begin
pwm_out<=1;
end
end
endmodule
====================
As far as I can tell, gclk is used in the always statement so why xilinix say "unconnected in block <pwm>"?
WARNING:Xst:524 - All outputs of the instance <N1> of the block <clkdiv> are unconnected in block <pwm>
here's my code
module pwm(clk,in,pwm_out);
input clk;
input [7:0] in;
output pwm_out;
clkdiv N1(clk,gclk);
reg i,pwm_out;
always @(posedge gclk)
begin
for(i=0; i <=255; i=i+1)
begin
pwm_out<=1;
end
end
endmodule
====================
As far as I can tell, gclk is used in the always statement so why xilinix say "unconnected in block <pwm>"?