By knowing functional coverage how can we get to know that if there’s any missing functionality in the DUT? Please Explain by considering an example.
In reply to Hadmath Singh:
That sounds like an interview, but interesting, question.
The question addresses “functional coverage” and “missing functionality”, yet the two are not related in that order. Specifically:
- Functionality is defined by requirements.
- functional coverage address the test patterns that address those requirements.
- Missing functionality means that the requirements were not well defined.
If the specs are not well defined, I can see cases where functional coverage may discover cases that are not specified, and thus are ambiguous. For example, consider a FIFO with a coverage test case that checks the RTL response to a PUSH on a FULL condition.
Bottom line, IMHO, the answer to the question By knowing functional coverage how can we get to know that if there’s any missing functionality in the DUT:
Functionality is defined in the requirements. Functional coverage is more about the verification of the extent of the tests, and a possible byproduct is that it may discover a poor definition of the requirements.
If by Missed functionality you mean missed test cases for compliance to the requirements, then what you are saying is that the initial test cases were incomplete, and additional coverage identified those holes.
Ben Cohen
http://www.systemverilog.us/ ben@systemverilog.us
For training, consulting, services: contact Home - My cvcblr
- SVA Handbook 4th Edition, 2016 ISBN 978-1518681448
- A Pragmatic Approach to VMM Adoption 2006 ISBN 0-9705394-9-5
- Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition, 2004, ISBN 0-9705394-6-0
- Real Chip Design and Verification Using Verilog and VHDL, 2002 isbn 978-1539769712
- Component Design by Example ", 2001 ISBN 0-9705394-0-1
- VHDL Coding Styles and Methodologies, 2nd Edition, 1999 ISBN 0-7923-8474-1
- VHDL Answers to Frequently Asked Questions, 2nd Edition ISBN 0-7923-8115
- SVA Alternative for Complex Assertions
Verification Horizons - March 2018 Issue | Verification Academy - SVA: Package for dynamic and range delays and repeats | Verification Academy
- SVA in a UVM Class-based Environment
SVA in a UVM Class-based Environment | Verification Horizons | Verification Academy
Hi Ben, So I read somewhere that one can measure Design missing functionality by comparing code coverage vs functional coverage. A low functional coverage in contrast to a high code coverage generally indicates that we may have some design functionality miss or we need better constraints to reach those functionality areas. Correct me if i am wrong.
Design missing functionality by comparing code coverage vs functional coverage.
The two are different animals.
functional coverage is about checking the requirements. Does the code produce the intended goal?
Functional coverage is more about checking that lines of code were addressed.
You can easily have code that does not meet the requirements.
I think you meant to say that code coverage is about line of code being addressed/exercised.
Low code coverage and high functional coverage means you are either missing functional requirements that need to be covered, or you have a lot of dead RTL.
High code coverage and low functional coverage means either there is more RTL that needs to be implemented, or you need more tests.