What is the purpose of the “parameter” keyword in Verilog?
What is the purpose of the “parameter” keyword in Verilog?
- To specify the clock frequency
- To define constants that can be changed during elaboration
- To declare input/output ports of a module
- To specify the number of simulation cycles
Correct answer
B. To define constants that can be changed during elaboration
Explanation
A parameter is an elaboration-time constant that can be overridden to configure a module, for example its vector width.