Skip to content

Four DMA channel agents, four configured ids, one wrong answer reported four times

config-db / multi-instance / fork-joinUVM · runs take about 2 minutes

The env builds one agent per DMA channel (NUM_CHANNELS of them). Before the env is built, the test sets each agent’s channel_id through uvm_config_db: channel 0 gets 10, channel 1 20, channel 2 30, channel 3 40.

Before any stimulus, run_phase queries every agent concurrently and checks each one owns the id it was given. That’s much cheaper than finding one channel’s traffic on another channel’s monitor two hours into a regression.

Right nowThe check fails, reporting the same id four times.

Fix the code so every agent reports its own configured id.

Source on GitHub

agent_ids_via_config_db.sv