misc: 'sim{out/err}' -> 'sim{out/err}.txt'
By default, the --stderr-file and --stdout-file arguments were directing the simulator output to files named "simerr" and "simout" respectively if an output redirect was requested. A small annoyance is these files lack an extension meaning programs refuse to open them, or to do so without some additional effort. On many systems they are assumed to scripts. This patch adds the .txt extension to both, thus clearly indicating to other programs these are text files and can be opened to be read as such. Change-Id: Iff5af4a9e6966b4467d005a029dbf401099fbd35
This commit is contained in:
@@ -47,7 +47,7 @@ import sys
|
||||
import re
|
||||
|
||||
# This script is intended to post process and plot the output from
|
||||
# running configs/dram/lat_mem_rd.py, as such it parses the simout and
|
||||
# running configs/dram/lat_mem_rd.py, as such it parses the simout.txt and
|
||||
# stats.txt to get the relevant data points.
|
||||
def main():
|
||||
|
||||
@@ -62,9 +62,9 @@ def main():
|
||||
exit(-1)
|
||||
|
||||
try:
|
||||
simout = open(sys.argv[1] + "/simout", "r")
|
||||
simout = open(sys.argv[1] + "/simout.txt", "r")
|
||||
except IOError:
|
||||
print("Failed to open ", sys.argv[1] + "/simout", " for reading")
|
||||
print("Failed to open ", sys.argv[1] + "/simout.txt", " for reading")
|
||||
exit(-1)
|
||||
|
||||
# Get the address ranges
|
||||
@@ -85,7 +85,7 @@ def main():
|
||||
simout.close()
|
||||
|
||||
if not got_ranges:
|
||||
print("Failed to get address ranges, ensure simout is up-to-date")
|
||||
print("Failed to get address ranges, ensure simout.txt is up-to-date")
|
||||
exit(-1)
|
||||
|
||||
# Now parse the stats
|
||||
|
||||
@@ -79,9 +79,9 @@ def main():
|
||||
exit(-1)
|
||||
|
||||
try:
|
||||
simout = open(sys.argv[2] + "/simout", "r")
|
||||
simout = open(sys.argv[2] + "/simout.txt", "r")
|
||||
except IOError:
|
||||
print("Failed to open ", sys.argv[2] + "/simout", " for reading")
|
||||
print("Failed to open ", sys.argv[2] + "/simout.txt", " for reading")
|
||||
exit(-1)
|
||||
|
||||
# Get the burst size, number of banks and the maximum stride from
|
||||
@@ -102,7 +102,9 @@ def main():
|
||||
simout.close()
|
||||
|
||||
if not got_sweep:
|
||||
print("Failed to establish sweep details, ensure simout is up-to-date")
|
||||
print(
|
||||
"Failed to establish sweep details, ensure simout.txt is up-to-date"
|
||||
)
|
||||
exit(-1)
|
||||
|
||||
# Now parse the stats
|
||||
|
||||
Reference in New Issue
Block a user