Home / Glossary / Functional Coverage
Functional Coverage
Functional coverage is a measure of how much of a design’s intended behavior has been exercised during verification. It answers the question: have we tested the things we meant to test?
In more detail
Verification engineers write a coverage model that lists the situations worth observing. Examples include each type of packet being sent, a buffer becoming full and empty, or two events occurring at the same time. During simulation, the tool records which of these have occurred.
Functional coverage is defined by people, based on the specification. That distinguishes it from code coverage, which tools collect automatically and which records which lines and branches of the RTL have executed. The two are complementary. Code can be fully executed without an important scenario ever being tested, and a scenario list can miss code nobody thought about.
In SystemVerilog, coverage is expressed with covergroups and cover properties.
Why it matters
Modern verification relies on randomly generated stimulus. Random tests reach cases nobody would think to write by hand, and without measurement there is no way to know what they reached. Functional coverage provides that measurement.
It also gives projects an objective basis for deciding when verification is complete. Teams track coverage toward a target and investigate each remaining gap before tape-out.
Coverage shows that something was exercised. It does not show the design responded correctly, which is the job of checkers and scoreboards in a methodology such as UVM.