Module 4: Coverage and Assertions | Intermediate UVM

Assertion Binding

Attach reusable SystemVerilog assertions to DUT logic without modifying the RTL source.

Learning objectives

  • Explain why bind is useful for reusable assertion-based verification.
  • Distinguish a bound checker from the DUT and from a UVM component.
  • Write a small assertion checker module and bind it to a DUT module.
  • Connect DUT signals to checker ports through a bind statement.
  • Understand the difference between binding to all instances of a module type and binding to a specific instance.
  • Use reset, parameters, and interface signals correctly in a bound checker.
  • Debug a bound assertion by tracing the checker instance back to the DUT instance it monitors.
  • Prepare bound assertions for integration with a UVM environment and regression flow.

Step 1: Why use assertion binding?

Lesson 37 introduced SystemVerilog Assertions and showed how to write temporal properties. The next practical problem is placement: where should those properties live?

You could place assertions directly inside the RTL module:

module fifo (


input logic       clk,
input logic       rst_n,
input logic       wr_en,
input logic       rd_en,
input logic       full,
input logic       empty
);

assert property (
@(posedge clk)
disable iff (!rst_n)
full |-> !wr_en
);

endmodule

That can work, but verification teams often want assertion code to remain separate from design code. The RTL may be shared across projects, maintained by another team, or intentionally kept free of verification-only constructs.

SystemVerilog bind provides a way to attach a checker to a DUT module or instance without editing the DUT source.

Core idea: bind does not modify the DUT's functional behavior. It adds a verification-side instance that can observe signals in the selected DUT scope.

Step 2: The architecture

Think of a bound checker as a verification observer attached to the DUT:

                 +----------------------+
             |       UVM Test        |
             +----------+-----------+
                        |
                        v
                +---------------+
                |      DUT      |
                +-------+-------+
                        |
           +------------+------------+
           |                         |
           v                         v
    +-------------+           +-------------+
    | UVM Monitor |           | SVA Checker |
    +------+------+           |   (bound)   |
           |                  +-------------+
           v
    Scoreboard / Coverage

The UVM monitor reconstructs transactions and feeds transaction-level components. The bound assertion checker observes DUT signals directly and evaluates temporal properties.

These mechanisms complement one another:

  • Monitor: turns signal activity into transactions.
  • Scoreboard: compares expected and actual behavior.
  • Coverage: measures whether planned scenarios occurred.
  • Bound checker: verifies local signal-level and temporal rules.

Step 3: Create a reusable checker module

Start with a small checker for a ready/valid interface. The requirement is:

If valid is asserted while ready is low, the payload must remain stable until the next sampled clock.

module ready_valid_checker #(


parameter int DATA_WIDTH = 32
) (
input logic                  clk,
input logic                  rst_n,
input logic                  valid,
input logic                  ready,
input logic [DATA_WIDTH-1:0] data
);

assert property (
@(posedge clk)
disable iff (!rst_n)
valid && !ready |=> $stable(data)
)
else $error(
"READY_VALID: data changed while transfer was stalled"
);

endmodule

Notice that the checker does not contain a driver, sequence, monitor, scoreboard, or UVM class. It only knows the signals and protocol rule it is responsible for checking.

This makes the checker reusable across multiple environments that use the same interface protocol.

Step 4: Bind the checker to the DUT

Suppose the DUT contains this interface:

module packet_engine (


input logic        clk,
input logic        rst_n,
input logic        valid,
input logic        ready,
input logic [31:0] data
);

// DUT implementation

endmodule

The checker can be attached using:

bind packet_engine


ready_valid_checker #(.DATA_WIDTH(32)) rv_checker (
.clk   (clk),
.rst_n (rst_n),
.valid (valid),
.ready (ready),
.data  (data)
);

The first name, packet_engine, identifies the DUT module type to which the checker is being bound.

The second part instantiates the checker and maps the DUT signals to its ports.

Important: The names clk, rst_n, valid, ready, and data in the bind statement refer to signals in the bound DUT scope. They are connected to the checker ports just like ordinary module-instance port connections.

Step 5: Understand what the bind statement creates

Conceptually, this:

bind packet_engine


ready_valid_checker rv_checker (...);

behaves as though the checker instance were attached inside each matching packet_engine scope.

You are not editing the original RTL file. Instead, the elaborated design contains the additional verification checker.

Original RTL


packet_engine
+-------------------------+
| clk                     |
| rst_n                   |
| valid                   |
| ready                   |
| data                    |
|                         |
| DUT logic               |
+-------------------------+

After bind

packet_engine
+-------------------------+
| clk                     |
| rst_n                   |
| valid                   |
| ready                   |
| data                    |
|                         |
| DUT logic               |
|                         |
| +-------------------+   |
| | ready_valid_check |   |
| +-------------------+   |
+-------------------------+

This is particularly useful when the same protocol checker needs to be applied to many instances or many projects.

Step 6: Binding to all instances versus one instance

There are two important use cases.

Bind by module type

bind packet_engine


ready_valid_checker rv_checker (...);

This targets the packet_engine module type. When multiple instances of that module type exist in the elaborated design, the binding can apply to those matching instances.

This is useful when every instance implements the same protocol and should receive the same checker.

Bind to a specific instance

Sometimes only one instance should be checked.

bind top.dut0


ready_valid_checker rv_checker (
.clk   (clk),
.rst_n (rst_n),
.valid (valid),
.ready (ready),
.data  (data)
);

Here the hierarchical target identifies a particular instance.

Practical choice: Use module-type binding when the property belongs to every instance of a reusable block. Use instance-specific binding when the property applies only to a particular integration point or when different instances have different checking requirements.

Step 7: Pass parameters into the checker

Reusable protocol checkers often need configuration such as data width or timing limits. SystemVerilog parameters make this possible.

module ready_valid_checker #(


parameter int DATA_WIDTH = 32
) (
input logic                  clk,
input logic                  rst_n,
input logic                  valid,
input logic                  ready,
input logic [DATA_WIDTH-1:0] data
);

assert property (
@(posedge clk)
disable iff (!rst_n)
valid && !ready |=> $stable(data)
);

endmodule

The bind statement can override the parameter:

bind packet_engine


ready_valid_checker #(
.DATA_WIDTH(64)
) rv_checker (
.clk   (clk),
.rst_n (rst_n),
.valid (valid),
.ready (ready),
.data  (data)
);

This lets the same checker source be reused for different interface widths.

Step 8: Bind more than one property

A useful protocol checker normally contains several related properties rather than one giant assertion.

module ready_valid_checker #(


parameter int DATA_WIDTH = 32
) (
input logic                  clk,
input logic                  rst_n,
input logic                  valid,
input logic                  ready,
input logic [DATA_WIDTH-1:0] data
);

// A transfer is accepted when valid and ready are both high.
wire transfer = valid && ready;

// A stalled transfer must keep its payload stable.
assert property (
@(posedge clk)
disable iff (!rst_n)
valid && !ready |=> $stable(data)
)
else $error(
"READY_VALID_STABLE: payload changed while stalled"
);

// Once valid is asserted, it must remain asserted until acceptance.
assert property (
@(posedge clk)
disable iff (!rst_n)
valid && !ready |=> valid
)
else $error(
"READY_VALID_VALID: valid dropped before acceptance"
);

endmodule

Keeping properties separate improves failure identification. A failure of READY_VALID_STABLE tells the engineer something different from a failure of READY_VALID_VALID.

Notice that transfer is simply a local signal used by the checker. It does not have to be exposed to the UVM environment.

Step 9: Choose the right signals to expose

A bound checker should receive the signals required to express its properties—no more than necessary.

For example, a FIFO checker might need:

clk


rst_n
wr_en
rd_en
full
empty

It may not need the entire internal data path.

Keeping the checker interface small has several benefits:

  • the checker is easier to reuse;
  • the protocol assumptions are easier to understand;
  • the bind statement is simpler;
  • the checker is less coupled to RTL implementation details.

However, do not artificially restrict the checker to top-level signals if the requirement genuinely depends on an internal DUT state or signal. Binding can be especially useful for checking internal implementation invariants that are difficult to observe through the external interface.

Step 10: Use assertions for the right kind of requirement

Binding does not change the fundamental role of an assertion. The property should still be a good fit for SVA.

Requirement Suitable mechanism
Valid stays asserted until handshake Bound SVA checker
Payload remains stable while stalled Bound SVA checker
FIFO cannot read while empty Bound SVA checker
Response data equals reference model prediction Predictor + scoreboard
All required address/operation combinations occurred Functional coverage
Every response ID matches an outstanding request Transaction-level scoreboard

Choosing the wrong abstraction often makes the verification environment harder to debug.

Step 11: Assertions can check internal DUT behavior too

One of the powerful uses of binding is checking internal properties without modifying the RTL.

Suppose a FIFO has an internal counter called count, and the design specification requires that it never exceed its depth.

module fifo (


input logic       clk,
input logic       rst_n,
input logic       wr_en,
input logic       rd_en,
output logic      full,
output logic      empty
);

logic [4:0] count;

// FIFO implementation

endmodule

A checker could observe the internal state:

module fifo_internal_checker #(


parameter int DEPTH = 16
) (
input logic       clk,
input logic       rst_n,
input logic [4:0] count
);

assert property (
@(posedge clk)
disable iff (!rst_n)
count <= DEPTH
)
else $error(
"FIFO_COUNT: count exceeded configured depth"
);

endmodule

The bind statement can connect the internal signal:

bind fifo


fifo_internal_checker #(
.DEPTH(16)
) internal_checker (
.clk   (clk),
.rst_n (rst_n),
.count (count)
);

This is a major benefit of binding: the checker can observe verification-relevant implementation state while remaining outside the RTL source.

Use internal signals carefully. An assertion based on internal implementation details can become fragile when RTL is refactored. Prefer externally visible protocol properties when those properties are sufficient.

Step 12: Do not confuse bind with a UVM component

A bound checker and a UVM component live at different abstraction levels.

UVM component:
class-based
participates in UVM phases
communicates through TLM
handles transactions/configuration


Bound checker:
SystemVerilog module/checker
observes signals
evaluates temporal properties
does not participate in UVM phases

A bound checker does not need an analysis port, sequencer, driver, or UVM factory registration.

Its role is to observe and assert.

UVM integration becomes important when the verification environment needs to collect, classify, or react to assertion results. That is the focus of Lesson 39.

Step 13: Validate a bound checker deliberately

Do not stop after the checker compiles. Validate the binding itself.

  1. Compile the checker. Make sure the property syntax and checker ports are valid.
  2. Elaborate the design. Confirm the bind target exists and the checker is instantiated.
  3. Run a legal scenario. The assertion should not report a failure.
  4. Create an intentional violation. Change the stimulus or temporarily modify the DUT behavior in a controlled experiment.
  5. Confirm the failure. Verify that the expected property reports the violation.
  6. Inspect the waveform. Check the exact sampled clock edge and signal values.
Important: A checker that never fails may be correct, or it may not actually be bound, may have the wrong signals, or may never be triggered. Test the failure path intentionally.

Step 14: Debug binding problems systematically

If the assertion does not behave as expected, debug the binding before debugging the property.

Assertion does not fire
    |
    +--> Did the bind target elaborate?
    |
    +--> Is the checker instance present?
    |
    +--> Are the checker ports connected to the intended DUT signals?
    |
    +--> Is the property enabled?
    |
    +--> Is reset disabling the property?
    |
    +--> Does the antecedent ever occur?
    |
    +--> Is the sampling clock correct?
    |
    +--> Is the temporal relationship correct?
    |
    +--> Is the DUT actually violating the property?

This order matters. There is little value in rewriting an SVA property if the checker was never attached to the intended instance.

Common mistakes

Debugging strategy

When a bound assertion fails, use both the checker and the UVM environment as evidence.

Assertion failure
  |
  v


Which checker instance?
|
v
Which DUT instance?
|
v
Which property?
|
v
Which sampled clock?
|
v
What were the DUT signal values?
|
+----> Waveform
|
+----> UVM monitor transaction
|
+----> Scoreboard result
|
+----> Coverage context
|
v
Is the DUT or the property wrong?

A particularly useful debugging pattern is to compare the assertion's signal-level evidence with the monitor's transaction-level reconstruction.

If the assertion says a transfer was stalled but the monitor reports a completed transaction, investigate the monitor's acceptance logic and the assertion's sampling boundary.

Try it yourself

  1. Create a reusable ready_valid_checker with assertions for payload stability and valid stability.
  2. Create a small DUT module exposing clk, rst_n, valid, ready, and data.
  3. Bind the checker to the DUT without modifying the DUT source.
  4. Run a legal transfer sequence and confirm that the checker remains quiet.
  5. Create a stalled transfer and deliberately change data.
  6. Confirm that the bound assertion reports the failure.
  7. Inspect the waveform and identify the exact clock edge at which the property failed.

Challenge: One checker, multiple DUT instances

Imagine a top-level design contains three instances of the same protocol block:

top


|
+-- engine0
|
+-- engine1
|
+-- engine2

All three instances use the same ready/valid protocol.

Build a reusable checker and bind it to the module type so that each matching instance receives the protocol assertions.

Then change the requirement:

  • engine0 and engine1 use the standard protocol.
  • engine2 has a different timing requirement.

Decide whether module-type binding, instance-specific binding, or a parameterized checker is the best architecture.

Advanced extension: Add a parameter controlling an allowed response delay and instantiate the same checker with different parameter values for different protocol instances.

Knowledge check

  1. What problem does bind solve?
    It allows verification logic such as assertion checkers to be attached to existing DUT modules or instances without modifying their RTL source.
  2. Does a bound checker participate in UVM phases?
    No. A bound checker is normally a SystemVerilog module or checker, not a UVM component.
  3. Why might you bind by module type?
    To apply the same reusable checker to matching instances that share the same protocol or design rule.
  4. Why bind to a specific instance?
    When the property applies only to one integration point or when different instances require different checking behavior.
  5. Can a bound checker observe internal DUT signals?
    Yes, when those signals are accessible from the bound scope. However, relying heavily on internal implementation details can reduce checker reuse.
  6. Should a bound checker replace a scoreboard?
    No. Assertions are well suited to temporal and signal-level rules, while scoreboards handle transaction prediction, correlation, and expected-versus-actual checking.

Key takeaways

  • bind attaches verification logic to a DUT without requiring changes to the DUT source.
  • A bound checker is a SystemVerilog verification construct, not a UVM component.
  • Reusable assertion checkers can be parameterized and applied to many DUT instances.
  • Module-type binding is useful when every matching instance follows the same rule.
  • Instance-specific binding is useful when only a particular integration point needs the checker.
  • Bound assertions can check both external protocol behavior and selected internal DUT invariants.
  • Keep the checker focused on temporal/signal-level rules; use UVM scoreboards for transaction-level prediction and correlation.
  • Always validate the binding itself and intentionally exercise the assertion failure path.

What comes next?

The assertion workflow now has two layers:

Lesson 37  Write SVA properties
 ↓


Lesson 38  Attach reusable checkers with bind
↓
Lesson 39  Integrate assertions with UVM

A bound assertion can detect a protocol violation, but a production verification environment also needs useful regression-level diagnostics and a consistent relationship between assertion failures and UVM reporting.

Lesson 39: Assertion and UVM Integration will connect these worlds. You will learn when assertions should remain independent, when UVM should consume assertion results, and how assertion failures can participate in a broader verification and regression architecture.