1/11
Looks like no tags are added yet.
What is elaboration?
The process of resolving parameters, generate statements, and module instances to construct the design structure before simulation.
What is an elaboration-time constant?
A value known while elaborating the design, such as a module parameter or genvar-derived localparam.
What is the difference between a parameter and a port?
A parameter configures hardware at elaboration; a port carries signals during operation.
What does a generate if statement do?
Selects which hardware structure is elaborated based on an elaboration-time constant.
What does a procedural if statement do?
Selects which procedural statements execute based on a condition evaluated during execution.
Can a generate if condition depend on a changing input port?
No. Its condition must be an elaboration-time constant expression.
What does generate for do?
Creates repeated design structures during elaboration.
What is genvar?
A variable used during elaboration to control generate loops.
What does a procedural for loop do?
Repeats statements inside a procedural block; synthesis may unroll it into parallel hardware.
What is a key difference between generate for and procedural for?
Generate for can instantiate modules; procedural for cannot instantiate modules in its body.
What is recursive module construction?
A module instantiates smaller versions of itself until an elaboration-time base case is reached.
What does generate if (w > 1) mean when w is a parameter?
The contained structure is elaborated only for instances whose parameter w is greater than 1.