-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
48 lines (36 loc) · 1.38 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import os, sys
# Pre: Requires correct directory of benchmarks in variable path
# Post: Creates list of benchmarks
# path = 'C:\\Users\\NinetyBear\\Documents\\Visual Studio 2015\\Projects\\ONoC Simulator\\PythonApplication1\\Benchmark Data\\16-core'
# dirs = os.listdir(path)
# benchmarks = []
# benchmarksOnly = []
# Appends all benchmarks in directory into one list
# for file in dirs:
# benchmarks.append(file)
# benchmarksOnly.append(file)
# for i in range(0,len(benchmarks)):
# benchmarks[i] = path + '\\' + benchmarks[i]
activeReq = []
nodestate = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
OCC = 40 #GHz
ECC = 2 #GHz
packetSize = 8 #bits
nodeCount = 16
weighted_cutoff = 9 # max nodes allowed to be bypassed on furthest path
logFile = 'flow_barnes.log' # the log file that will be tested
weighted_cutoff = 9 # max nodes allowedd to be bypassed on furthest path
#Global time constants to account for certain processes.
EccToOcc = OCC/ECC
tBuffer = 1 *EccToOcc
tMUX = 1 *EccToOcc
tSequence = 1 *EccToOcc
tSchedule = 1 *EccToOcc
tInitialize = tBuffer + tMUX + tSequence + tSchedule
tOpenChannels = 1 *EccToOcc
tCloseChannels = 1 *EccToOcc
tInitialize = tBuffer + tMUX + tSequence + tSchedule
tChannelAloc = tOpenChannels + tCloseChannels
#Global clock cycle constant for tracking t clock intervals
t = 0
#FUCK