© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course describes Coverage, a utility that is used.

Slides:



Advertisements
Similar presentations
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
Advertisements

Academic Quality How do you measure up? Rubrics. Levels Basic Effective Exemplary.
Renesas Technology America Inc. 1 SKP8CMINI-15,17 Tutorial 2 Creating A New Project Using HEW4.
Copyright  Oracle Corporation, All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE.
Decision Analysis Tools in Excel
Medicaid Alternative Benefit Plans (ABP) Processing
Tutorial 8: Developing an Excel Application
Excel Tutorial 6 Managing Multiple Worksheets and Workbooks
Templates and Styles Excel Advanced. Templates are pre- designed and formatted spreadsheets –They provide consistency of layout/structure –They.
SIS – NBS Online Specimen Tracking System Training
10 February Event Monitoring and Event File Maintenance.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Introduction to Programming Environment Using MetroWerks CodeWarrior and Palm Emulator.
SKP8CMINI-15,17 Tutorial 1 Software Development Process using HEW4
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 1 Introduction.
M16C/Tiny SKP Tutorial 1 Software Development Process using HEW4
Cummins® Inc. Update Manager 3.0 Training Electronic Service Tools.
Introduction Purpose Objectives Content Learning Time
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
CHAPTER © 2011 The McGraw-Hill Companies, Inc. All rights reserved. 3 Introduction to Medisoft.
© 2009 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Career Education Computers in the Medical Office Chapter 3: Introduction to.
CHAPTER 1 XNA Game Studio 4.0. Your First Project A computer game is not just a program—it is also lots of other bits and pieces that make playing the.
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course provides an overview of the installation and.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training course describes how to configure the the C/C++ compiler options.
CCS APPS CODE COVERAGE. CCS APPS Code Coverage Definition: –The amount of code within a program that is exercised Uses: –Important for discovering code.
Introduction Purpose This course describes the process of installing the KPIT GNU toolchain on your PC. Objective Learn how easy it is to get information.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training module provides an overview of optimization techniques used in.
Workbench Overview Dwight Deugo Nesa Matic
© 2008 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Introduction to HP Availability Manager.
In the next step you will enter some data records into the table. This can be done easily using the ‘Data Browser’. The data browser can be accessed via.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  The course describes the performance analysis and profiling tools.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
Active-HDL Interfaces Debugging C Code Course 10.
Design Verification Code and Toggle Coverage Course 7.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training module provides an overview of debugging features.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course gives an overview of the Toolchain feature of the High.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
1.Introduction to SPSS By: MHM. Nafas At HARDY ATI For HNDT Agriculture.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course explains how to use section setting and memory.
1 Introduction Purpose  This course gives an overview of assembler settings of the High-performance Embedded Workshop (HEW), used for developing software.
When you run a scenario, the Vusers on each host machine use the host’s IP address. You can define multiple IP addresses on a host machine to emulate a.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course explains how to use Mapview, a utility program for the.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the Project Generator function.
2 Copyright © 2004, Oracle. All rights reserved. Running a Forms Developer Application.
What Is Firefox? __________ is a Web ___________ that you use to search for and view Web pages, save pages for use in the future, and maintain a list.
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
Running a Forms Developer Application
Chapter 2: The Visual Studio .NET Development Environment
Introduction Purpose Objectives Content Learning Time
Important terms Black-box testing White-box testing Regression testing
Important terms Black-box testing White-box testing Regression testing
Presentation transcript:

© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course describes Coverage, a utility that is used with the High-performance Embedded Workshop (HEW) development environment for microcontrollers (MCUs) from Renesas Technology Corp. Objectives  Understand the purpose of Code Coverage analysis.  Know the types of information provided by the Coverage utility.  Learn how to set up and use the Coverage utility during program development. Content  22 pages  3 questions Learning Time  35 minutes

© 2008, Renesas Technology America, Inc., All Rights Reserved 2 Purpose of Coverage Analysis  Determines how much programming code is verified or covered by testing  Has a threefold purpose: –Locate areas of program not yet covered by testing –Identify and remove redundant test cases that do not improve coverage –Establish a quantitative measure of coverage that serves as an indirect measure of quality  Is provided by in HEW by the Coverage debugging feature

© 2008, Renesas Technology America, Inc., All Rights Reserved 3 Types of Coverage C0 and C1 are the minimum test criteria for unit testing as defined by IEEE. S1 – Call-pair Coverage Determines whether all connections between calling function and called function have been tried S0 – Module Coverage Determines whether all functions have been tested C1 – Branch Coverage Determines whether all logic conditions have been evaluated C0 – Statement Coverage Determines whether all lines of code have been tested

© 2008, Renesas Technology America, Inc., All Rights Reserved 4 Condition B Condition A Branch coverage (C1): A piece of code is 100% covered when each branch of an “If” statement has been executed at least once. Basic Coverage Measurements Statement coverage (C0): A line of code is “covered” if the test case has touched any part of it. Condition B Condition A Test Path

© 2008, Renesas Technology America, Inc., All Rights Reserved 6 Requires hardware emulation tool Additional acquisition information such as reading memory, writing to memory, etc. “Data Coverage” window Requires hardware emulation tool C0, C1“Code Coverage” window E6000H AE5 Emulator debugger C0, C1“Coverage” window Simulator debugger RemarkType of CoverageCoverage component Debugger platform Obtaining Coverage Information

© 2008, Renesas Technology America, Inc., All Rights Reserved 7 Simulator Coverage Window Open Coverage window – Invoke HEW – Generate a new workspace or open an existing workspace – Load a debugger session of simulator and download a debug module  Choose - View  Code  Coverage or  Click the Coverage toolbar button to open the Coverage dialog box Start address End address

© 2008, Renesas Technology America, Inc., All Rights Reserved 8  Open a New Window 1. Set Coverage Range by specifying Start and End address of coverage information display. (Note: When a prefix is omitted, value is input in hexadecimal.) 2. Set Coverage Range by specifying Source File (type.c or.cpp)  Use information from existing Coverage information file Setting Coverage Range When Coverage window is open, within the specified measurement range, addresses are specified directly and all functions within the selected file are set. When the Coverage window is subsequently closed, specified settings and conditions are cleared from memory. Start address End address

© 2008, Renesas Technology America, Inc., All Rights Reserved 9 Coverage Specified By Address Percentage of instructions executed within the range Number of times a particular instruction was executed Execution status of conditional branch instructions T: A branch occurred because the condition was satisfied F: No branch occurred because the condition was not satisfied C0 Coverage Information Address range C1 Coverage Information

© 2008, Renesas Technology America, Inc., All Rights Reserved 10 Selecting File to be Analyzed

© 2008, Renesas Technology America, Inc., All Rights Reserved 11 Calculating C0 Let n = Size of the address range [number of instructions] Let m = Number of coverage data with “Times” >0 [number of instructions executed at least once] Then Percent of Coverage = (m / n) x 100%

© 2008, Renesas Technology America, Inc., All Rights Reserved 13 Choose Go to Address... to open the Go To Address dialog box. This dialog box changes the address displayed in the Coverage window. Changing the Display Address Choose View Source from the pop-up menu to open the Editor window and to display the Editor window corresponding to the cursor location in the Coverage window. Viewing the Source Window Select Enable Coverage from the pop- up menu and execute the program to acquire coverage information. Acquiring Coverage Information Coverage Window Operation

© 2008, Renesas Technology America, Inc., All Rights Reserved 14 Specifying the Coverage Range with Start and End Addresses Select Start address. When a prefix is omitted, the value is entered in hexadecimal. Select End address. When a prefix is omitted, the value is entered in hexadecimal. Click OK to change the coverage range. Specifying the Coverage Range with a Source File Select File and enter source file (.c or.cpp) in the current project. Functions in the specified file can be set as the coverage range. If the file type is omitted,.c is added. [Nevertheless, the file type must be either.c or.cpp.] A placeholder or Browse button is available. Click OK to change the coverage range. Specify Coverage Range

© 2008, Renesas Technology America, Inc., All Rights Reserved 15 Clearing Coverage Information Choose Clear Data from the pop-up menu to clear the acquired coverage information. Saving Coverage Information in a File Choose Save Data... from the pop-up menu to open the Save Data dialog box, which allows the user to save the coverage information in a file. Saving Coverage Data Dialog Box When File then Save Session menu options are selected, the Save Coverage Data dialog box appears, which allows the Coverage window data to be saved in a single file or in separate files. Clear/Save Coverage Information If you used a source file to specify the Coverage range, you won ’ t be able to save all Coverage windows in a single file.

© 2008, Renesas Technology America, Inc., All Rights Reserved 16 Loading Data The placeholder or Browse button can be used. Only.cov files can be loaded. If a file name extension other than.cov is specified, an error message is displayed. Updating Information Choose Refresh from the pop-up menu to update the Coverage window to the latest information. Stopping Updates Choose Lock Refresh from the pop-up menu to update Times and Pass only when program execution stops. Memory accesses to update instruction codes in the Coverage window are stopped. Load/Update Coverage Information

© 2008, Renesas Technology America, Inc., All Rights Reserved 17 Displaying Coverage Results Covered Not covered

© 2008, Renesas Technology America, Inc., All Rights Reserved 18 Specifying Coverage Range with Start and End Addresses Emulator Code Coverage Specifying Coverage Range with a Source File

© 2008, Renesas Technology America, Inc., All Rights Reserved 19 Emulator Data Coverage E_OVR Overwriting by the “eepmov.b” instruction E_WR Writing by the “eepmov.b” instruction E_ER Erasing by the “eepmov.b” instruction WR Writing to memory RD Reading memory Area Memory area (ROM, RAM, or EEPROM) Address Address value Data Data value Detail Detailed information per byte Information

© 2008, Renesas Technology America, Inc., All Rights Reserved 20 Coverage Analysis Guidelines 1.Set desired test coverage level (%) 2.Create and run test cases 3.Collect coverage information Verify results with test cases Performing debugging Obtain coverage data 4.Repeat process until target coverage level is achieved

© 2008, Renesas Technology America, Inc., All Rights Reserved 22 Purpose of coverage analysis Basic measurement concepts Setting up and operating HEW Coverage utility Coverage analysis guidelines Course Summary Download a free evaluation copy of HEW at: