Skip to content

Hosted Breakspec is in private beta. Ask for access

What it checks

Breakspec looks for six kinds of defect in each pull request, then simulates what it finds.

No configuration file. Runs on each push.

findings in the sample review
7
reproduced in simulation
5
from a finding to reproducedBS-AI-8126 in the sample review
  1. AgentFindingBS-AI-8126
  2. AgentTestbenchtb.sv
  3. AgentFirst runiverilog, vvp
  4. BreakspecReruniverilog, vvp
  5. BreakspecCompare the outputreproduced

Simulator output, rerun by Breakspec

$ iverilog -g2012 -o sim tb.sv $REPO/rtl/sync_fifo.sv[exit code 0]$ vvp simVCD info: dumpfile wave.vcd opened for output.after fill: full=1 count=4 wptr=0 rptr=0after wr+rd on full: full=0 count=3 wptr=1 rptr=1 (expect count=4 full=1)after extra write: count=4 wptr=2 rptr=1read 6read 3read 4read 5tb.sv:22: $finish called at 120 (1s)[exit code 0]

Six kinds of defect

5 of the six link to a finding in the sample review of our own sample project.

reproduced in simulation, rerun by Breakspec

Register map and firmware

The RTL and the firmware header give a register a different address, bit or access type.

reproduced in simulation, rerun by Breakspec

Descriptor layouts

A packed struct in the RTL and the C struct the driver writes differ in size, offset or width.

reproduced in simulation, rerun by Breakspec

Clock domain crossings

A signal goes from one clock domain to another with no synchronizer or handshake.

reproduced in simulation, rerun by Breakspec

FIFO and handshake logic

A FIFO overflows or underflows, or data changes while valid waits for ready.

no finding of this kind in the sample review

Resets

A register has no reset value, or a state machine does not return to idle after reset.

confirmed by reading the code, not run

Host software

The driver or host program uses the hardware in a sequence the hardware does not support.

  • P0: must be fixed before merging
  • P1: a real defect in the changed code
  • P2: a correctness problem worth fixing

Every finding states its evidence

Each comment carries one of three labels, in these exact words.

  • 5of 7 findings

    reproduced in simulation, rerun by Breakspec

    Breakspec wrote a testbench against your RTL. The engine ran the simulation again and saw the reported output.

  • 1of 7 findings

    confirmed by reading the code, not run

    A second agent tried to refute the finding and could not. No simulation ran.

  • 1of 7 findings

    raised by a reviewer, not examined

    A reviewer reported it. Nothing checked it.

Read how evidence is recorded

What it does not do

The review reads code and runs simulations. These jobs stay with your other tools.

  • Not done: Place and route

    The review reads source code and runs simulations. It builds no bitstream.

  • Not done: Timing sign-off

    The review runs no static timing analysis. Use your vendor tools.

  • Not done: Your regression suite

    The review looks at the change in one pull request.

  • Not done: A proof of the design

    A reproduced finding shows one defect under one testbench.

Languages and simulators

Three open simulators run in every review. Commercial simulators are in testing.

Which simulator runs which language in a review
SimulatorVerilogSystemVerilogVHDL
Icarus Verilogused first for these tworuns todayruns todaydoes not run
Verilatorfor files Icarus Verilog cannot readdoes not runruns todaydoes not run
GHDLdoes not read Verilogdoes not rundoes not runruns today
QuestaIn testing with a mount of your own install and licence. Not supported yet.
VCS
Xcelium
Vivado simulator

The reviewers also read the C firmware and the host software beside the RTL.Read about simulators

Four more checks

A configuration file turns them on. They use no AI agents and need Verilog or SystemVerilog.

The four optional checks: what each one reads, what runs and what it gives
CheckReadsRunsGives
Register map contractRTL package, C definesa compare, bit by biteach register that disagrees
Formal propertiesthe properties you nameYosys and an SMT solvera counterexample waveformA pass to a fixed depth is reported as tested, never as proven.
Structural CDCthe flattened netlistYosyssynchronized, qualified or unsafeIt does not model metastability.
Firmware co-simulationyour C driver, your RTLIcarus Verilogthe driver run, cycle by cycle

Read a real review

The sample review shows each finding with its simulator output and its waveform.