Skip to content

The test’s override compiles clean, runs clean, and still silently loses

config-db / precedenceUVM · runs take about 2 minutes

Early in build_phase, the test sets a hierarchy-wide default for everything under the agent. Further down, it sets this run’s override, scoped through the agent handle it just created.

Right nowThe override is 7, but a.channel_id comes out 999, the default.

uvm_config_db::set() takes its precedence from the depth of the component passed as its first argument, not from which call is more specific or runs last. A call scoped through a deeper component gets lower precedence than one through a shallower component.

Fix the test’s override so a.channel_id ends up 7. Don’t touch chan_agent.

Source on GitHub

config_override_loses_to_legacy_default.sv