Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / legion / docs / readmes / README.exit_time_string
CommitLineData
920dae64
AT
1#
2# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3# Use is subject to license terms.
4#
5# ident "@(#)README.exit_time_string 1.2 06/07/26 SMI"
6#
7# Using the 'exit_string' and 'time_string' features
8# to time the simulation to, and optionally exit upon
9# a user defined string occurring on the console
10#
11
12To enable these features, edit the legion config file.
13
14Modify the legion config file and add either an 'exit_string' or 'time_string'
15definition to the dumbserial directive.
16
17'exit_string' - display time from sim start to when the string first occurs
18 on the console AND exit the sim
19
20'time_string' - display time from sim start to when the string appears on the
21 console. Simulation will continue and console will continue
22 to look for this string on the console until the simulation
23 exits.
24
25NOTES:
26
27o Only a single exit_string OR time_string definition is allowed.
28
29o If time_string is specified, time will be reported on every occurrence
30of the string.
31
32o An Ascii number (0 - 127) can be specified as a time_string. This
33 allows for the time stamp to be printed for each newline (ascii 13);
34
35EXAMPLES:
36
37Edit your legion conf file to include the following as part of your
38dumbserial directive:
39
40To time the simulation and exit upon 'login:'
41 // console
42 device "dumbserial" PUART0 +0x50 {
43 ...
44 exit_string "login:";
45 }
46
47To time the simulation to 'login:' (simulation will continue):
48 // console
49 device "dumbserial" PUART0 +0x50 {
50 ...
51 time_string "login:";
52 }
53
54Print time /instruction counts on every newline character on the console:
55 // console
56 device "dumbserial" PUART0 +0x50 {
57 ...
58 time_string 13;
59 }
60