Code coverage reports exercised implementation structure. Functional coverage reports whether authored behaviors, values, transitions, and combinations were observed. Neither says by itself that the observed result was correct.
Reason it through
- Code metrics are derived from RTL or other instrumented implementation constructs.
- Functional goals are written from the specification, architecture, and risk analysis.
- Assertions, scoreboards, and reference models provide the complementary correctness decision.
