PSS Sequence

Portable Test and Stimulus 3.1

One sequence.
Four targets.

Generate repeatable register tests for firmware and simulation from the same PSS model.

  • C11
  • C++17
  • SystemVerilog
  • Python 3

Register readback

Reset and readback assertions

PSS 3.1
read_write.pssExample
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

Change the model.
Regenerate the tests.

Put the register value, action order and expected result in one source file. Use the generated tests in your firmware and simulation workflows.

Describe the sequence

Declare the write and read actions and fix their inputs in a PSS activity.

Generate the source

Choose C, C++, SystemVerilog or Python with a command-line generator.

Run the assertions

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

Run register tests through your UVM testbench.

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
Build and run the bundled testbench

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.

Register readback on a DUT

Simulation with Accellera UVM and Verilator

Address0x1000
Reset value0x00000000
Write value0xDEADBEEF
Recorded simulation result
UVM_INFO [PSS_EXAMPLE]
Reset and write/readback checks passed.

UVM_ERROR : 0
UVM_FATAL : 0
UVM_FATAL [PSS_READBACK]
address 0x1000: expected 0xdeadbeef, got 0xdeadbeee

UVM_ERROR : 0
UVM_FATAL : 1

Pricing in GBP

Start with one real test.

Evaluate the workflow on a test your team already maintains.

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
Open demo

Team Licence

£6,000 / year

Keep generating tests as your verification model evolves.

  • One verification team and project
  • Standalone and UVM generation in CI
  • Updates and email support

Pilot credit. Apply £2,000 toward a Team Licence if you sign within 30 days of pilot acceptance.

Product scope

What can I run?

Which PSS models are supported?

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.

How does the example assert register values?

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.

Can I include target-specific code?

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.

What does the UVM integration require?

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.

How do we know a pilot worked?

Both generated tests pass in your CI pipeline. Introduce an incorrect expected value and both jobs should fail with a readback diagnostic.

Scope a pilot

Prepare a brief you can share with your team. The details stay on this device.

Output targets