Using ZISIM
7-3
An example interactive simulation session is described in
Section 7.4,
“Example Session Using ZISIM”
. Refer also to the description of using
ZISIM use as the target of the SDK’s Debugger in
Section 9.2.1,
“Functional-Accurate Simulator Connection.”
Table 7.1
ZISIM Command-line Options
Option
Description
-c
NUM
Limits number of executed instructions to
NUM
. By default,
NUM
=
2000000000. Execution continues until a breakpoint is reached or the
number of executed instructions hit the limit. Use this option to ensure
termination of an algorithm.
-h
Prints brief usage summary.
-i
mode_register
=
value
Initializes an architectural control (mode) register with specified value.
Note that the control register is written without its usual percent (
%
)
sign, and there are no spaces around the equal sign (
=
). For example,
the option to set %SMODE control register is:
-i smode=0x1234
.
The option to set r0 register is
-i r0=0x9876
.
Refer to
Appendix B, "ZSP400 Control Registers"
for information on
ZSP400 core-based device control registers.
-m
Enables memory trace. ZISIM prints a trace of the execution program
to standard output whenever a write to a memory occurs. The format
of this output is similar to option
-t
.
-noiboot
Fetches instructions from external ROM space. If you do not specify
this option, instructions are fetched from internal ROM space. ROM is
mapped from 0xf800 to 0xffff. This option is specific to zisim400.
-radix {dec|hex}
Displays data in specified radix, either decimal or hexadecimal.
-
reg
Enables register trace. All the architectural registers will be displayed
after executing an instruction.
-s
sourcefile
Reads all the simulator commands from file.
-t
Enables flow trace. ZISIM prints a trace of the executing program to
standard output. The information printed includes the instruction
sequence number, instruction address, the disassembled instruction
and operands, and the resulting architectural state. Example output for
the
-t
option is shown in
Section 7.4, “Example Session Using ZISIM,”
page 7-24.
-exec
Invokes the simulator in noninteractive mode.
-v
Prints version number and exit.