13.2 XST generates the following warning message when it encounters a parameter declaration that is local to the module:
"WARNING:HDLCompiler:693 - "<*>.v" Line 8: Parameter declaration becomes local in flop_param with formal parameter declaration list"
Take the following code as an example:
module flop_param #(parameter DATA_WIDTH1 = 16)
(
input [DATA_WIDTH1-1:0] din1,
input clk,reset,
output [DATA_WIDTH1-1:0] dout1
);
parameter DATA_WIDTH2 = 16;
reg [DATA_WIDTH2-1:0] dout1_tmp;
always@(posedge clk or posedge reset)
begin
if(reset) dout1_tmp <= 'd0;
else dout1_tmp <= din1;
end
assign dout1 = dout1_tmp;
endmodule
In the above code, when 13.2 XST encounters the parameter declaration DATA_WIDTH2, it produces the "HDLCompiler:693" warning message. This warning message is incorrect and can be safely ignored.
This issue has been fixed in 13.3. 13.3 XST produces an INFO message instead of the WARNING messagewithout any change to the actual information or message. The INFO message is as follows:
"INFO:HDLCompiler:693 - "<*>.v" Line 8. parameter declaration becomes local in flop_param with formal parameter declaration list"
The above INFO message is more appropriate thanthe WARNING.