AllRounder.ai
Chapters in this course

Enrol to start learning

Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.

Enrol free

6.3.3. Code Coverage and Functional Coverage

  • This section

    Practice test

    11 questions on this section. Wrong answers show you what to read again.

    Sign up to take it
  • Whole chapter

    Revision test

    Mixed questions from across the chapter. Your answers get marked.

    Sign up to take it
  • Quick

    Flashcard drill

    5 cards from this lesson. Good the night before a test.

Try these first

  1. 1.

    What is code coverage?

    Hint

    Think about the lines of code that get run during tests.

  2. 2.

    What does statement coverage check?

    Hint

    Consider basic execution of each part of the code.

  3. 3.

    What is the purpose of code coverage?

    • To track code execution
    • To measure functional scenarios
    • To analyze power consumption
    Hint

    Consider what code coverage is primarily focused on.

  4. 4.

    True or False: Functional coverage ensures all possible input combinations are tested.

    • True
    • False
    Hint

    Think about what it means to cover functionality.

  5. 5.

    Design an RTL testbench that incorporates both code coverage and functional coverage metrics. Outline the key components and how each metric will be implemented.

    Hint

    Outline both structural and functional aspects in your design.

  6. 6.

    Evaluate a given RTL design's coverage report that shows 70% statement coverage but only 40% branch coverage. Discuss the implications and what actions should be taken next.

    Hint

    Think critically about the significance of branch coverage in identifying potential bugs.

Exercises

Total Questions

2

Estimated Time

4 min

Passing Score

70%

Instructions

  • Read each question carefully
  • You can use hints if you need help
  • Complete all questions before submitting

4 more questions available

Enrol free

Quiz

Total Questions

2

Estimated Time

4 min

Passing Score

70%

Instructions

  • Read each question carefully
  • You can use hints if you need help
  • Complete all questions before submitting

1 more question available

Enrol free

Challenge Problems

Total Questions

2

Estimated Time

4 min

Passing Score

70%

Instructions

  • Read each question carefully
  • You can use hints if you need help
  • Complete all questions before submitting