Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How do i achieve 100% Code coverage ?

Status
Not open for further replies.

raghavathej

Junior Member level 3
Junior Member level 3
Joined
Jun 2, 2013
Messages
31
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Bangalore
Visit site
Activity points
1,537
Hi,

Is it possible to achieve 100% code coverage for complex design ?
(code is about 1000 lines with many always and if-else statements)
Is it necessary to achieve 100%?

Reaching coverage results from 0 to 80% may take few hours.
But it takes days to reach from 80 to 85%.
Also, if i don't code "else" part of if-else statement, then unless i give "else"
i cannot cover full statement, but i don't need "else" statement at all.
First of all why should i be modifying my RTL code for code coverage, instead
i should be giving more stimulus.But i am forced to include "else" statement or
my coverage is not increasing and many such problems .
What do i do?. How do i cover false part of "else". What different should i do ?

Thanks A Lot,
Awaiting your responses,
Raghava
 

I am using Cadence tools. NCVerilog

Cadence ICCr Tool which reads the code coverage.

Code is basically a interface between 2 protocols, coding in verilog.
 

At least, in our design center all lines must be cover, or explained why it could not be covered.
The statement coverage is not mandatory, but we look at to know if some code are fare to be covered.
 

As per my knowledge all code coverage is not necessary.... But you should have all Branch coverage...including ELSE part is situation dependent....Normally all code coverage tools follow some algorithm, some fixed way of testing code...its not application or situation dependent...So finally you should analyse and able to decide, justify what thing is required and what not.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top