Ignore:
Timestamp:
Sep 29, 2014, 11:56:47 AM (10 years ago)
Author:
alain
Message:

Introducing support for BPP (Big Physical Pages) and SPP (Small Physical Pages)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_python/genmap

    r401 r411  
    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.
    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.
    1718#######################################################################################
    1819# The hardware parameters  are:
     
    5758                   help = 'define number of processors per cluster' )
    5859
     60parser.add_option( '--fbf', type = 'int', dest = 'fbf_size',
     61                   default = 128,
     62                   help = 'define frame buffer width and heigth' )
     63
    5964parser.add_option( '--v', action = 'store_true', dest = 'verbose',
    6065                   default = False,
     
    6368parser.add_option( '--netbsd', type = 'string', dest = 'netbsd_path',
    6469                   help = 'define pathname for the netbsd.dts file' )
     70
     71parser.add_option( '--linux', type = 'string', dest = 'linux_path',
     72                   help = 'define pathname for the linux.dts file' )
    6573
    6674parser.add_option( '--almos', type = 'string', dest = 'almos_path',
     
    99107y_size        = options.y_size      # number of clusters in a column
    100108nprocs        = options.nprocs      # number of processors in a cluster
     109fbf_size      = options.fbf_size    # frame buffer width & heigth
    101110
    102111verbose       = options.verbose     # report on map.bin generation if True
    103112
    104113netbsd_path   = options.netbsd_path # path for netbsd.dts file
     114linux_path    = options.linux_path  # path for linux.dts file
    105115almos_path    = options.almos_path  # path for arch.bib file
    106116giet_path     = options.giet_path   # path for map.bin & vsegs.ld files
     
    130140
    131141# build mapping calling the function (function name)
    132 mapping = select.arch( x_size, y_size, nprocs )
     142mapping = select.arch( x_size, y_size, nprocs, fbf_size )
    133143print '[genmap] platform %s build' % mapping.name
    134144
     
    172182    f = open ( pathname, 'w' )
    173183    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
     191if ( (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
    175196
    176197######################################################################################
Note: See TracChangeset for help on using the changeset viewer.