Ignore:
Timestamp:
Mar 28, 2015, 8:04:20 PM (9 years ago)
Author:
alain
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_python/genmap

    r520 r539  
    11#!/usr/bin/env python
    22
    3 #######################################################################################
     3###################################################################################
    44#   file   : genmap
    55#   date   : april 2014
    66#   author : Alain Greiner
    7 #######################################################################################
     7###################################################################################
    88# This generic script maps one or several applications on a specific
    99# instance of the multi-processors/multi-clusters TSAR architecture.
    1010# It generates the files required for hardware and software compilation:
    1111# 1) The "hard_config.h" file is used to generate the top.cpp file (hardware),
    12 #    and to compile the tsar_preloader.elf, the GietVM boot.elf and kernel.elf files.
     12#    and to compile the tsar_preloader.elf, GietVM boot.elf and kernel.elf files.
    1313# 2) The optionals "map.bin" and vsegs.ld" files are used to configure the GietVM.
    1414# 3) The optional "netbsd.dts" file can be used to configure NetBSD.
     
    1616# 5) The optional "arch.bib" file can be used to configure ALMOS.
    1717# 6) An optional "map.xml" file can be generated for debug.
    18 #######################################################################################
     18###################################################################################
    1919# The hardware parameters  are:
    2020#  - x_size    : number of clusters in a row
     
    2323#  - nb_ttys   : number of TTY channels
    2424#  - fbf_size  : frame buffer width & heigth
    25 #######################################################################################
     25###################################################################################
    2626# The supported platforms are:
    2727# - tsar_generic_iob
    2828# - tsar_generic_leti
    2929# - tsar_geberic_mwmr
    30 #######################################################################################
     30###################################################################################
    3131# The supported applications are:
    3232# - sort
     
    3838# - gameoflife
    3939# - coproc
    40 #######################################################################################
     40###################################################################################
    4141
    4242from optparse import OptionParser
     
    4545import sys
    4646
    47 ######################################################################################
     47###################################################################################
    4848#   define command line arguments   
    49 ######################################################################################
     49###################################################################################
    5050
    5151parser = OptionParser()
     
    9696                   help = 'define pathname for the map.xml file' )
    9797
    98 ############  supported applications   ###############################################
     98############  supported applications   ############################################
    9999
    100100parser.add_option( '--transpose', action = 'store_true', dest = 'transpose',
     
    130130                   help = 'map the "coproc" application for the GietVM' )
    131131
    132 ######################################################################################
     132###################################################################################
    133133#   Get command line arguments
    134 ######################################################################################
     134###################################################################################
    135135
    136136(options,args) = parser.parse_args()
     
    163163map_coproc     = options.coproc      # map "coproc" application if True
    164164
    165 ######################################################################################
     165###################################################################################
    166166#   build empty platform (no applications yet)
    167 ######################################################################################
     167###################################################################################
    168168
    169169if   ( arch_path == None  ): 
     
    181181print '[genmap] platform %s build' % mapping.name
    182182
    183 ######################################################################################
     183###################################################################################
    184184#   complete mapping with application(s) as required
    185 ######################################################################################
     185###################################################################################
    186186
    187187if ( map_transpose ):
     
    225225    print '[genmap] application "coproc" will be loaded'
    226226
    227 ######################################################################################
     227###################################################################################
    228228#   Generate xml file if required.
    229229#   It can be used for debug.
    230 ######################################################################################
     230###################################################################################
    231231
    232232if ( xml_path != None ):
     
    236236    print '[genmap] %s generated for debug' % pathname
    237237
    238 ######################################################################################
     238###################################################################################
    239239#   Generate netbsd.dts file if required.
    240240#   It is used for NetBSD configuration.
    241 ######################################################################################
     241###################################################################################
    242242
    243243if ( (netbsd_path != None) and (arch_path != None) ):
     
    247247    print '[genmap] %s generated' % pathname
    248248
    249 ######################################################################################
     249###################################################################################
    250250#   Generate linux.dts file if required.
    251251#   It is used for LINUX configuration.
    252 ######################################################################################
     252###################################################################################
    253253
    254254if ( (linux_path != None) and (arch_path != None) ):
     
    258258    print '[genmap] %s generated' % pathname
    259259
    260 ######################################################################################
     260###################################################################################
    261261#   Generate arch.bib file if required.
    262262#   It is used for ALMOS configuration.
    263 ######################################################################################
     263###################################################################################
    264264
    265265if ( (almos_path != None) and (arch_path != None) ):
     
    269269    print '[genmap] %s generated for almos' % pathname
    270270
    271 ######################################################################################
     271###################################################################################
    272272#   Generate map.bin, giet_vsegs.ld, and hard_config.h files if required.
    273273#   They are used for GietVM compilation and configuration.
    274 ######################################################################################
     274###################################################################################
    275275
    276276if ( (giet_path != None) and (arch_path != None) ):
     
    291291    print '[genmap] %s generated for giet_vm' % pathname
    292292
    293 ######################################################################################
     293###################################################################################
    294294#   Generate hard_config.h file if required.
    295 ######################################################################################
     295###################################################################################
    296296
    297297if ( hard_path != None ):
Note: See TracChangeset for help on using the changeset viewer.