How to get 100% statment coverage and not 100% brach coverage?

Status
Not open for further replies.

kbkdec15

Junior Member level 1
Joined
May 27, 2013
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,397
hi every one ,m

Please let me give one example for my question?


thanks
kbkdec15
 

An if without a corresponding else branch or a case without a corresponding default creates an implicit statement that, if not taken, it is not counted in branch coverage.
Code:
if (fsel == INDF_ADDRESS) begin
   fileaddr <= fsr[6:0];
end
There are no standards for "code coverage" so different vendors may report things differently.
 
Thank you dave.
 

A case statement is same thing , if you have not defined all the cases then branch coverage will not be 100% but code coverage may be 100% ...
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…