-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathSConscript
175 lines (166 loc) · 6.33 KB
/
SConscript
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# -*- mode:python -*-
# Copyright (C) 1998-2011 by Galerna Project, the University of
# Cantabria, Spain.
#
# This file is part of the TOPAZ network simulator, originallty developed
# at the Unviersity of Cantabria
#
# TOPAZ shares a large proportion of code with SICOSYS which was
# developed by V.Puente and J.M.Prellezo
#
# TOPAZ has been developed by P.Abad, L.G.Menezo, P.Prieto and
# V.Puente
#
# --------------------------------------------------------------------
#
# If your use of this software contributes to a published paper, we
# request that you (1) cite our summary paper that appears on our
# website (http://www.atc.unican.es/topaz/) and (2) e-mail a citation
# for your published paper to [email protected]
#
# If you redistribute derivatives of this software, we request that
# you notify us and either (1) ask people to register with us at our
# website (http://www.atc.unican.es/topaz/) or (2) collect registration
# information and periodically send it to us.
#
# --------------------------------------------------------------------
#
# TOPAZ is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License as published by the Free Software Foundation.
#
# TOPAZ is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the TOPAZ simulator; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307, USA
#
# The GNU General Public License is contained in the file LICENSE.
#
#
# *************************************************************************
# :
# This python script is employed for Topaz and Gem5 integration.
# It is called from Gem5 SConstruct to build Topaz as an external
# library that can be employed by Ruby network components.
# :
# *************************************************************************
# end of header
import os, subprocess
Import('main')
topaz_files = []
def TopazFile(filename):
topaz_files.append(File(filename))
TopazFile('src/TPZBase.cpp')
TopazFile('src/TPZAttribute.cpp')
TopazFile('src/TPZBuilder.cpp')
TopazFile('src/TPZComponent.cpp')
TopazFile('src/TPZComponentId.cpp')
TopazFile('src/TPZCompositeComponent.cpp')
TopazFile('src/TPZConnection.cpp')
TopazFile('src/TPZConnectionDelay.cpp')
TopazFile('src/TPZConst.cpp')
TopazFile('src/TPZConsumer.cpp')
TopazFile('src/TPZConsumerFlow.cpp')
TopazFile('src/TPZConsumerFlowBless.cpp')
TopazFile('src/TPZConsumerFlowReactive.cpp')
TopazFile('src/TPZConsumerFlowRespTimeSim.cpp')
TopazFile('src/TPZCrossbar.cpp')
TopazFile('src/TPZCrossbarFlow.cpp')
TopazFile('src/TPZCrossbarFlowCT.cpp')
TopazFile('src/TPZCrossbarFlowCTMux.cpp')
TopazFile('src/TPZCrossbarFlowMux.cpp')
TopazFile('src/TPZCrossbarFlowVC.cpp')
TopazFile('src/TPZCrossbarFlowVCMux.cpp')
TopazFile('src/TPZCrossbarFlowVCMuxOpt.cpp')
TopazFile('src/TPZCrossbarFlowVCOpt.cpp')
TopazFile('src/TPZCrossbarFlowVCTorus.cpp')
TopazFile('src/TPZCrossbarFlowVCTorusMux.cpp')
TopazFile('src/TPZCrossbarFlowWH.cpp')
TopazFile('src/TPZDemultiplexor.cpp')
TopazFile('src/TPZDemultiplexorFlow.cpp')
TopazFile('src/TPZError.cpp')
TopazFile('src/TPZEvent.cpp')
TopazFile('src/TPZFicheroLog.cpp')
TopazFile('src/TPZFifoMemory.cpp')
TopazFile('src/TPZFifoMemoryFlow.cpp')
TopazFile('src/TPZFifoMemoryFlowCT.cpp')
TopazFile('src/TPZFifoMemoryFlowCTMcast.cpp')
TopazFile('src/TPZFifoMemoryFlowDamq.cpp')
TopazFile('src/TPZFifoMemoryFlowWH.cpp')
TopazFile('src/TPZFifoMemoryFlowWHMcast.cpp')
TopazFile('src/TPZFlow.cpp')
TopazFile('src/TPZGlobalData.cpp')
TopazFile('src/TPZIniFile.cpp')
TopazFile('src/TPZInjector.cpp')
TopazFile('src/TPZInjectorFlowCT.cpp')
TopazFile('src/TPZInjectorFlowCTUC.cpp')
TopazFile('src/TPZInjectorFlow.cpp')
TopazFile('src/TPZInjectorFlowUC.cpp')
TopazFile('src/TPZInputStage.cpp')
TopazFile('src/TPZInputStageFlow.cpp')
TopazFile('src/TPZInterfaz.cpp')
TopazFile('src/TPZMain.cpp')
TopazFile('src/TPZMessage.cpp')
TopazFile('src/TPZMultiplexor.cpp')
TopazFile('src/TPZMultiplexorFlow.cpp')
TopazFile('src/TPZMultiportFifo.cpp')
TopazFile('src/TPZMultiportFifoFlow.cpp')
TopazFile('src/TPZMultiportIOFifo.cpp')
TopazFile('src/TPZMultiportIOFifoFlow.cpp')
TopazFile('src/TPZNetwork.cpp')
TopazFile('src/TPZNetworkBuilder.cpp')
TopazFile('src/TPZNetworkMesh.cpp')
TopazFile('src/TPZNetworkMidimew.cpp')
TopazFile('src/TPZNetworkSquareMidimew.cpp')
TopazFile('src/TPZNetworkTorus.cpp')
TopazFile('src/TPZNotifier.cpp')
TopazFile('src/TPZObserver.cpp')
TopazFile('src/TPZOptions.cpp')
TopazFile('src/TPZOutputStage.cpp')
TopazFile('src/TPZOutputStageFlow.cpp')
TopazFile('src/TPZPort.cpp')
TopazFile('src/TPZPortInput.cpp')
TopazFile('src/TPZPortOutput.cpp')
TopazFile('src/TPZPosition.cpp')
TopazFile('src/TPZRouter.cpp')
TopazFile('src/TPZRouterBuilder.cpp')
TopazFile('src/TPZRouting.cpp')
TopazFile('src/TPZRoutingFlow.cpp')
TopazFile('src/TPZRoutingFlowBubble.cpp')
TopazFile('src/TPZRoutingMuxed.cpp')
TopazFile('src/TPZRoutingMuxedFlow.cpp')
TopazFile('src/TPZRoutingMuxedFlowBubble.cpp')
TopazFile('src/TPZRoutingMuxedFlowBubbleAdap.cpp')
TopazFile('src/TPZRunTimeInformation.cpp')
TopazFile('src/TPZRunnableComponent.cpp')
TopazFile('src/TPZSimpleRouter.cpp')
TopazFile('src/TPZSimpleRouterFlow.cpp')
TopazFile('src/TPZSimpleRouterFlowBinoc.cpp')
TopazFile('src/TPZSimpleRouterFlowBless.cpp')
TopazFile('src/TPZSimpleRouterFlowDAMQ.cpp')
TopazFile('src/TPZSimpleRouterFlowFast.cpp')
TopazFile('src/TPZSimpleRouterFlowLigero.cpp')
TopazFile('src/TPZSimpleRouterFlowLigeroMcast.cpp')
TopazFile('src/TPZSimpleRouterFlowTorus.cpp')
TopazFile('src/TPZSimpleRouterFlowWH.cpp')
TopazFile('src/TPZSimulation.cpp')
TopazFile('src/TPZSimulationBuilder.cpp')
TopazFile('src/TPZSimulator.cpp')
TopazFile('src/TPZString.cpp')
TopazFile('src/TPZTag.cpp')
TopazFile('src/TPZThread.cpp')
TopazFile('src/TPZTrafficPattern.cpp')
TPZenv = main.Clone()
TPZenv.Prepend(CPPPATH=Dir('../../ext/TOPAZ/inc'))
TPZenv.Replace(CCFLAGS=['-Wno-deprecated','-O3'])
TPZenv.Append(CPPDEFINES = ['NO_TRAZA'])
# Build topaz as a static library
TPZenv.Library('tpz', [TPZenv.SharedObject(f) for f in topaz_files])
main.Prepend(CPPPATH=Dir('../../ext/TOPAZ/inc'))
main.Append(LIBS=['tpz'])
main.Prepend(LIBPATH=[Dir('.')])