Changeset 401 for soft/giet_vm/giet_python
- Timestamp:
- Aug 26, 2014, 4:11:33 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_python/genmap
r371 r401 32 32 33 33 from optparse import OptionParser 34 35 34 from mapping import * 36 37 from transpose import *38 from sort import *39 from convol import *40 35 41 36 import sys … … 75 70 help = 'define pathname for the map.bin & vsegs.ld file ' ) 76 71 72 parser.add_option( '--hard', type = 'string', dest = 'hard_path', 73 help = 'define pathname for the hard_config.h file ' ) 74 77 75 parser.add_option( '--xml', type = 'string', dest = 'xml_path', 78 76 help = 'define pathname for the map.xml file' ) … … 107 105 almos_path = options.almos_path # path for arch.bib file 108 106 giet_path = options.giet_path # path for map.bin & vsegs.ld files 107 hard_path = options.hard_path # path for the hard_config.h file 109 108 110 109 arch_path = options.arch_path # path to selected architecture … … 138 137 ###################################################################################### 139 138 140 if ( map_transpose ): 141 transpose( mapping ) 139 if ( map_transpose ): 140 app = __import__( 'transpose' ) 141 app.transpose( mapping ) 142 142 print '[genmap] application "transpose" loaded' 143 143 144 144 if ( map_sort ): 145 sort( mapping ) 145 app = __import__( 'sort' ) 146 app.sort( mapping ) 146 147 print '[genmap] application "sort" loaded' 147 148 148 149 if ( map_convol ): 149 convol( mapping ) 150 app = __import__( 'convol' ) 151 app.convol( mapping ) 150 152 print '[genmap] application "convol" loaded' 151 153 … … 205 207 print '[genmap] %s generated for giet_vm' % pathname 206 208 209 ###################################################################################### 210 # Generate hard_config.h file if required. 211 ###################################################################################### 212 213 if ( hard_path != None ): 214 215 pathname = hard_path + '/hard_config.h' 216 f = open ( pathname, 'w' ) 217 f.write( mapping.hard_config() ) 218 print '[genmap] %s generated for %s' % (pathname, arch_path) 219
Note: See TracChangeset
for help on using the changeset viewer.