In reply to megamind:
Referring to IEEE 1800-2012 Section 23.10, parameter can be declared at two places:
There are two different places parameters can be defined within a module (or interface or program). The first is the module’s parameter_port_list (see 23.2), and the second is as a module_item (see 6.20). A module declaration can contain parameter definitions of either or both types or can contain no parameter definitions.
Here in your case 1 and 2, it will override the parameter.