Altifigence Academy

35 / 36 · अवधारणा

Verification plans and failure traces

Define expected results for normal, boundary and reset cases.

अनुवाद अभी उपलब्ध नहीं है। मूल पाठ दिखाया गया है। (English)

Learning goals

  • Define expected behavior before writing the implementation.
  • Trace a failure from the first divergent instant.

Normal cases are not enough.

Test every MUX selection with distinct data, counter reset and wraparound, and a single 1 moving through a shift register. State which mistake each test can reveal.

Copying the implementation to calculate expected results can duplicate its bugs. For small circuits, use a truth table or independently calculated state table as the reference.

Start at the first mismatch and separate input from state.

Find the first divergent edge rather than scanning the entire trace. Compare the previous state, sampled input, reset priority and result width in order. If an input changes exactly at an edge, check the simulator’s sampling rules.

Record both tested behavior and untested cases. Passing a finite set of vectors does not prove every possible behavior.

खुद आज़माएँ

Choose an input pattern that reveals a reversed shift direction.

व्याख्या पढ़ें

After reset, apply 1,0,0,0 and expect 001→010→100→000. This exposes direction more clearly than an all-ones input.

आपका चयन इस ब्राउज़र पर लागू होता है। फ़ुटर से कभी भी बदलें।