I am having this warning in verilog code when i try to synthesize it on xilinx 14.3. They are arising from this part of code:
module Output_calc_debug(
input clk,
input wire signed [0:7]oc_in,
input [0:2]pid,
output reg signed[0:31]oc_out_1d);
/***code***/
reg signed[0:1] L,W,S; //lines name from output calculator
parameter N=2'd0, E=2'd3;
if(pid==3'd0) // if port=0(North) then this port only can send data to other ports
begin
W<=2'd0; S<=2'd1; L<=2'd2; //assigning indecies to assosiated port directions
end
else if(pid==3'd1)
begin
S<=2'd1; L<=2'd2;W<=-2'd1;
end
else if(pid==3'd2)
begin
W<=2'd1; L<=2'd2;S<=-2'd1;
end
else if(pid==3'd3)
begin
W<=2'd1; S<=2'd2;L<=-2'd1;
end
else if(pid==3'd4)
begin
W<=2'd1; S<=2'd2; L<=2'd3;
end
else
begin
W<=-2'd1;L<=-2'd1;S<=-2'd1;
end
/**code***/
Code for instantiating this module in another module named Port_Debug:
module Port_Debug(
output signed [0:31]oc_out_1d
,input wire signed [0:31]sc_in_1d
,input wire signed[0:7]main_in
,output wire signed[0:7]main_out
,input clk,input [0:2]pid
);
wire signed[0:7]inport_out1;
inport_debug i1(clk,main_in,inport_out1);
Output_calc_debug oc1(clk,inport_out1,pid,oc_out_1d); //module output_calc object in port
Scheduler_Debug s1(clk,sc_in_1d,main_out);
endmodule
Note: This module Port_Debug is instantiated five times in another module
The Warnings says:
WARNING:Xst:1710 - FF/Latch <L_1> (without init value) has a constant value of 0 in block <oc1>. This FF/Latch will be trimmed during the optimization process.
WARNING:Xst:1710 - FF/Latch <L_0> (without init value) has a constant value of 1 in block <oc1>. This FF/Latch will be trimmed during the optimization process.
WARNING:Xst:1710 - FF/Latch <L_1> (without init value) has a constant value of 0 in block <oc1>. This FF/Latch will be trimmed during the optimization process.
WARNING:Xst:1710 - FF/Latch <L_0> (without init value) has a constant value of 1 in block <oc1>. This FF/Latch will be trimmed during the optimization process.
WARNING:Xst:1710 - FF/Latch <L_1> (without init value) has a constant value of 0 in block <oc1>. This FF/Latch will be trimmed during the optimization process.
WARNING:Xst:1710 - FF/Latch <L_0> (without init value) has a constant value of 1 in block <oc1>. This FF/Latch will be trimmed during the optimization process.
WARNING:Xst:1710 - FF/Latch <L_1> (without init value) has a constant value of 1 in block <oc1>. This FF/Latch will be trimmed during the optimization process.
WARNING:Xst:1710 - FF/Latch <W_0> (without init value) has a constant value of 0 in block <oc1>. This FF/Latch will be trimmed during the optimization process.
WARNING:Xst:1710 - FF/Latch <L_1> (without init value) has a constant value of 1 in block <oc1>. This FF/Latch will be trimmed during the optimization process.
WARNING:Xst:1710 - FF/Latch <W_0> (without init value) has a constant value of 0 in block <oc1>. This FF/Latch will be trimmed during the optimization process.
I have searched on google and other forums ,but there seems to be no possible solution to remove it,people keep suggesting to ignore it, which don't want to.