I'm new to verilog and I got a question.
Can I initializing a parameter in global scope and reinitializing it module scope.
parameter GLOB_FOO = 5;
module mod2 (in1,clk,out1);
parameter GLOB_FOO = 7;
input in1,clk;
output out1;
assign out1 = in1;
endmodule
In this code I have initialized parameter GLOB_FOO twise in global scope and in module scope.
I looked in the Language Reference Manual as well. But couldn't find the answer since there are a lot of details.
Is This kind of parameter reinitializing is valid in verilog?