RTL debug for simulation and formal
Your regression failed. Okayfix finds the bug and proposes the fix.
It reads the failing test, the waveform and your RTL, traces the root cause and hands you a patch that already passes the rerun. Runs inside your network.
fifo_tests: 12 failing
- fifo_fill_to_fullsimFAIL
- fifo_burst_writesimFAIL
- fifo_wr_rd_randomsimFAIL
- fifo_no_overflowformalcounterexample
- + 9 more fifo_tests failing
-logic [$clog2(DEPTH)-1:0] count;+logic [$clog2(DEPTH):0] count;assign full = (count == DEPTH);
How it works
From a failing test to a patch that passes.
Nothing is changed without you. Okayfix proposes; an engineer reviews and merges.
- 01
Failure in
Sim log, waveform, failing assertion or formal counterexample.
nightly regressionExample- fifo_fill_to_fullsimFAIL
- fifo_burst_writesimFAIL
- fifo_wr_rd_randomsimFAIL
- fifo_no_overflowformalcounterexample
- Assertion fifo_no_overflow failed at 1,284 ns
- fifo_tests: 12 failing
- 02
Root cause
Traces the failing signal back through the RTL to the lines responsible.
fifo_tests · waveformExample - 03
Patch
A minimal change with a short explanation in plain English.
rtl/fifo.svExample-logic [$clog2(DEPTH)-1:0] count;+logic [$clog2(DEPTH):0] count;assign full = (count == DEPTH); - 04
Proof
Reruns the failing tests, the affected regression and formal checks. You only see patches that pass. You review and merge.
explanation and rerunExample0fifo_tests failing
- Rerun: fifo_tests 12 → 0 failing.
- Formal: fifo_no_overflow proven.
- fifo_fill_to_fullsimFAIL
- fifo_burst_writesimFAIL
- fifo_wr_rd_randomsimFAIL
- fifo_no_overflowformalcounterexample
- Assertion fifo_no_overflow failed at 1,284 ns
- fifo_tests: 12 failing
Example
A FIFO that never reports full.
An illustrative case: twelve failing tests and one failed assertion, traced to a single declaration.
a) Failure
Assertion fifo_no_overflow failed at 1,284 ns
b) Patch
-logic [$clog2(DEPTH)-1:0] count;+logic [$clog2(DEPTH):0] count;assign full = (count == DEPTH);
c) Explanation
With DEPTH = 16, count is 4 bits wide. It wraps from 15 to 0 instead of reaching 16, so full never goes high and the writer overflows the FIFO. One extra bit fixes it.
- PASSRerun: fifo_tests 12 → 0 failing.
- PASSFormal: fifo_no_overflow proven.
What it catches
The bugs that eat a debug day.
Off-by-one and width bugs
A counter one bit short, a loop that stops one iteration early, a compare against DEPTH-1 that should be DEPTH.
Wrong reset values
A register that leaves reset in a state the rest of the design does not expect.
Missing FSM transitions
A state with no exit for one input combination, or a default branch that hides it.
Valid/ready handshake violations
Data that changes while valid is high and ready is low, or valid dropped before the transfer.
Truncation and sign errors
An assignment that drops upper bits, or signed and unsigned operands mixed in one expression.
Testbench bugs
It tells you when the RTL is fine and the test is wrong.
Why our own models
General code models see very little hardware code. And you can't send RTL to a public API.
- 01
Trained for hardware
General code models have seen little SystemVerilog. Ours are fine-tuned on hardware code.
- 02
Checked by your tools, not by guessing
Trained on bug-and-fix pairs verified by simulation and formal. At run time, every patch is rerun before you see it.
- 03
Small enough to run on your own GPUs
No public API in the loop. The models run on a GPU server inside your network.
Security
Your RTL never leaves your network.
- On-prem or fully air-gapped.
- Runs on a GPU server you control.
- Your code is not used for training unless you opt in.
- Every proposed patch and rerun is logged.
Fits your flow
It works with what you already run.
- SystemVerilog and Verilog. VHDL next.
- Works with the commercial and open-source simulators and formal tools you already run.
- Patches arrive as a branch in your Git with the explanation and rerun results.
- Can run in your CI on every failed nightly regression.
Where we are
We're a seed-stage team of chip and ML engineers. In 2027 we're running pilots with a small number of design teams.
FAQ