SAVER · Research software

RTL verification and repair,
guided by the specification.

Turn a specification and suspect RTL into complementary formal checks, attributed counterexamples, and gated repair candidates.

FPV + C2RTL

Complementary Checks

Temporal SVA verifies control and protocols; C reference models decompose datapath arithmetic when full-core proofs time out.

See AltOR32 / ANDI →
Waveform Audit

Evidence-Grounded Attribution

Traces RTL drivers and waveforms to separate RTL bugs from checker errors—fixing the assertion instead of mutating healthy RTL.

See SATA PHY →
Pre/Post SEC

Context-Aware Repair Gating

Combines target proofs, full-corpus regressions, and differential SEC against pre-patch RTL to block patches that expose hidden defects.

See PIT →

Method

Complementary checks.
One evidence loop.

The specification defines expected behavior. RTL structure supplies binding and observation context; verification artifacts, attribution records, and gated repair candidates retain their scoped evidence.

Challenge 01

Defects beyond supplied checks

Unknown bugs escape pre-existing assertions, while monolithic full-core proofs time out on datapath logic.

SAVER → Pair temporal SVA (FPV) with decomposed C reference models (C2RTL) derived from reviewed spec obligations.

Challenge 02

Design error or checking error?

Generated assertions, reference models, or bindings can be faulty; a raw CEX cannot tell which side is wrong.

SAVER → Audit RTL drivers, mux packing, and waveform windows against the spec before editing checker or RTL.

Challenge 03

A passing target is not enough

A patch can satisfy every target proof and regression check while activating an interacting bug on an output.

SAVER → Gate admission with spec-guided differential SEC against pre-patch RTL, rejecting unexpected divergences.

SAVER End-to-End Architecture · Stages 1–5
Architecture from specification and suspect RTL through case bootstrap, complementary property-based and reference-model-based verification, counterexample attribution, RTL patch validation, iterative refinement, and final evaluation.

Specification-driven checks, failure attribution, and repair validation form an iterative loop. Final evaluation follows resolution or the iteration limit.

  1. Case Bootstrap

    Review specification obligations and extract RTL metadata, binding points, and observation context without pre-supplied bug assertions.

  2. Hybrid Verification

    Run temporal SVA (FPV) for control/protocol logic and validated Python/C reference models (C2RTL) for datapath arithmetic.

  3. CEX Attribution

    Trace drivers and waveform windows against the specification to separate RTL bugs from checker defects before acting.

  4. RTL Patch & Gate

    Verify target proofs, run full-corpus regressions, and review differential SEC divergences against pre-patch RTL before admitting a candidate.

  5. Evaluation

    After resolution or the iteration limit, assess delivered patches in a separate held-out benchmark evaluation.

Evaluation Boundary
Golden references stay strictly outside discovery and repair.
01 · Active Loop Inputs

Receives only the design specification and suspect RTL—no golden reference or bug hints.

02 · Held-Out Benchmark Eval

Remote benchmark operations isolate golden RTL & mutation truth solely for input qualification and final scoring.

03 · In-Loop Differential SEC

Compares pre-patch suspect RTL against candidate RTL—never a golden oracle.

Benchmark

Evaluated on
AssertLLM2-Lite.

25 RTL designs · 13 functional categories · 125 semantic defects. The curated Lite subset retains the breadth of AssertLLM2 while excluding near-duplicate designs.

Explore the AssertLLM2 benchmark
Bug discovery recall
76.0%

Injected target defects exposed

Bug fix ratio
57.6%

Repairs passing golden-reference SEC

Patch accuracy
80.4%

Correct fault targeting

Patch precision
89.4%

Targeted patches in successful repairs

Reported design-level means over 25 designs; patch percentages are not pooled patch counts.

Benchmark contribution · 125 specification-grounded defects

Why a new semantic bug corpus—not AST mutations?

5 bugs / design 3 behavioral classes Spec-free LLM filtered
Baseline · AST Mutations Spec-disconnected or obvious
  • Syntactic perturbationsRandom operator/literal flips often miss explicit specification obligations.
  • Visible from RTL aloneAnomalous idioms, dead branches, or width mismatches stand out without reading the spec.
  • Shallow trigger conditionsFire unconditionally on arbitrary inputs instead of realistic functional scenarios.
Our Corpus · 125 Semantic Bugs Plausible RTL · Spec-required
  • Specification-violating semanticsTargets protocol handshakes, state transitions, and datapath arithmetic tied directly to spec rules.
  • Adversarially spec-free filteredAudited by a blind LLM without the spec—any bug spotted from RTL alone is discarded.
  • Corner-case activationTriggers only under specific transaction sequences, states, or numerical corner values.
Corpus curation gate & dual-variant evaluation protocol 25 designs · 125 semantic bugs
01 · SPEC-GROUNDED Candidate Injection 5 defects × 25 designs • Protocol handshakes • State transitions • Datapath arithmetic 02 · ADVERSARIAL FILTER Blind Spec-Free LLM Audit Inspects mutated RTL alone (specification withheld) Must stay invisible w/o spec Spotted w/o spec → Discard 125 kept 03A · DISCOVERY & DEBUG 5-Defect Merged RTL Realistic multi-bug interaction Golden RTL excluded from loop 03B · TERMINAL EVAL Isolated 1-Bug Variants Patch checked vs. golden RTL Held-out post-reset SEC gate
Every retained defect is both specification-grounded and invisible to blind RTL-only LLM review. Active discovery runs on the five-defect merged RTL, while terminal repair evaluation verifies each patch on its isolated single-bug variant against held-out golden RTL.

Case studies

From specification and counterexample to the right decision.

Three end-to-end cases illustrating each core pillar of SAVER—backed by verbatim specifications, RTL, assertions, C models, waveforms, and patches. Every check status is bound to its recorded version and proof scope.

Proven (within declared scope)

Formally established by JasperGold under the recorded RTL snapshot, active clock/reset guards, and obligation assumptions.

Counterexample (CEX)

Concrete trace witnessing a property violation or pre/post behavioral divergence. SAVER attributes every CEX before editing checker or RTL.

Undetermined (U)

Solver exhausted its proof time budget without finding a counterexample or completing an unbounded proof; triggers decomposition when applicable.

AltOR32: from full-core FPV undetermined to numerical root cause and verified repair

On the exact same altor32_exec.v snapshot, full-core FPV exhausts its 300 s budget as U, whereas C2RTL exposes the sign- vs. zero-extension bug in 0.20 s and validates the fix across all 62 local checks.

Complementary FPV + C2RTL
1. Full-Core FPV3 ANDI checks → U

Execute, writeback, and GPR proofs stay undetermined (~295.45 s / 300 s budget).

2. Local C2RTLZ16 check → CEX

Same frozen altor32_exec.v fails in 0.20 s proof (5.02 s total).

3. RTL Root Causeint32_r vs uint32_r

For I=0x8000, alu_input_b_r = 0xFFFF8000 instead of 0x00008000.

4. Repair & Eval62 / 62 proven

Cumulative fix passes 62 local checks; isolated ANDI patch is FIX_CONFIRMED.

1

Requirement: ANDI must zero-extend the 16-bit immediate

AltOR32 is a 32-bit OpenRISC processor whose immediate instructions require distinct extension semantics: l.addi, l.xori, and split store immediates sign-extend, whereas l.andi and l.ori zero-extend. The suspect execution unit already computes both 32-bit values but selects the wrong one in several instruction branches.

Spec ExcerptImmediate Layout & Extension Rules
AltOR32 Specification
rDopcode[25:21]
rAopcode[20:16]
rBopcode[15:11]
Imm16opcode[15:0]
sign_extend

Widens a value to 32 bits by copying its sign bit into the upper bits.

unsigned_extend

Widens a value to 32 bits by filling the upper bits with zeros.

Spec ExcerptImmediate ALU Operations
AltOR32 Specification · ALU
Instructionopcode[31:26]ExtensionSpecified Operation
l.addi rD,rA,I0x27Sign-extendSign-extend 16-bit immediate, add to rA, write rD (SR[CY] = carry out).
l.andi rD,rA,K0x29Zero-extendZero-extend 16-bit immediate and bitwise-AND with rA.
l.ori rD,rA,K0x2aZero-extendZero-extend 16-bit immediate and bitwise-OR with rA.
l.xori rD,rA,I0x2bSign-extendSign-extend 16-bit immediate and bitwise-XOR with rA.
l.andi: rD = rA & zero_extend₃₂(I₁₆)  ·  for I₁₆ = 0x8000 → operand B = 0x00008000 (not 0xFFFF8000)
2

Full-core FPV encodes the requirement accurately, yet remains undetermined

The generated FPV checker computes the exact zero-extended l.andi expectation in source_value() and tracks a 3-stage pipeline record across execute (+1), writeback (+2), and committed GPR (+3) stages on top module cpu.

Actual FPV SVA · source_value reference and 3-stage ANDI assertions
 function automatic [31:0] source_value(input logic [31:0] w,a,b,input logic cy);
  if (is_add(w) || is_addc(w) || is_addi(w)) source_value=source_sum(w,a,b,cy);
  else if (is_sub(w)) source_value=a-b;
  else if (is_and(w)) source_value=a&b;
  else if (is_or(w)) source_value=a|b;
  else if (is_xor(w)) source_value=a^b;
  else if (is_andi(w)) source_value=a&{16'b0,w[15:0]};
  else if (is_ori(w)) source_value=a|{16'b0,w[15:0]};
  else if (is_xori(w)) source_value=a^sext16(w);
  else if (is_movhi(w)) source_value={w[15:0],16'b0};

 // P1-REF: PROP-ALU-ANDI/SUB-VALUE
 ap_andi_execute: assert property (@(posedge clk_i) disable iff (rst_i)
  (valid1 && is_andi(word1)) |-> (ex_rd==word1[25:21] && ((word1[25:21]==5'b0) || ex_value==value1)));
 // P1-REF: PROP-ALU-ANDI/SUB-VALUE
 ap_andi_writeback: assert property (@(posedge clk_i) disable iff (rst_i)
  (valid2 && is_andi(word2)) |-> ((wb_write==(word2[25:21]!=5'b0)) && ((word2[25:21]==5'b0) || (wb_rd==word2[25:21] && wb_value==value2))));
 // P1-REF: PROP-ALU-ANDI/SUB-VALUE
 ap_andi_gpr: assert property (@(posedge clk_i) disable iff (rst_i)
  (valid3 && is_andi(word3) && word3[25:21]!=5'b0) |-> (gpr_bank[{word3[25:21],5'b0} +: 32]==value3));

Recorded FPV outcome. On the original iter_00 CPU snapshot, the ANDI execute, writeback, and GPR properties, together with their witness and precondition checks, remain U.

FPV trigger logic, pipeline history, and run configuration
Actual SVA · issue guard (sample_offer) and 3-stage pipeline records
 // Full generic issue guards; no instruction-specific DUT decoder/output
 // enables any source-result obligation below.
 wire issue = evt_opcode_offer && !pc_fetch && !resolve_failed && !load_stall &&
   !(operand_resolved && ((evt_opcode_word[31:26]==6'h2d) ||
                          (evt_opcode_word[31:26]==6'h30)));
 wire sample_offer = issue && (opcode_pc_i[1:0]==2'b00);

 // Three fixed pipeline records associate the input sample with independent
 // execute output (+1), writeback bus (+2), and committed GPR storage (+3).
 logic valid1,valid2,valid3;
 logic [31:0] word1,word2,word3,a1,b1,value2,value3;
 logic cy1;
 wire [31:0] value1=source_value(word1,a1,b1,cy1);
 wire [32:0] sum1=source_sum(word1,a1,b1,cy1);
 wire flag1=source_flag(word1,a1,b1);
 always @(posedge clk_i or posedge rst_i) begin
  if(rst_i) begin
   valid1<=1'b0; valid2<=1'b0; valid3<=1'b0;
   word1<=32'b0; word2<=32'b0; word3<=32'b0;
   a1<=32'b0; b1<=32'b0; cy1<=1'b0;
   value2<=32'b0; value3<=32'b0;
  end else begin
   valid1<=sample_offer;
   word1<=evt_opcode_word; a1<=ra_value; b1<=rb_value;
   // Previous result's bypassed SR.CY is the incoming architectural carry;
   // sample before the current instruction's possible exception clearing.
   cy1<=next_sr[10];
   valid2<=valid1; word2<=word1; value2<=value1;
   valid3<=valid2; word3<=word2; value3<=value2;
  end
FPV run configuration (run_input.json)
{"execution": {"top": "cpu", "clocks": ["clk_i"], "reset": "rst_i", "runtime_reset": "unconstrained", "proof_time_limit_s": 300}}

The iter_00 FPV process completed successfully; the ANDI proof outcomes remain U.

3

C2RTL isolates the ALU operand relation on the exact same frozen RTL

Byte-level verification confirms that the frozen FPV execution input and the C2RTL active input share the exact same altor32_exec.v and 6 RTL dependencies. Instead of proving across full-core fetch, stall, bypass, and register-file state, C2RTL checks the 32-bit operand selected onto dut.alu_input_b_r against an independent C model (mode = 2 → Z16).

DimensionFull-Core FPVDecomposed C2RTL
Target RTLaltor32_exec.v inside full cpuByte-identical altor32_exec.v via local observer wrapper
Verified scopeInstruction issue, pipeline, bypass, writeback, GPR, resetFixed l.andi decode branch; unconstrained 16-bit immediate; observes alu_input_b_r
Proof budgetprove -all: 300 sLocal numerical check: 600 s
Outcome & runtimeU (all 3 properties, ~295.45 s)CEX (5.02 s total; 0.20 s proof stage)
Actual C reference model · value_expansion_rm.c (core excerpt, mode=2 → Z16)
void rm_eval(const uint8_t *input, uint8_t *output)
{
    const uint32_t x = (uint32_t)input[0]
                     | ((uint32_t)input[1] << 8)
                     | ((uint32_t)input[2] << 16)
                     | ((uint32_t)input[3] << 24);
    const uint8_t mode = input[4];
    uint32_t q;
    uint32_t result;

    /* Selectors outside 0..5 have no approved numerical relation. */
    if (mode > 5) {
        return;
    }

    /* Retain the source operand width before extending or placing it.
     * spec.md 4.4:103-104; 5.1:144; 5.5:218-223.
     */
    q = x;
    if (mode <= 1) {
        q &= UINT32_C(0x000000ff);
    } else if (mode <= 4) {
        q &= UINT32_C(0x0000ffff);
    }

    /* ... */
     * Sign extension copies bit 7/15 into every higher destination bit.
     * spec.md 4.4:104; 5.1:140-143; 5.3:177; 5.5:218-223.
     */
    result = q;
    if (mode == 1 && (q & UINT32_C(0x00000080)) != 0) {
        result = q | UINT32_C(0xffffff00);
    } else if (mode == 3 && (q & UINT32_C(0x00008000)) != 0) {
        result = q | UINT32_C(0xffff0000);
    } else if (mode == 4) {
        /* spec.md 5.1:144: zero-extended immediate shifted left by 16.
         * q <= 65535, so the full result fits in uint32_t.
         */
        result = q << 16;
    }

    store_le32(output, result);
}
Actual C2RTL observer wiring · fixed ANDI opcode & observed alu_input_b_r
assign pin_clk_i = clk;
assign pin_rst_i = rst;
assign pin_intr_i = 1'd0;
assign pin_break_i = 1'd0;
assign pin_opcode_i = {selector[1:1], selector[0:0], selector[1:1], selector[0:0], selector[0:0], selector[1:1], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], operand[15:0]};
assign pin_opcode_pc_i = 32'd0;
assign pin_opcode_valid_i = 1'd0;
/* ... */
assign pin_dmem_ack_i = 1'd0;
altor32_exec dut (.clk_i(pin_clk_i), .rst_i(pin_rst_i), .intr_i(pin_intr_i), .break_i(pin_break_i), .opcode_i(pin_opcode_i), .opcode_pc_i(pin_opcode_pc_i), .opcode_valid_i(pin_opcode_valid_i), .reg_ra_i(pin_reg_ra_i), .reg_ra_value_i(pin_reg_ra_value_i), .reg_rb_i(pin_reg_rb_i), .reg_rb_value_i(pin_reg_rb_value_i), .reg_rd_i(pin_reg_rd_i), .wb_rd_i(pin_wb_rd_i), .wb_rd_value_i(pin_wb_rd_value_i), .dmem_data_in_i(pin_dmem_data_in_i), .dmem_stall_i(pin_dmem_stall_i), .dmem_ack_i(pin_dmem_ack_i));
assign expanded_result = dut.alu_input_b_r;

Recorded C2RTL outcome. The original ANDI relation gives CEX in 0.20 s of proof time (5.02 s total), under a 600 s profile proof limit.

Complete C reference model (70 lines), full observer.sv, mapping, and check outcomes
Complete C reference model · value_expansion_rm.c
/* value_expansion model version 1.
 * Mathematics: spec/spec.md, sections 4.4, 5.1, 5.3, 5.5.
 * Transport: contract/interface.json (5 input, 4 output bytes).
 * Legal selectors: 0=Z8, 1=S8, 2=Z16, 3=S16, 4=MOVHI16, 5=WORD32.
 */
#include <stdint.h>

#ifdef RM_CHECKPOINTS
extern void rm_checkpoint(uint32_t id, const uint8_t *data, uint32_t size);
#endif

static void store_le32(uint8_t *bytes, uint32_t value)
{
    bytes[0] = (uint8_t)value;
    bytes[1] = (uint8_t)(value >> 8);
    bytes[2] = (uint8_t)(value >> 16);
    bytes[3] = (uint8_t)(value >> 24);
}

void rm_eval(const uint8_t *input, uint8_t *output)
{
    const uint32_t x = (uint32_t)input[0]
                     | ((uint32_t)input[1] << 8)
                     | ((uint32_t)input[2] << 16)
                     | ((uint32_t)input[3] << 24);
    const uint8_t mode = input[4];
    uint32_t q;
    uint32_t result;

    /* Selectors outside 0..5 have no approved numerical relation. */
    if (mode > 5) {
        return;
    }

    /* Retain the source operand width before extending or placing it.
     * spec.md 4.4:103-104; 5.1:144; 5.5:218-223.
     */
    q = x;
    if (mode <= 1) {
        q &= UINT32_C(0x000000ff);
    } else if (mode <= 4) {
        q &= UINT32_C(0x0000ffff);
    }

#ifdef RM_CHECKPOINTS
    {
        uint8_t payload[4];
        store_le32(payload, q);
        rm_checkpoint(UINT32_C(1), payload, UINT32_C(4));
    }
#endif

    /* Zero extension and word identity already have the required value.
     * Sign extension copies bit 7/15 into every higher destination bit.
     * spec.md 4.4:104; 5.1:140-143; 5.3:177; 5.5:218-223.
     */
    result = q;
    if (mode == 1 && (q & UINT32_C(0x00000080)) != 0) {
        result = q | UINT32_C(0xffffff00);
    } else if (mode == 3 && (q & UINT32_C(0x00008000)) != 0) {
        result = q | UINT32_C(0xffff0000);
    } else if (mode == 4) {
        /* spec.md 5.1:144: zero-extended immediate shifted left by 16.
         * q <= 65535, so the full result fits in uint32_t.
         */
        result = q << 16;
    }

    store_le32(output, result);
}
Complete C2RTL observer · observer.sv
module altor32_exec_rmflow_transaction(
input wire clk,
input wire rst,
input wire [31:0] operand,
input wire [7:0] selector,
output wire [31:0] expanded_result
);
reg [1:0] phase;
always @(posedge clk) begin
  if (rst) phase <= 0;
  else if (phase < 2) phase <= phase + 1;
end
wire [0:0] pin_clk_i;
wire [0:0] pin_rst_i;
wire [0:0] pin_intr_i;
wire [0:0] pin_break_i;
wire [31:0] pin_opcode_i;
wire [31:0] pin_opcode_pc_i;
wire [0:0] pin_opcode_valid_i;
wire [4:0] pin_reg_ra_i;
wire [31:0] pin_reg_ra_value_i;
wire [4:0] pin_reg_rb_i;
wire [31:0] pin_reg_rb_value_i;
wire [4:0] pin_reg_rd_i;
wire [4:0] pin_wb_rd_i;
wire [31:0] pin_wb_rd_value_i;
wire [31:0] pin_dmem_data_in_i;
wire [0:0] pin_dmem_stall_i;
wire [0:0] pin_dmem_ack_i;
assign pin_clk_i = clk;
assign pin_rst_i = rst;
assign pin_intr_i = 1'd0;
assign pin_break_i = 1'd0;
assign pin_opcode_i = {selector[1:1], selector[0:0], selector[1:1], selector[0:0], selector[0:0], selector[1:1], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], selector[0:0], operand[15:0]};
assign pin_opcode_pc_i = 32'd0;
assign pin_opcode_valid_i = 1'd0;
assign pin_reg_ra_i = 5'd0;
assign pin_reg_ra_value_i = 32'd0;
assign pin_reg_rb_i = 5'd0;
assign pin_reg_rb_value_i = 32'd0;
assign pin_reg_rd_i = 5'd0;
assign pin_wb_rd_i = 5'd0;
assign pin_wb_rd_value_i = 32'd0;
assign pin_dmem_data_in_i = 32'd0;
assign pin_dmem_stall_i = 1'd0;
assign pin_dmem_ack_i = 1'd0;
altor32_exec dut (.clk_i(pin_clk_i), .rst_i(pin_rst_i), .intr_i(pin_intr_i), .break_i(pin_break_i), .opcode_i(pin_opcode_i), .opcode_pc_i(pin_opcode_pc_i), .opcode_valid_i(pin_opcode_valid_i), .reg_ra_i(pin_reg_ra_i), .reg_ra_value_i(pin_reg_ra_value_i), .reg_rb_i(pin_reg_rb_i), .reg_rb_value_i(pin_reg_rb_value_i), .reg_rd_i(pin_reg_rd_i), .wb_rd_i(pin_wb_rd_i), .wb_rd_value_i(pin_wb_rd_value_i), .dmem_data_in_i(pin_dmem_data_in_i), .dmem_stall_i(pin_dmem_stall_i), .dmem_ack_i(pin_dmem_ack_i));
assign expanded_result = dut.alu_input_b_r;
endmodule

On the original RTL, expanded_result[31:0] is CEX; the comparison point, ANDI selection, and legal-domain cover goals are reached.

Mapping configuration (profile.json)
{"observations": {"expanded_result": "alu_input_b_r"}, "compare_windows": {"expanded_result": [1, 1]}, "input_constraints": ["selector == 8'd2"], "stable_inputs": ["operand", "selector"]}
4

Counterexample pinpoints the wrong immediate selector in altor32_exec.v

At the settled comparison sample (29 ns), opcode_i = 0xA4008000 carries immediate I = 0x8000 (sign bit 1). The execution module already computes the correct zero-extended value on uint32_r = 0x00008000, yet the inst_andi_w decode branch routes sign-extended int32_r = 0xFFFF8000 into alu_input_b_r.

Bit-level CEX view · 29 ns (l.andi, I = 0x8000)altor32_exec.v
INPUT INSTRUCTION · opcode_i = 0xA4008000 [31:26] = 0x29 l.andi opcode [25:16] = 0x000 rD / rA fields [15:0] = 0x8000 (bit 15 = 1) 16-bit immediate operand K OBSERVED · FAULTY RTL (altor32_exec.v) alu_input_b_r = int32_r // sign_extend_imm16 [31:16] = 0xFFFF [15:0] = 0x8000 Upper 16 bits copy sign bit → C2RTL CEX EXPECTED · SPEC & C MODEL (Z16) alu_input_b_r = uint32_r // extend_imm16 [31:16] = 0x0000 [15:0] = 0x8000 Upper 16 bits zero-filled → C2RTL proven
Recorded counterexample values at 29 ns. The RTL already computes uint32_r = 0x00008000, but the inst_andi_w branch selects int32_r.

Observed · faulty RTL (29 ns)

alu_input_b_r = 0xFFFF8000

inst_andi_w selects int32_r in altor32_exec.v, copying bit 15 across bits [31:16].

Expected · spec & C model (Z16)

uint32_r = 0x00008000

The specification mandates zero extension; the RTL's own uint32_r signal and the C model both equal 0x00008000.

Actual faulty RTL · both extensions exist, but inst_andi_w selects int32_r
    // Signed & unsigned imm -> 32-bits
    uint16_r             = opcode_i[15:0];
    int32_r              = sign_extend_imm16(opcode_i[15:0]);
    uint32_r             = extend_imm16(opcode_i[15:0]);

    /* ... */

     inst_andi_w: // l.andi
     begin
         alu_func_r     = `ALU_AND;
         alu_input_a_r  = reg_ra_r;
         alu_input_b_r  = int32_r;
         write_rd_r     = 1'b1;
     end

Recorded attribution. This ANDI discrepancy is assigned to the RTL immediate-source selection shown above.

Raw 29 ns counterexample signal values
Counterexample signal values (29 ns)
{
  "property": "<embedded>::expanded_result[31:0]",
  "calls": [
    {"id": 14, "response": {"structuredContent": {"signal": "altor32_exec_rmflow_transaction_imp.expanded_result", "time": "29ns", "hex": "ffff8000"}}},
    {"id": 15, "response": {"structuredContent": {"signal": "altor32_exec_rmflow_transaction_imp.operand", "time": "29ns", "hex": "8000"}}},
    {"id": 22, "response": {"structuredContent": {"signal": "altor32_exec_rmflow_transaction_imp.dut.opcode_i", "time": "29ns", "hex": "a4008000"}}},
    {"id": 23, "response": {"structuredContent": {"signal": "altor32_exec_rmflow_transaction_imp.dut.uint32_r", "time": "29ns", "hex": "8000"}}}
  ]
}
5

Repair, 62/62 local regressions, and held-out terminal confirmation

The isolated ANDI repair switches alu_input_b_r from int32_r to uint32_r. When combined into the cumulative candidate alongside sibling immediate-extension fixes for store and l.addi, all 62 declared local checks (6 original CEX groups + 56 regressions) prove with unchanged declarations.

Actual cumulative repair · fixes store, ADDI, and ANDI immediate selection
diff --git a/altor32_exec.v b/altor32_exec.v
--- a/altor32_exec.v
+++ b/altor32_exec.v
@@ -362,7 +362,7 @@
     target_int26_r       = sign_extend_imm26(opcode_i[25:0]);
 
     // Store immediate
-    store_int32_r        = extend_imm16({opcode_i[25:21],opcode_i[10:0]});
+    store_int32_r        = sign_extend_imm16({opcode_i[25:21],opcode_i[10:0]});
 
     // Signed & unsigned imm -> 32-bits
     uint16_r             = opcode_i[15:0];
@@ -664,7 +664,7 @@
      begin
          alu_func_r     = `ALU_ADD;
          alu_input_a_r  = reg_ra_r;
-         alu_input_b_r  = uint32_r;
+         alu_input_b_r  = int32_r;
          write_rd_r     = 1'b1;
      end
 
@@ -672,7 +672,7 @@
      begin
          alu_func_r     = `ALU_AND;
          alu_input_a_r  = reg_ra_r;
-         alu_input_b_r  = int32_r;
+         alu_input_b_r  = uint32_r;
          write_rd_r     = 1'b1;
      end
Stage / ArtifactCheckRecorded OutcomeScope
Cumulative candidate62 local C2RTL checks (6 CEX groups + 56 regressions)62 / 62 provenAll C2RTL_PROVEN_DECLARED_SCOPE, declaration_unchanged: true; ANDI (check_30) covers reached
Cumulative candidate (Discovery)Pre/post full-hierarchy differential SEC (cpu)REVIEW_REQUIREDRecorded as SEC_REVIEW_UNRESOLVED (SEC_CEX / Invalid); no accepted merge recorded for the 3-hunk bundle
Isolated ANDI patch (Held-out Eval)M_0001 attribution match & golden SECFIX_CONFIRMEDCONFIRMED_KILL + SEC_PROVEN (steady_state_equivalence_proven: true; full_signoff_complete: false)
Isolated patch and scoped follow-up outcomes
Isolated ANDI patch (patch.diff)
diff --git a/altor32_exec.v b/altor32_exec.v
--- a/altor32_exec.v
+++ b/altor32_exec.v
@@ -672,7 +672,7 @@
      begin
          alu_func_r     = `ALU_AND;
          alu_input_a_r  = reg_ra_r;
-         alu_input_b_r  = int32_r;
+         alu_input_b_r  = uint32_r;
          write_rd_r     = 1'b1;
      end

For cumulative_revision_03_iteration_01_patch_01, the ANDI relation is proven with its declaration unchanged.

The post-patch expanded_result[31:0] relation is proven; comparison-point and ANDI-selection cover goals are reached.

Discovery SEC for the cumulative three-hunk candidate produces CEX; its behavioral review remains unresolved.

For the isolated ANDI defect M_0001, held-out post-reset steady-state equivalence is proven. Full sign-off remains incomplete.

Quickstart

Configure once. Start directly.

The local launcher coordinates the work. Licensed EDA jobs run on the remote host, where the benchmark is already deployed.

Read the complete setup
Environment and run sequence
  1. Prepare local dependencies and model access.
  2. Configure SSH, the remote EDA workspace, and the remote benchmark root.
  3. Select existing benchmark tasks and start the batch.
  4. Inspect progress and the scoped results in the case workspace.
Actual repository entry · after environment configuration
cp batch_cases.json cases.json
# Keep the tasks you want; choose fresh case_name values.
python run_codex_batch.py --cases-file cases.json

Run from the repository root. Startup prepares the allowed inputs and dispatches the selected branches. The benchmark remains on the remote host.

Follow batch progress and inspect the case workspace.

  • Inspect cases.progress.json and <case_name>/<branch>/.
  • A completed run is an artifact-delivery state; individual checks still carry their own proven, CEX, or U outcome.