Changeset 411 for soft/giet_vm/giet_python/genmap
- Timestamp:
- Sep 29, 2014, 11:56:47 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_python/genmap
r401 r411 13 13 # 2) The optionals "map.bin" and vsegs.ld" files are used to configure the GietVM. 14 14 # 3) The optional "netbsd.dts" file can be used to configure NetBSD. 15 # 4) The optional "arch.bib" file can be used to configure ALMOS. 16 # 5) An optional "map.xml" file can be generated for debug. 15 # 4) The optional "netbsd.dts" file can be used to configure NetBSD. 16 # 5) The optional "arch.bib" file can be used to configure ALMOS. 17 # 6) An optional "map.xml" file can be generated for debug. 17 18 ####################################################################################### 18 19 # The hardware parameters are: … … 57 58 help = 'define number of processors per cluster' ) 58 59 60 parser.add_option( '--fbf', type = 'int', dest = 'fbf_size', 61 default = 128, 62 help = 'define frame buffer width and heigth' ) 63 59 64 parser.add_option( '--v', action = 'store_true', dest = 'verbose', 60 65 default = False, … … 63 68 parser.add_option( '--netbsd', type = 'string', dest = 'netbsd_path', 64 69 help = 'define pathname for the netbsd.dts file' ) 70 71 parser.add_option( '--linux', type = 'string', dest = 'linux_path', 72 help = 'define pathname for the linux.dts file' ) 65 73 66 74 parser.add_option( '--almos', type = 'string', dest = 'almos_path', … … 99 107 y_size = options.y_size # number of clusters in a column 100 108 nprocs = options.nprocs # number of processors in a cluster 109 fbf_size = options.fbf_size # frame buffer width & heigth 101 110 102 111 verbose = options.verbose # report on map.bin generation if True 103 112 104 113 netbsd_path = options.netbsd_path # path for netbsd.dts file 114 linux_path = options.linux_path # path for linux.dts file 105 115 almos_path = options.almos_path # path for arch.bib file 106 116 giet_path = options.giet_path # path for map.bin & vsegs.ld files … … 130 140 131 141 # build mapping calling the function (function name) 132 mapping = select.arch( x_size, y_size, nprocs )142 mapping = select.arch( x_size, y_size, nprocs, fbf_size ) 133 143 print '[genmap] platform %s build' % mapping.name 134 144 … … 172 182 f = open ( pathname, 'w' ) 173 183 f.write( mapping.netbsd_dts() ) 174 print '[genmap] %s generated for netbsd' % pathname 184 print '[genmap] %s generated' % pathname 185 186 ###################################################################################### 187 # Generate linux.dts file if required. 188 # It is used for LINUX configuration. 189 ###################################################################################### 190 191 if ( (linux_path != None) and (arch_path != None) ): 192 pathname = linux_path + '/linux.dts' 193 f = open ( pathname, 'w' ) 194 f.write( mapping.linux_dts() ) 195 print '[genmap] %s generated' % pathname 175 196 176 197 ######################################################################################
Note: See TracChangeset
for help on using the changeset viewer.