SystemVerilog OOP Mastery · All levels

Scenario: Static Shared Across Specializations

Parameterized class refactoring introduces ID collisions and nondeterministic ordering across mixed transaction types. Engineers disagree whether statics are isolated per specialization or shared globally through inheritance placement.

Scenario

Parameterized class refactoring introduces ID collisions and nondeterministic ordering across mixed transaction types. Engineers disagree whether statics are isolated per specialization or shared globally through inheritance placement.

What to focus on

Cross-specialization counter drift where one transaction family changes IDs or limits in another family.

Common traps

  • Assuming all statics are per-specialization regardless of declaration location.

  • Moving counters to a non-parameterized base without documenting global-sharing intent.

  • Resetting counters in one test phase but not all dependent specializations.

Related topics