# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
# ident "@(#)README.exit_time_string 1.2 06/07/26 SMI"
# Using the 'exit_string' and 'time_string' features
# to time the simulation to, and optionally exit upon
# a user defined string occurring on the console
To enable these features, edit the legion config file.
Modify the legion config file and add either an 'exit_string' or 'time_string'
definition to the dumbserial directive.
'exit_string' - display time from sim start to when the string first occurs
on the console AND exit the sim
'time_string' - display time from sim start to when the string appears on the
console. Simulation will continue and console will continue
to look for this string on the console until the simulation
o Only a single exit_string OR time_string definition is allowed.
o If time_string is specified, time will be reported on every occurrence
o An Ascii number (0 - 127) can be specified as a time_string. This
allows for the time stamp to be printed for each newline (ascii 13);
Edit your legion conf file to include the following as part of your
To time the simulation and exit upon 'login:'
device "dumbserial" PUART0 +0x50 {
To time the simulation to 'login:' (simulation will continue):
device "dumbserial" PUART0 +0x50 {
Print time /instruction counts on every newline character on the console:
device "dumbserial" PUART0 +0x50 {