Module 7: Debug and Regression | Intermediate UVM

UVM Report Server

Understand how UVM collects, processes, formats, and summarizes reports—and how to make regression failures useful instead of noisy.

Learning objectives

  • Explain the path from a UVM report call to the UVM report server.
  • Distinguish report severity, verbosity, action, and report ID.
  • Describe the role of uvm_report_server in report processing and end-of-test summaries.
  • Configure report behavior without weakening real verification failures.
  • Use report counts and diagnostics to distinguish a clean test from a test that merely completed.
  • Debug report-related problems systematically in a regression environment.

Why this matters in a real regression

A regression can execute hundreds or thousands of tests. When one test fails, the verification engineer needs more than a red process exit status. They need to know what failed, where it failed, how severe it was, and whether the failure was expected or accidental.

UVM provides a reporting infrastructure so components can issue messages through a common mechanism instead of each component implementing its own logging system. The report server is part of that infrastructure.

Important distinction: uvm_report_server is not the same thing as `uvm_info, `uvm_warning, or `uvm_error. Those report calls generate reports. The report infrastructure, including the report handler and report server, determines how those reports are processed, displayed, counted, and summarized.

This distinction becomes important when debugging a regression. If a message is missing, unexpectedly fatal, counted incorrectly, or producing excessive output, changing the scoreboard or driver is usually the wrong first step. Investigate the report path.

Step 1: Follow the UVM report flow

At a high level, a component creates a report by calling a UVM reporting method. The report then passes through UVM's reporting infrastructure before reaching the final output and summary mechanisms.

UVM component
 |
 | `uvm_info / `uvm_warning / `uvm_error / `uvm_fatal
 v


Report message
|
v
uvm_report_handler
|
| severity / ID / verbosity / actions
v
uvm_report_server
|
+--------> formatted output
|
+--------> report counts
|
+--------> end-of-test summary

The exact internal call path depends on which reporting API is used, but the architectural idea is stable: components produce reports; UVM's reporting infrastructure decides how those reports are handled.

The four concepts you must separate

Concept Meaning Example
Severity How serious the report is considered UVM_INFO, UVM_WARNING, UVM_ERROR, UVM_FATAL
Verbosity How much informational detail should be displayed UVM_LOW, UVM_MEDIUM, UVM_HIGH
Report ID A category/key used to identify a class of messages "SB_MISMATCH"
Action What UVM should do with a report display, log, count, exit, or stop depending on configuration

These concepts are related, but they are not interchangeable. A high-verbosity informational message is not automatically more severe than a low-verbosity informational message. Likewise, a report ID is not itself a severity.

Step 2: Generate useful reports

UVM's report macros are the normal starting point for component diagnostics. Good report messages provide enough context to understand the failure without opening every waveform immediately.

`uvm_info("DRIVER",


$sformatf("Sending transaction id=%0d addr=0x%0h",
req.id, req.addr),
UVM_MEDIUM)

`uvm_warning("PROTO",
$sformatf("Unexpected response timing for id=%0d",
rsp.id))

`uvm_error("SB_MISMATCH",
$sformatf("id=%0d expected=%s actual=%s",
id, expected.sprint(), actual.sprint()))

Notice that the report ID describes the category of the message: DRIVER, PROTO, and SB_MISMATCH. A stable ID becomes extremely useful later when controlling output or searching regression logs.

A useful scoreboard error

`uvm_error("SB_MISMATCH",


$sformatf(
"stream=%0d id=%0d expected=%s actual=%s",
stream_id,
id,
expected.sprint(),
actual.sprint()
))

Compare this with a message such as "scoreboard failed". The second message identifies a problem but gives the engineer almost no information for reproducing or diagnosing it.

Debugging rule: A report should identify the important verification context, not merely repeat the component name. For transaction-level failures, useful context often includes the transaction ID, stream, expected value, actual value, and relevant timing.

Step 3: Understand report actions

A report does not simply mean "print this string." UVM associates actions with reports. Depending on configuration, actions can control whether a report is displayed, logged, counted, causes simulation to stop, or contributes to exit behavior.

This is why changing report behavior can have major regression consequences. Suppressing output may be useful. Suppressing the mechanism that identifies a real verification failure is not.

Severity is not the same as action

A report's severity describes the classification of the message. The report action determines what UVM does with it. UVM's report configuration can alter actions for particular severities or report IDs.

// Example: configure a specific report ID deliberately.


// The exact policy should match the verification environment's intent.

uvm_report_object obj;

obj.set_report_id_action(
"OPTIONAL_DIAGNOSTIC",
UVM_DISPLAY
);

The important lesson is not to memorize every report API. The important lesson is to understand that report behavior is configurable and therefore must be debugged as configuration—not assumed to be fixed.

Step 4: Understand the report server

uvm_report_server is the central server-side object used by UVM's reporting infrastructure. It handles reports after they have been processed by the relevant reporting configuration and maintains information used for report summaries.

You can obtain the global report server through the UVM root:

uvm_report_server server;


server = uvm_root::get().get_report_server();

`uvm_info("REPORT",
$sformatf("Using report server type: %s",
server.get_type_name()),
UVM_LOW)

In most verification environments, you do not need to replace or directly manipulate the report server. The standard UVM reporting infrastructure is sufficient. The value of learning this class is understanding where report processing and summary behavior live when debugging a regression.

Why the report server matters at end of test

During a test, many components can generate reports. At the end, engineers often need a concise answer to questions such as:

  • Were any warnings generated?
  • Were any errors generated?
  • Did a fatal report terminate the test?
  • Did the test finish with outstanding verification failures?

UVM's report infrastructure maintains counts and contributes to the final report summary. That summary is one useful piece of evidence for regression automation, although the exact simulator process exit policy can also depend on simulator and testbench integration.

Step 5: Inspect report counts

Report counts are useful for diagnostics and regression triage. For example, after a deterministic failure you can inspect the report server to understand whether errors were actually generated.

uvm_report_server server;


server = uvm_root::get().get_report_server();

`uvm_info("REPORT",
$sformatf(
"errors=%0d warnings=%0d fatals=%0d",
server.get_severity_count(UVM_ERROR),
server.get_severity_count(UVM_WARNING),
server.get_severity_count(UVM_FATAL)
),
UVM_LOW)

The exact reporting policy should be established by the environment rather than duplicated independently in every test. A project may also have regression infrastructure that records these results outside UVM.

Do not confuse report counts with verification results. Zero UVM errors does not prove that the DUT is correct. A test can have a broken checker, incomplete coverage, missing assertions, or a scoreboard that never observed the relevant transaction. Report counts are evidence, not proof of correctness.

Step 6: Configure reports deliberately

UVM allows report behavior to be configured by severity and by report ID. This makes it possible to keep important failures visible while reducing noise from repetitive diagnostics.

class debug_test extends uvm_test;


`uvm_component_utils(debug_test)

function new(string name = "debug_test",
uvm_component parent = null);
super.new(name, parent);
endfunction

function void end_of_elaboration_phase(uvm_phase phase);
super.end_of_elaboration_phase(phase);


// Keep an intentionally verbose diagnostic available
// when its report ID is enabled for debug.
uvm_top.set_report_id_verbosity(
  "BUS_TRACE",
  UVM_HIGH
);


endfunction
endclass

This is intentionally different from changing the severity of a real failure. A trace message can be made more or less visible without redefining whether a scoreboard mismatch is an error.

Detailed verbosity control is the focus of the next lesson. For now, the key principle is: use report configuration to control diagnostics, not to redefine verification correctness.

Step 7: Build a regression-friendly reporting policy

A production environment benefits from a small, consistent reporting policy. For example:

Report category Typical use Regression strategy
INFO Progress and useful diagnostics Controlled with verbosity
WARNING Suspicious but non-fatal conditions Review policy; do not automatically ignore
ERROR Verification failure that should normally fail the test Keep visible and counted
FATAL Unrecoverable testbench or simulation condition Stop promptly and preserve diagnostics

The exact policy is project-specific. For example, a protocol warning may be promoted to an error in one environment and deliberately tolerated in another negative test. What matters is that the policy is explicit and test intent is not hidden inside global report suppression.

Step 8: Debug a missing or unexpected report

When a report does not behave as expected, debug the reporting path rather than immediately changing the DUT or checker.

  1. Confirm the report is actually generated. Add a temporary diagnostic near the suspected reporting call.
  2. Check the report ID. A typo or inconsistent ID can cause configuration to target the wrong message.
  3. Check severity. Verify whether the component issued INFO, WARNING, ERROR, or FATAL.
  4. Check verbosity. Informational messages may be filtered because their verbosity exceeds the current threshold.
  5. Check report actions. A report can be displayed, logged, counted, stopped, or otherwise processed according to its configured action.
  6. Check component-level configuration. A child component can have report settings that differ from the global policy.
  7. Inspect the final report summary. Confirm that the report was counted as expected.
`uvm_info("REPORT_DEBUG",


$sformatf("component=%s report_id=%s",
get_full_name(), "SB_MISMATCH"),
UVM_LOW)

This workflow prevents a common debugging mistake: assuming that "nothing was printed" means "nothing happened."

Step 9: Make reports useful for scoreboard failures

Lesson 30 established debug-friendly diagnostics. The report server builds on that idea by providing the infrastructure through which those diagnostics are processed.

A useful scoreboard failure should connect the report to the verification state:

`uvm_error("SB_MISMATCH",


$sformatf(
"stream=%0d id=%0d expected=%s actual=%s outstanding=%0d",
stream_id,
id,
expected.sprint(),
actual.sprint(),
outstanding_count
))

If the environment also tracks reset epochs or latency, those can be included when they materially improve diagnosis:

`uvm_error("SB_MISMATCH",


$sformatf(
"epoch=%0d stream=%0d id=%0d expected=%s actual=%s",
reset_epoch,
stream_id,
id,
expected.sprint(),
actual.sprint()
))

The report server does not create this context for you. The verification component must supply meaningful diagnostic information.

Step 10: Connect reporting to regression triage

A regression failure should be reproducible and classifiable. A useful minimum diagnostic record usually includes:

  • test name
  • random seed
  • report severity and ID
  • component or hierarchy
  • transaction ID or correlation key when applicable
  • expected and actual information for comparison failures
  • reset epoch or scenario state when relevant
  • the first meaningful failure rather than only the final cascade

For example, if a predictor fails first and then produces twenty scoreboard mismatches, the report stream should help the engineer identify the predictor failure as the likely root cause instead of treating all twenty messages as independent DUT failures.

Regression principle: More reports do not automatically mean better debugging. The goal is a high-signal report stream in which important failures are preserved and repetitive diagnostics can be controlled.

Common mistakes

Mistake Why it causes problems Better approach
Changing every error into INFO Real failures disappear from regression results Keep verification failures as errors
Using unique report IDs everywhere Report configuration becomes difficult to manage Use stable, meaningful categories
Printing everything at high verbosity Logs become too large to diagnose efficiently Keep normal output concise and enable detailed traces when needed
Assuming no message means no failure The report may have been filtered or handled differently Inspect severity, verbosity, actions, and counts
Replacing the report server unnecessarily Introduces global infrastructure complexity Use standard UVM reporting unless a real project requirement exists
Using report suppression to fix negative tests The test may pass without checking the expected error behavior Model expected errors explicitly
Putting huge transaction dumps in every failure Logs become unreadable Print the fields needed for diagnosis and use targeted traces for deeper inspection

Debugging exercise: find the lost error

Consider a scoreboard that clearly detects a mismatch, but the regression log contains no visible scoreboard error.

`uvm_error("SB_MISMATCH",


$sformatf("id=%0d expected=0x%0h actual=0x%0h",
id, expected.data, actual.data))

Work through these questions in order:

  1. Was the scoreboard code path actually executed?
  2. Was the report ID exactly SB_MISMATCH?
  3. Was the report severity UVM_ERROR?
  4. Was the report action configured to suppress display or redirect output?
  5. Was the report generated by the component you expected?
  6. Does the final report summary count the error?

The exercise is deliberately about diagnosis rather than memorizing one API call. In a large environment, report configuration can be inherited or changed in several places, so the engineer needs a systematic way to isolate the cause.

Try it yourself

  1. Create one uvm_info, one uvm_warning, and one uvm_error with distinct report IDs.
  2. Run the test and identify where each report appears.
  3. Change the informational message's verbosity and observe when it becomes visible or hidden.
  4. Inspect the report server and record the warning/error counts.
  5. Create a deliberately failing scoreboard comparison and verify that the error appears in the final report summary.
  6. Configure one diagnostic message so it can be selectively controlled without changing the severity of the real scoreboard failure.

Challenge: design a regression report policy

Design a reporting policy for a reusable protocol environment containing:

  • a driver that produces transaction trace messages,
  • a monitor that reports malformed protocol activity,
  • a scoreboard that reports mismatches,
  • a coverage subscriber that prints progress information,
  • and tests that intentionally inject protocol errors.

Decide:

  1. Which report IDs should be stable across projects?
  2. Which messages should normally be visible?
  3. Which diagnostics should require higher verbosity?
  4. Which conditions are true verification errors?
  5. How will negative tests distinguish expected DUT errors from testbench failures?
  6. What information must appear in a scoreboard mismatch for regression triage?

Your goal is not to maximize the number of messages. Your goal is to make a regression failure informative enough that another engineer can reproduce and classify it without first modifying the environment.

Knowledge check

  1. What is the role of the report server?
    It participates in centralized UVM report processing and maintains information used for report output and summaries.
  2. What is the difference between severity and verbosity?
    Severity classifies the seriousness of a report; verbosity controls the visibility/detail threshold for informational reporting.
  3. What is a report ID?
    A stable identifier/category that can be used to classify and configure a class of reports.
  4. Should a scoreboard mismatch normally be downgraded to INFO?
    No. A real verification mismatch should remain a verification failure unless the environment has a clearly defined reason to classify it differently.
  5. Does zero UVM errors prove the DUT is correct?
    No. Report counts are only one source of verification evidence.
  6. Where should you look when an expected report disappears?
    Check that the reporting code executed, then inspect report ID, severity, verbosity, actions, component-level configuration, and final counts.

Key takeaways

  • UVM reporting is an infrastructure layer connecting component diagnostics to centralized processing and summaries.
  • uvm_report_server is part of that infrastructure; most environments should use the standard server rather than replace it.
  • Severity, verbosity, report ID, and report action are different concepts and must be debugged separately.
  • Stable report IDs make large regression logs easier to control and search.
  • Report configuration should reduce diagnostic noise without hiding real verification failures.
  • Useful scoreboard reports contain transaction context, not just the words "scoreboard failed."
  • Report counts are useful regression evidence, but they do not prove verification completeness or DUT correctness.
  • When a report behaves unexpectedly, debug the reporting path before changing the DUT or verification algorithm.

Where this lesson goes next

Lesson 61 established the reporting architecture. Next, Lesson 62 focuses specifically on verbosity and message control: how to keep normal regressions readable while selectively exposing driver, monitor, scoreboard, and protocol traces during debug.

That distinction is important. Lesson 61 answers “How does UVM reporting work?”. Lesson 62 answers “How do I control the amount of reporting without losing useful failures?”.