J
Jim Wang
Guest
Can anyone suss why I get this warning from XST when "next_outclock" really
is being used on the next-to-last line? How can I silence it and win a
green check mark instead of a yellow !-point ?
This is with Xilinx ISE 6.2.03i (not the Webpack).
Thanks !
jimwang at cal dot berkeley dot edu
module cntr_50Mto10 (outclock, inclock);
output outclock;
input inclock;
reg outclock;
integer counter;
reg next_outclock;
always @ (negedge inclock) begin
if (counter == 5000000)
counter <= 0;
else
counter <= counter + 1;
end
always @ (posedge inclock) begin
if (counter < 2500000)
next_outclock = 1;
else
next_outclock = 0;
outclock <= next_outclock;
end
endmodule
is being used on the next-to-last line? How can I silence it and win a
green check mark instead of a yellow !-point ?
This is with Xilinx ISE 6.2.03i (not the Webpack).
Thanks !
jimwang at cal dot berkeley dot edu
module cntr_50Mto10 (outclock, inclock);
output outclock;
input inclock;
reg outclock;
integer counter;
reg next_outclock;
always @ (negedge inclock) begin
if (counter == 5000000)
counter <= 0;
else
counter <= counter + 1;
end
always @ (posedge inclock) begin
if (counter < 2500000)
next_outclock = 1;
else
next_outclock = 0;
outclock <= next_outclock;
end
endmodule