Changeset 548 for trunk/tools/arch_info/genarch.py
- Timestamp:
- Sep 21, 2018, 10:23:50 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/arch_info/genarch.py
r546 r548 79 79 help = 'define type of IOC: BDV / HBA / SDC / RDK / SPI' ) 80 80 81 parser.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 81 85 parser.add_option( '--hard', type = 'string', dest = 'hard_path', 82 86 help = 'define pathname to directory for the hard_config.h file ' ) … … 105 109 nb_nics = options.nb_nics # number of NIC channels 106 110 ioc_type = options.ioc_type # ioc controller type 111 sys_clk = options.sys_clk # system clock frequency in kHz 107 112 108 113 hard_path = options.hard_path # path for hard_config.h file … … 167 172 pathname = hard_path + '/hard_config.h' 168 173 f = open ( pathname, 'w' ) 169 f.write( archinfo.hard_config( ioc_type ) )174 f.write( archinfo.hard_config( ioc_type, sys_clk ) ) 170 175 print '[genarch] %s generated' % pathname 171 176
Note: See TracChangeset
for help on using the changeset viewer.