- Timestamp:
- Aug 27, 2014, 10:50:02 AM (10 years ago)
- Location:
- branches/reconfiguration/platforms/tsar_generic_iob/scripts
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/scripts/arch.py
r770 r774 1 1 #!/usr/bin/env python 2 2 import sys 3 3 from mapping import * 4 4 … … 344 344 return mapping 345 345 346 def main(x, y, p, hard_path, xml_path): 347 mapping = arch( x_size = x, 348 y_size = y, 349 nb_procs = p) 350 351 with open(xml_path, "w") as map_xml: 352 map_xml.write(mapping.xml()) 353 with open(hard_path, "w") as hard_config: 354 hard_config.write(mapping.hard_config()) 355 346 356 ################################# platform test ####################################################### 347 357 348 358 if __name__ == '__main__': 349 350 mapping = arch( x_size = 2, 351 y_size = 2, 352 nb_procs = 2 ) 353 354 # print mapping.netbsd_dts() 355 356 print mapping.xml() 357 358 # print mapping.giet_vsegs() 359 359 main( x_size = int(sys.argv[1]), 360 y_size = int(sys.argv[2]), 361 nb_procs = int(sys.argv[3])) 360 362 361 363 # Local Variables:
Note: See TracChangeset
for help on using the changeset viewer.