FVO — Formal Verification Online
⚖️ Interview questions · 8 questions

Equivalence checking (FEV / LEC) interview questions

RTL-to-netlist and RTL-to-RTL equivalence, key points, sequential equivalence and common pitfalls.

📚 Learn it first: Chapter 8: Formal Equivalence Verification

Q1

What is logic equivalence checking (LEC) and where is it used in the flow?

Basic

LEC proves two representations of a design implement the same function, without simulation vectors. Typical uses:

  • RTL vs synthesized netlist,
  • netlist vs netlist after scan insertion, place-and-route or ECOs,
  • RTL vs RTL after a refactor.

It is a mandatory signoff step in most ASIC flows because every netlist transformation could introduce a bug.

💬 Discuss this
Q2

What are key points (compare points) and why does combinational LEC need them?

Basic

Key points are the matching state elements and outputs in both designs: flops, latches, black-box pins and primary outputs. The tool maps each key point of the reference to one in the implementation, then proves the combinational logic cones feeding each pair are equivalent.

Because the comparison is cone by cone, it is fast and scales to huge designs — but it only works when the state encoding is the same in both designs.

💬 Discuss this
Q3

LEC reports a non-equivalent compare point. How do you debug it?

Intermediate
  1. Check the mapping first: a wrong or missing match (renamed or merged flops) often looks like a functional difference.
  2. Look at the counterexample input pattern the tool gives for that cone.
  3. Check setup: constants and modes (scan enable tied off, test mode, unused ports), black boxes on both sides, undriven nets.
  4. Only then suspect a real synthesis or ECO bug and trace the differing logic.
💬 Discuss this
Q4

When do you need sequential equivalence checking (SEC) instead of combinational LEC?

Intermediate

Whenever the two designs have different state: retiming (flops moved across logic), pipeline changes, FSM re-encoding, clock gating inserted or changed, or power optimisations. Then flops cannot be mapped one-to-one.

SEC builds a miter — both designs driven by the same inputs, outputs compared — and proves the outputs are equal on every cycle from reset (or after a known latency). It is harder and limited to smaller blocks.

💬 Discuss this
Q5

What is a miter circuit?

Advanced

A miter connects the same free inputs to two designs and XORs (compares) their corresponding outputs into one signal. Proving that signal can never be 1 proves equivalence.

SVA
module miter(input clk, rst_n, input [7:0] a, b);
  wire [8:0] y_ref, y_new;
  adder_ref u_ref(.*, .y(y_ref));
  adder_new u_new(.*, .y(y_new));
  assert property (@(posedge clk) disable iff (!rst_n) y_ref == y_new);
endmodule
💬 Discuss this
Q6

Why can clock-gating insertion break combinational LEC, and how is it handled?

Advanced

With an enable flop (if (en) q <= d) the reference has a mux feeding the flop. After clock gating the mux disappears and the enable controls the clock instead, so the two flops' input cones no longer match combinationally.

LEC tools recognise standard integrated clock-gating cells and model them, or the check is done with sequential equivalence. The key is to tell the tool which cells are clock gates.

💬 Discuss this
Q7

How do X / don't-care values in RTL affect equivalence checking?

Intermediate

Synthesis may implement an RTL X (e.g. default: y = 'x;) as any value. LEC must therefore treat RTL X as "don't care" in the reference, otherwise it would report false non-equivalences. The danger is in the other direction: an X in the implementation is a real problem. Tools have switches for X semantics — know which one your flow uses.

💬 Discuss this
Q8

How is equivalence checking different from property verification?

Basic

LEC compares two designs against each other: it can only show they behave the same, not that either is correct. FPV checks one design against properties derived from the spec. A buggy RTL synthesized correctly passes LEC perfectly; FPV (or simulation) is what finds the RTL bug.

💬 Discuss this

Discussion

No comments yet.

Was this page helpful?

Tip: select any text on the page before clicking Report and it will be quoted in your report.