Ignore:
Timestamp:
Sep 21, 2018, 10:23:50 PM (6 years ago)
Author:
nicolas.van.phan@…
Message:

Add SYS_CLK parameter to set in params-hard

Add forgotten sys_clk parameter in Makefile

File:
1 edited

Legend:

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

    r546 r548  
    7979                   help = 'define type of IOC: BDV / HBA / SDC / RDK / SPI' )
    8080
     81parser.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
    8185parser.add_option( '--hard', type = 'string', dest = 'hard_path',
    8286                   help = 'define pathname to directory for the hard_config.h file ' )
     
    105109nb_nics        = options.nb_nics     # number of NIC channels           
    106110ioc_type       = options.ioc_type    # ioc controller type
     111sys_clk        = options.sys_clk     # system clock frequency in kHz
    107112
    108113hard_path      = options.hard_path   # path for hard_config.h file
     
    167172    pathname = hard_path + '/hard_config.h'
    168173    f = open ( pathname, 'w' )
    169     f.write( archinfo.hard_config( ioc_type ) )
     174    f.write( archinfo.hard_config( ioc_type, sys_clk ) )
    170175    print '[genarch] %s generated' % pathname
    171176
Note: See TracChangeset for help on using the changeset viewer.