HDL & Verification
What is the purpose of a reference (golden) model written in C or similar in verification?
- ATo hand it to the factory as the manufacturing blueprint
- BTo compute the same function another way and use its results as expected values to compare with the design's outputs
- CTo slow the circuit down so it is easier to watch
Show answer and explanation
Answer: B. To compute the same function another way and use its results as expected values to compare with the design's outputs
A reference model is a straightforward software implementation of the function the circuit must perform, without regard to timing. Feeding the same inputs to both the circuit and the model and comparing results generates expected values automatically, even for large volumes of random input. If built by the same person with the same misunderstanding as the design, it will miss bugs, so it should be written independently from the specification.
- A. Layout data, not a C model, goes to the factory.
- B. Correct. Agreement with an independently built model is checked.
- C. It does not change speed.