Functional Coverage

How do avoid a condition that a BIN gets hit but the test fails . still that accounts for FC % . How can u avoid that situation so that BIN should be counted only if the test actually passe.

This is a condition which would normally be accounted for by your tool’s verification management functionality.

Questasim’s Verification Run Manager tool will take into account the UVM TESTSTATUS when merging coverage results into the overall regression coverage. If the test passed, the coverage results are merged. If the test failed, the results are ignored. Other tools might handle this differently.

I think another approach to solve this issue is to sample the coverage only when scoreboard has completed functional data checking.The functional coverage should be sampled after data checking,matching with expected result and actual result.This will give coverage only for passing tests.Hence,failing tests will not have the bins hit.