0% found this document useful (0 votes)
233 views

Code Coverage

This document discusses how to generate and analyze code coverage data for a simulation (sims) in the SIMIAN environment. It describes needing a coverage file (.cf) and tcl file (.tcl) to invoke coverage collection, and including these files in the simulation command line. It also explains how to invoke the iccr reporting tool to open and analyze the generated coverage files (.cov, .fsm, .tog) within the cov_work directory to view code and data coverage details.

Uploaded by

anan_tvtv
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
233 views

Code Coverage

This document discusses how to generate and analyze code coverage data for a simulation (sims) in the SIMIAN environment. It describes needing a coverage file (.cf) and tcl file (.tcl) to invoke coverage collection, and including these files in the simulation command line. It also explains how to invoke the iccr reporting tool to open and analyze the generated coverage files (.cov, .fsm, .tog) within the cov_work directory to view code and data coverage details.

Uploaded by

anan_tvtv
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Generating Code Coverage Data for a sims

• We need a coverage file (.cf ) and a tcl file ( .tcl ) for the invoking Incisive Comprehensive
Coverage (ICC) in the SIMIAN environment.

• A coverage files includes commands for selecting/deselecting type of coverage ( may be


code - block ,branch and expression or toggle or fsm or functional ) for the required
instances. eg: “~sentineli/team/ananthar/workRxDma/testrun/covf.cf/”

• A tcl file includes commands to run the simulation with setup like specifying the design
,DUT , database and the test name.eg :
“~sentineli/team/ananthar/workRxDma/testrun/covf.tcl/”

• We have to include the code coverage files in the command line of the sim like “bsub -I
-q all_q -R "type == LINUX86" sim -local -waves +define+VIRAGE_IGNORE_RESET
+nccovfile+rcovf.cf +tcl+rcovf.tcl RXDMA_MC_SSP1_Core”
• Above command will create coverage files ( .cov for Code, .fsm for FSM & .tog for toggle)
in the cov_work directory in the present working directory.

Analyzing Code Coverage Data

• For invoking the iccr reporting tool in the working directory, use the command “iccr –
w cov_wrok –g”. Note: before this we have to set the DISPLAY variable.
• Under the File menu in the iccr tool, we have to open the design file (.dgn) inside the
cov_work directory.
• Then we can select any of the coverage files (.cov or .tog or .fsm) inside the
cov_work directory to open & analyze the same.
• For detailed analysis, we can go to the individual coverage palette in the iccr like
Code/Data or FSM or Functional.
• We can merge same type of coverage files on different sims of a particular design
using the “union” command in the file menu, resulting in a single consolidated
coverage file for the design.

You might also like