Changeset 548
- Timestamp:
- Sep 21, 2018, 10:23:50 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r495 r548 130 130 --fbf_size=$(FBF_WIDTH) \ 131 131 --ioc_type=$(IOC_TYPE) \ 132 --sys_clk=$(SYS_CLK) \ 132 133 --hard=. \ 133 134 --bin=. \ -
trunk/tools/arch_info/arch_classes.py
r546 r548 363 363 364 364 ###################################################################### 365 def hard_config( self, ioc_type ): # compute string for hard_config.h file365 def hard_config( self, ioc_type, sys_clk ): # compute string for hard_config.h file 366 366 # required by 367 367 # - top.cpp compilation … … 607 607 if (self.name[5] == 'l') : 608 608 s += '#define IS_LETI \n' 609 s += '#define RESET_SYSTEM_CLK %d\n' % sys_clk 609 610 s += '\n' 610 611 -
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.