system.mem_ranges = [mem_range]
# do not worry about reserving space for the backing store
-mmap_using_noreserve = True
+system.mmap_using_noreserve = True
# force a single channel to match the assumptions in the DRAM traffic
# generator
page_size = system.mem_ctrls[0].devices_per_rank.value * \
system.mem_ctrls[0].device_rowbuffer_size.value
-# match the maximum bandwidth of the memory, the parameter is in ns
-# and we need it in ticks
+# match the maximum bandwidth of the memory, the parameter is in seconds
+# and we need it in ticks (ps)
itt = system.mem_ctrls[0].tBURST.value * 1000000000000
# assume we start at 0
# Authors: Andreas Hansson
try:
-
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
- from matplotlib.ticker import LinearLocator, FormatStrFormatter
import matplotlib.pyplot as plt
import numpy as np
except ImportError:
try:
stats = open(sys.argv[2] + '/stats.txt', 'r')
except IOError:
- print "Failed to open ", sys.argv[1] + '/stats.txt', " for reading"
+ print "Failed to open ", sys.argv[2] + '/stats.txt', " for reading"
exit(-1)
try:
simout = open(sys.argv[2] + '/simout', 'r')
except IOError:
- print "Failed to open ", sys.argv[1] + '/simout', " for reading"
+ print "Failed to open ", sys.argv[2] + '/simout', " for reading"
exit(-1)
# Get the burst size, number of banks and the maximum stride from