Verilog parameters do the following:
- You can create reusable, scalable, parameterized code.
- Make code more readable, more compact, and easier to maintain.
- Describe such functionality as:
- Bus sizes
- The amount of certain repetitive elements in the modeled design unit
- Are constants. For each instantiation of a parameterized module, default operator values can be overridden.
- Are the equivalent of VHDL generics. Does not support Null string parameters.
Use the Generics command line option to redefine Verilog parameters defined in the top-level design block. This allows you to modify the design without modifying the source code. This feature is useful for IP core generation and flow testing.