Ignore:
Timestamp:
Nov 1, 2018, 12:33:12 PM (5 years ago)
Author:
alain
Message:

Introduce the txt_type and fbf_type (and the associated use_txt_x & use_fbf_* variables)
in arch_info. For Both the C and python files. This was required to support the tsar_generic_leti architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/arch_info/genarch.py

    r575 r586  
    1414# to store the "arch_info.bin" file are defined by parameters on the command line:
    1515#  --arch=string     : path to directory containing the "arch_info.py" file
    16 #  --bin=string      : path to directory store the "arch_info.bin" file
     16#  --bin=string      : path to directory to store the "arch_info.bin" file
    1717#
    1818# As the target architecture is generic, the following hardware parameters can be
     
    2323#  --nb_ttys=int     : number of TTY channels
    2424#  --nb_nics=int     : number of NIC channels
    25 #  --fbf_size=int    : frame buffer width & heigth
    2625#  --ioc_type=string : can be IOC_BDV , IOC_HBA , IOC_SDC , IOC_SPI
     26#  --txt_type=string : can be TXT_TTY , TXT_MTY
     27#  --fbf_type=string : can be FBF_LTI , FBF_SCL
     28#  --sys_clk=int     : system clock frequency (Hz)
    2729#
    2830# The following parameters can be used to generate the optional "hard_config.h" file,
     
    7173                   help = 'define number ot NIC channels' )
    7274
    73 parser.add_option( '--fbf_size', type = 'int', dest = 'fbf_size',
    74                    default = 128,
    75                    help = 'define frame buffer width and heigth' )
    76 
    7775parser.add_option( '--ioc_type', type = 'string', dest = 'ioc_type',
    7876                   default = 'IOC_BDV',
    79                    help = 'define type of IOC: BDV / HBA / SDC / RDK / SPI' )
     77                   help = 'IOC type : BDV / HBA / SDC / RDK / SPI' )
     78
     79parser.add_option( '--txt_type', type = 'string', dest = 'txt_type',
     80                   default = 'TXT_TTY',
     81                   help = 'TXT type : TTY / RS2 / MTY' )
     82
     83parser.add_option( '--fbf_type', type = 'string', dest = 'fbf_type',
     84                   default = 'FBF_SCL',
     85                   help = 'FBF type : LTI / SCL' )
    8086
    8187parser.add_option( '--sys_clk', type = 'int', dest = 'sys_clk',
    82                    default = 25000,
    83                    help = 'define system clock frequency (25MHz for FPGA, 600MHz for TSARLET)' )
    84 
    85 parser.add_option( '--segs_set', type = 'string', dest = 'segs_set',
    86                    default = 'SIMU',
    87                    help = 'define which set of base addresses to use (may differ between simulation and real machine' )
     88                   default = 50000,
     89                   help = 'system clock frequency (50 KHz simu / 25 MHz FPGA, 600 MHz VLSI)' )
    8890
    8991parser.add_option( '--hard', type = 'string', dest = 'hard_path',
     
    110112nb_cores       = options.nb_cores    # number of cores in a cluster
    111113nb_ttys        = options.nb_ttys     # number of TTY channels           
    112 fbf_size       = options.fbf_size    # frame buffer width & heigth
    113114nb_nics        = options.nb_nics     # number of NIC channels           
    114115ioc_type       = options.ioc_type    # ioc controller type
    115 sys_clk        = options.sys_clk     # system clock frequency in kHz
    116 segs_set       = options.segs_set    # Set of base addresses used (simu or real)
     116txt_type       = options.txt_type    # txt terminal type
     117fbf_type       = options.fbf_type    # fbf terminal type
     118sys_clk        = options.sys_clk     # system clock frequency in Hertz
    117119
    118120hard_path      = options.hard_path   # path for hard_config.h file
     
    143145                        nb_ttys,
    144146                        nb_nics,
    145                         fbf_size,
    146                         ioc_type )
     147                        ioc_type,
     148                        txt_type,
     149                        fbf_type,
     150                        sys_clk )
    147151
    148152print '[genarch] archinfo build for %s' % archinfo.name
Note: See TracChangeset for help on using the changeset viewer.