Ignore:
Timestamp:
Feb 8, 2015, 6:44:08 PM (10 years ago)
Author:
alain
Message:

Introduce support for application Gameoflife in genmap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_python/genmap

    r462 r500  
    3535# - classif
    3636# - display
     37# - gameoflife
    3738#######################################################################################
    3839
     
    119120                   help = 'map the "classif" application for the GietVM' )
    120121
     122parser.add_option( '--gameoflife', action = 'store_true', dest = 'gameoflife',     
     123                   default = False,
     124                   help = 'map the "gameoflife" application for the GietVM' )
     125
    121126######################################################################################
    122127#   Get command line arguments
     
    125130(options,args) = parser.parse_args()
    126131
    127 x_size        = options.x_size      # number of clusters in a row
    128 y_size        = options.y_size      # number of clusters in a column
    129 nb_procs      = options.nb_procs    # number of processors in a cluster
    130 nb_ttys       = options.nb_ttys     # number of TTY channels           
    131 fbf_size      = options.fbf_size    # frame buffer width & heigth
    132 
    133 verbose       = options.verbose     # report on map.bin generation if True
    134 
    135 netbsd_path   = options.netbsd_path # path for netbsd.dts file
    136 linux_path    = options.linux_path  # path for linux.dts file
    137 almos_path    = options.almos_path  # path for arch.bib file
    138 giet_path     = options.giet_path   # path for map.bin & vsegs.ld files
    139 hard_path     = options.hard_path   # path for the hard_config.h file
    140 
    141 arch_path     = options.arch_path   # path to selected architecture
    142 
    143 xml_path      = options.xml_path    # path for map.xml file     
    144 
    145 map_transpose = options.transpose   # map "transpose" application if True
    146 map_sort      = options.sort        # map "sort" application if True
    147 map_convol    = options.convol      # map "convol" application if True
    148 map_router    = options.router      # map "router" application if True
    149 map_display   = options.display     # map "display" application if True
    150 map_classif   = options.classif     # map "classif" application if True
     132x_size         = options.x_size      # number of clusters in a row
     133y_size         = options.y_size      # number of clusters in a column
     134nb_procs       = options.nb_procs    # number of processors in a cluster
     135nb_ttys        = options.nb_ttys     # number of TTY channels           
     136fbf_size       = options.fbf_size    # frame buffer width & heigth
     137
     138verbose        = options.verbose     # report on map.bin generation if True
     139
     140netbsd_path    = options.netbsd_path # path for netbsd.dts file
     141linux_path     = options.linux_path  # path for linux.dts file
     142almos_path     = options.almos_path  # path for arch.bib file
     143giet_path      = options.giet_path   # path for map.bin & vsegs.ld files
     144hard_path      = options.hard_path   # path for the hard_config.h file
     145
     146arch_path      = options.arch_path   # path to selected architecture
     147
     148xml_path       = options.xml_path    # path for map.xml file     
     149
     150map_transpose  = options.transpose   # map "transpose" application if True
     151map_sort       = options.sort        # map "sort" application if True
     152map_convol     = options.convol      # map "convol" application if True
     153map_router     = options.router      # map "router" application if True
     154map_display    = options.display     # map "display" application if True
     155map_classif    = options.classif     # map "classif" application if True
     156map_gameoflife = options.gameoflife  # map "gameoflife" application if True
    151157
    152158######################################################################################
     
    202208    print '[genmap] application "classif" will be loaded'
    203209
     210if ( map_gameoflife ):
     211    app = __import__( 'gameoflife' )
     212    app.gameoflife( mapping )
     213    print '[genmap] application "gameoflife" will be loaded'
     214
    204215######################################################################################
    205216#   Generate xml file if required.
Note: See TracChangeset for help on using the changeset viewer.