P
Parthav
Guest
Hi.
I need to have two clocks in my system,one is simple clock and another
is the half of that clock frequency.
I have implemented already but i have two warnings? So i m confused
that whether this can creat problems with actual design or not?
I m giving my code for the referrence along with the two warnings that
have been displayed by Xilinx ISE 7.1i
module newclk(op,clk);
input clk;
output op;
reg op;
reg [1:0] temp = 2'b00;
always @ (posedge clk)
begin
temp <= temp +1;
if(temp == 2'b00)
begin
op<=1'b0;
end
else if(temp == 2'b10)
begin
op<=1'b0;
end
else
begin
op <=1'b1;
end
end
endmodule
WARNINGS are::
WARNING:Xst:1291 - FF/Latch <1> is unconnected in block <temp>.
WARNING:Xst:1291 - FF/Latch <temp_1> is unconnected in block <newclk>.
So friends could you do something for me? Another reason is that i m
using this half frequency in some of my modules of the design. So is
there any problem while using that?
Thanks & Regards...
Parthav
I need to have two clocks in my system,one is simple clock and another
is the half of that clock frequency.
I have implemented already but i have two warnings? So i m confused
that whether this can creat problems with actual design or not?
I m giving my code for the referrence along with the two warnings that
have been displayed by Xilinx ISE 7.1i
module newclk(op,clk);
input clk;
output op;
reg op;
reg [1:0] temp = 2'b00;
always @ (posedge clk)
begin
temp <= temp +1;
if(temp == 2'b00)
begin
op<=1'b0;
end
else if(temp == 2'b10)
begin
op<=1'b0;
end
else
begin
op <=1'b1;
end
end
endmodule
WARNINGS are::
WARNING:Xst:1291 - FF/Latch <1> is unconnected in block <temp>.
WARNING:Xst:1291 - FF/Latch <temp_1> is unconnected in block <newclk>.
So friends could you do something for me? Another reason is that i m
using this half frequency in some of my modules of the design. So is
there any problem while using that?
Thanks & Regards...
Parthav