Demo
Free
Explore the sample and assess which test to bring to a pilot.
- Read/write example model
- Standalone outputs and runnable UVM demo
- Candidate test review
Portable Test and Stimulus 3.1
Generate repeatable register tests for firmware and simulation from the same PSS model.
Reset and readback assertions
action assert_reg_value {
rand bit[32] expected;
exec post_solve {
bit[32] actual = comp.register_value;
if (actual != expected) {
std_pkg::fatal(1, "Register assertion failed: expected 0x%08x, got 0x%08x",
expected, actual);
}
}
}
Verification workflow
Put the register value, action order and expected result in one source file. Use the generated tests in your firmware and simulation workflows.
Declare the write and read actions and fix their inputs in a PSS activity.
Choose C, C++, SystemVerilog or Python with a command-line generator.
The example checks the reset value, writes a new value, and checks the readback. A failure reports both the expected and actual values.
SystemVerilog UVM
Generate a UVM sequence from a PSS activity. The sequence uses your register map and bus adapter to check reset, drive a write to the DUT, and verify the readback.
Generate the sequence
pss-gen-uvm register_readback.pss -o pss_uvm_pkg.sv
Extract the demo and open a shell in its folder. Set UVM_HOME to your Accellera UVM 2020.3.1 checkout and run with Verilator 5.48.
verilator --binary --timing --timescale 1ns/1ps -Wno-fatal \
--top-module pss_uvm_example_top +define+UVM_NO_DPI \
"+incdir+$UVM_HOME/src" "$UVM_HOME/src/uvm_pkg.sv" \
pss_uvm_pkg.sv register_tb.sv
./obj_dir/Vpss_uvm_example_top
./obj_dir/Vpss_uvm_example_top +BAD_READBACK
Check the UVM report summary in CI. The simulator can return status 0 after reporting a UVM fatal. If a Verilator wheel's GCC build cannot find __pch.h.fast, add -MAKEFLAGS CFG_CXXFLAGS_PCH_I=-include.
Simulation with Accellera UVM and Verilator
0x10000x000000000xDEADBEEFPricing in GBP
Evaluate the workflow on a test your team already maintains.
Free
Explore the sample and assess which test to bring to a pilot.
£3,500 one-off
Run one of your own sequences on two targets in your CI.
£6,000 / year
Keep generating tests as your verification model evolves.
Pilot credit. Apply £2,000 toward a Team Licence if you sign within 30 days of pilot acceptance.
Product scope
The generator supports deterministic sequential activities with fixed bit[32] inputs, mutable component state and selected post_solve operations. It reports unsupported constructs with a source location. General constraint solving and parallel scheduling are outside the supported subset.
The PSS sequence calls assert_reg_value before and after the write. If a register value differs from its expected value, std_pkg::fatal terminates the generated test with a diagnostic.
Leaf actions can contain a native exec body template matching the selected target. Use C, CPP, SV or this generator's Python identifier PY. Templates can substitute fixed inputs.
The generator handles sequential actions with fixed inputs and 32-bit register accesses. Compile the generated package into your SystemVerilog testbench, pass it a locked root UVM register map with a frontdoor adapter and sequencer, and start the sequence after reset.
Both generated tests pass in your CI pipeline. Introduce an incorrect expected value and both jobs should fail with a readback diagnostic.