SIMULATOR

This addendum contains the following sections:

Introduction
Executable Name
Supported Features
Mapping Memory
State Counter
Coverage
Restrictions

1 Introduction

This addendum contains information specific to the simulator version of CrossView Pro for the R8C.

2 Executable Name

The following CrossView Pro executable is delivered with the package:

    xfwr8c.exe CrossView Pro Debugger Simulator.

The simulator is delivered as a separate DLL within the package:

    disimr8c.dll CrossView Pro Debugger Simulator.

3 Supported Features

Except for the restrictions mentioned in the next section, the simulator version of the debugger cleanly supports all the standard features of CrossView Pro, including single stepping, code breakpoints, data breakpoints, trace support, C expression evaluation, code and data coverage, profiling and record/playback capability. With respect to setting breakpoints the simulator version of the debugger is capable of supporting all breakpoint types, including separate data-read and data-write breakpoints. Each of these breakpoints can be placed on any of the memory addresses.

All instructions listed in the R8C/Tiny Series Software Manual are supported. The granularity for timing measurements is one instruction state.

Because this is a simulator version, you do not have to setup a serial communication at startup, as with an emulator.

3.1 Mapping Memory

The simulator version of the debugger can use the linker generated memory definition file (with .mdf extension) to determine how much memory must be allocated from the system and how logical addresses are mapped to physical addresses. In the Load Symbolic Debug dialog, select Use memory definition file to specify that CrossView Pro must process the application specific memory definition before a new file is loaded and/or downloaded to the target.

When you use EDE, the memory settings are automatically transferred to the debugger. All memory mappings of your applications are automatically done by the debugger.

3.2 State Counter

In addition to the standard features of CrossView Pro, the simulator version executes the R8C instruction set and can perform state counting. For this purpose the simulator has a state counter, which can be monitored. The first one is the regular 'state counter', this counter can be monitored in the register window where it is shown as 'CCNT' and it can also be accessed through the register $ccnt.

3.3 Coverage

The simulator traces all memory access performed during program execution. This feature can be switched on or off. If you are not interested in coverage information you should turn off this feature because gathering coverage data will slow down the execution speed of the simulator. The simulator differentiates between data read, data write and instruction fetch. CrossView Pro shows the gathered coverage data through various windows and dialogs.

4 Restrictions

Facilities for background mode are absent in the simulator version of CrossView Pro. As a consequence, the CrossView Pro commands CB, st, u, and wt for background mode, are not available. The >& command to record target communication is not available. Also, the simulator version of the debugger does not support command line function calling.


Copyright © 2003 Altium BV