VCS View Code Coverage

Source: Internet
Author: User
Tags fsm

Code Coverage

Code coverage tests typically include line coverage, conditional overrides, FSM coverage, rollover coverage, and so on. There are different coverage at different code levels, behavioral code contains LINE+CONDITION+PATH (branch) +FSM; RTL Code contains LINE+CONDITION+PATH+TOGGLE+FSM ; Gate-level code contains only toggle coverage.

What is the Code Coverage?

    • Has all the line of the RTL been stimulated?
    • Has all the states of a FSM been exercised?
    • Has all the conditions of a "if" statement in the RTL simulated?
    • Has all the blocks of a "case" statement been exercised?

What is the code Coverage is not?

    • Functional Coverage, which answer questions such as:
    • Has all possible combinations of instructions been verified on a processor?
    • Has all the "corner-cases" been tested for a design?
    • Did all asynchronous interrupt occur when a cache miss is being handled by the processor?

If you are using VCs to view Code coverage, simply add code coverage parameters when VCs compiles and executes:-cm LINE+COND+FSM+BRANCH+TGL

VCS View Code Coverage

VCS generates the Simv.vdb folder by default in the working directory, which contains code coverage-related information, and can be used to view code coverage with the following command:

Dve–covdir *.vdb &

Problem:

What methods and tools are used to solve the problem of functional coverage?

VCS View Code Coverage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.