Changeset 591
- Timestamp:
- Jul 8, 2015, 4:02:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_python/genmap
r580 r591 30 30 ################################################################################### 31 31 # The supported applications are: 32 # - sort 33 # - transpose 32 # - classif 34 33 # - convol 35 # - router36 # - classif34 # - coproc 35 # - dhrystone 37 36 # - display 38 37 # - gameoflife 39 # - coproc 38 # - ocean 39 # - router 40 # - sort 41 # - shell 42 # - transpose 40 43 ################################################################################### 41 44 … … 102 105 ############ supported applications ############################################ 103 106 107 parser.add_option( '--classif', action = 'store_true', dest = 'classif', 108 default = False, 109 help = 'map the "classif" application for the GietVM' ) 110 111 parser.add_option( '--convol', action = 'store_true', dest = 'convol', 112 default = False, 113 help = 'map the "convol" application for the GietVM' ) 114 115 parser.add_option( '--coproc', action = 'store_true', dest = 'coproc', 116 default = False, 117 help = 'map the "coproc" application for the GietVM' ) 118 119 parser.add_option( '--dhrystone', action = 'store_true', dest = 'dhrystone', 120 default = False, 121 help = 'map the "dhrystone" application for the GietVM' ) 122 123 parser.add_option( '--display', action = 'store_true', dest = 'display', 124 default = False, 125 help = 'map the "display" application for the GietVM' ) 126 127 parser.add_option( '--gameoflife', action = 'store_true', dest = 'gameoflife', 128 default = False, 129 help = 'map the "gameoflife" application for the GietVM' ) 130 131 parser.add_option( '--ocean', action = 'store_true', dest = 'ocean', 132 default = False, 133 help = 'map the "ocean" application for the GietVM' ) 134 135 parser.add_option( '--router', action = 'store_true', dest = 'router', 136 default = False, 137 help = 'map the "router" application for the GietVM' ) 138 139 parser.add_option( '--shell', action = 'store_true', dest = 'shell', 140 default = False, 141 help = 'map the "shell" application for the GietVM' ) 142 143 parser.add_option( '--sort', action = 'store_true', dest = 'sort', 144 default = False, 145 help = 'map the "sort" application for the GietVM' ) 146 104 147 parser.add_option( '--transpose', action = 'store_true', dest = 'transpose', 105 148 default = False, 106 149 help = 'map the "transpose" application for the GietVM' ) 107 108 parser.add_option( '--sort', action = 'store_true', dest = 'sort',109 default = False,110 help = 'map the "sort" application for the GietVM' )111 112 parser.add_option( '--convol', action = 'store_true', dest = 'convol',113 default = False,114 help = 'map the "convol" application for the GietVM' )115 116 parser.add_option( '--router', action = 'store_true', dest = 'router',117 default = False,118 help = 'map the "router" application for the GietVM' )119 120 parser.add_option( '--display', action = 'store_true', dest = 'display',121 default = False,122 help = 'map the "display" application for the GietVM' )123 124 parser.add_option( '--classif', action = 'store_true', dest = 'classif',125 default = False,126 help = 'map the "classif" application for the GietVM' )127 128 parser.add_option( '--gameoflife', action = 'store_true', dest = 'gameoflife',129 default = False,130 help = 'map the "gameoflife" application for the GietVM' )131 132 parser.add_option( '--coproc', action = 'store_true', dest = 'coproc',133 default = False,134 help = 'map the "coproc" application for the GietVM' )135 136 parser.add_option( '--ocean', action = 'store_true', dest = 'ocean',137 default = False,138 help = 'map the "ocean" application for the GietVM' )139 150 140 151 ################################################################################### … … 163 174 xml_path = options.xml_path # path for map.xml file 164 175 176 map_classif = options.classif # map "classif" application if True 177 map_convol = options.convol # map "convol" application if True 178 map_coproc = options.coproc # map "coproc" application if True 179 map_dhrystone = options.dhrystone # map "dhrystone" application if True 180 map_display = options.display # map "display" application if True 181 map_gameoflife = options.gameoflife # map "gameoflife" application if True 182 map_ocean = options.ocean # map "ocean" application if True 183 map_router = options.router # map "router" application if True 184 map_shell = options.shell # map "shell" application if True 185 map_sort = options.sort # map "sort" application if True 165 186 map_transpose = options.transpose # map "transpose" application if True 166 map_sort = options.sort # map "sort" application if True167 map_convol = options.convol # map "convol" application if True168 map_router = options.router # map "router" application if True169 map_display = options.display # map "display" application if True170 map_classif = options.classif # map "classif" application if True171 map_gameoflife = options.gameoflife # map "gameoflife" application if True172 map_coproc = options.coproc # map "coproc" application if True173 map_ocean = options.ocean # map "ocean" application if True174 187 175 188 ################################################################################### … … 192 205 193 206 ################################################################################### 194 # complete mapping with application(s) as required 195 ################################################################################### 207 # extend mapping with application(s) as required 208 ################################################################################### 209 210 if ( map_classif ): 211 appli = __import__( 'classif' ) 212 appli.extend( mapping ) 213 print '[genmap] application "classif" will be loaded' 214 215 if ( map_convol ): 216 appli = __import__( 'convol' ) 217 appli.extend( mapping ) 218 print '[genmap] application "convol" will be loaded' 219 220 if ( map_coproc ): 221 appli = __import__( 'coproc' ) 222 appli.extend( mapping ) 223 print '[genmap] application "coproc" will be loaded' 224 225 if ( map_dhrystone ): 226 appli = __import__( 'dhrystone' ) 227 appli.extend( mapping ) 228 print '[genmap] application "dhrystone" will be loaded' 229 230 if ( map_display ): 231 appli = __import__( 'display' ) 232 appli.extend( mapping ) 233 print '[genmap] application "display" will be loaded' 234 235 if ( map_gameoflife ): 236 appli = __import__( 'gameoflife' ) 237 appli.extend( mapping ) 238 print '[genmap] application "gameoflife" will be loaded' 239 240 if ( map_ocean ): 241 appli = __import__( 'ocean' ) 242 appli.extend( mapping ) 243 print '[genmap] application "ocean" will be loaded' 244 245 if ( map_router ): 246 appli = __import__( 'router' ) 247 appli.extend( mapping ) 248 print '[genmap] application "router" will be loaded' 249 250 if ( map_shell ): 251 appli = __import__( 'shell' ) 252 appli.extend( mapping ) 253 print '[geneap] application "shell" will be loaded' 254 255 if ( map_sort ): 256 appli = __import__( 'sort' ) 257 appli.extend( mapping ) 258 print '[genmap] application "sort" will be loaded' 196 259 197 260 if ( map_transpose ): 198 app = __import__( 'transpose' )199 app .transpose( mapping )261 appli = __import__( 'transpose' ) 262 appli.extend( mapping ) 200 263 print '[genmap] application "transpose" will be loaded' 201 202 if ( map_sort ):203 app = __import__( 'sort' )204 app.sort( mapping )205 print '[genmap] application "sort" will be loaded'206 207 if ( map_convol ):208 app = __import__( 'convol' )209 app.convol( mapping )210 print '[genmap] application "convol" will be loaded'211 212 if ( map_router ):213 app = __import__( 'router' )214 app.router( mapping )215 print '[genmap] application "router" will be loaded'216 217 if ( map_display ):218 app = __import__( 'display' )219 app.display( mapping )220 print '[genmap] application "display" will be loaded'221 222 if ( map_classif ):223 app = __import__( 'classif' )224 app.classif( mapping )225 print '[genmap] application "classif" will be loaded'226 227 if ( map_gameoflife ):228 app = __import__( 'gameoflife' )229 app.gameoflife( mapping )230 print '[genmap] application "gameoflife" will be loaded'231 232 if ( map_coproc ):233 app = __import__( 'coproc' )234 app.coproc( mapping )235 print '[genmap] application "coproc" will be loaded'236 237 if ( map_ocean ):238 app = __import__( 'ocean' )239 app.ocean( mapping )240 print '[genmap] application "ocean" will be loaded'241 264 242 265 ###################################################################################
Note: See TracChangeset
for help on using the changeset viewer.