
ZSP SDK Software Development Kit
8-1
Chapter 8
ZSIM Simulator
This chapter describes the ZSP SDK cycle-accurate architecture
simulator.
The ZSP SDK simulator ZSIM is a cycle-accurate simulator for ZSP400
and ZSPG2 architecture-based devices. ZSIM models the architectural
features necessary for cycle-by-cycle tracing of architectural state,
including the execution pipeline, instruction and data caches, internal and
external instruction/data memories, and register files.
8.1 Using ZSIM
ZSIM can be accessed as a target through the debugger or as a stand-
alone program. This chapter describes the interface to ZSIM as a stand-
alone program. ZSIM can be used in batch mode or interactively, as
described in the following subsections. The commands supported in both
modes of operation are described in
Section 8.2, “ZSIM Commands,”
page 8-5
.
8.1.1 Batch Mode
The simulator can be invoked in batch mode from the command line
using the
-exec
option, as shown below.
% zsim[400/g2] executeable_file -exec [options]
The simulator can also be invoked in batch mode using a script file
containing ZSIM commands that load, execute, and gather results for a
specified executable. Script files may contain any valid ZSIM commands.
Comments are allowed and must be preceded by the comment specifier
(
#
). ZSIM ignores all commands between the
#
character and the end of
line. ZSIM also ignores empty lines.