Changeset 687 for trunk/tools/arch_info
- Timestamp:
- Jan 13, 2021, 12:49:41 AM (4 years ago)
- Location:
- trunk/tools/arch_info
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/arch_info/arch_classes.py
r586 r687 105 105 cache_line, # number of bytes in cache line 106 106 reset_address, # Preloader physical base address 107 p_width ): # TSAR specific : number of bits to code core lid 107 p_width, # TSAR specific : number of bits to code core lid 108 sys_clk ): # system clock frequency (in Hertz) 108 109 109 110 assert ( x_size <= (1<<x_width) ) … … 125 126 self.reset_address = reset_address 126 127 self.p_width = p_width 128 self.sys_clk = sys_clk 127 129 128 130 self.total_cores = 0 … … 273 275 s += ' y_size = "%d"\n' % (self.y_size) 274 276 s += ' cores = "%d"\n' % (self.cores_max) 275 s += ' io_cxy = "%d" >\n' % (self.io_cxy) 277 s += ' io_cxy = "%d"\n' % (self.io_cxy) 278 s += ' sys_clk = "%d" >\n' % (self.sys_clk) 276 279 s += '\n' 277 280 … … 309 312 byte_stream += self.int2bytes(4, self.irqs_per_core) 310 313 byte_stream += self.int2bytes(4, self.cache_line) 311 byte_stream += self.int2bytes(4, 0)314 byte_stream += self.int2bytes(4, self.sys_clk) 312 315 313 316 byte_stream += self.str2bytes(64, self.name) … … 368 371 # required by 369 372 # - top.cpp compilation 370 # - almos-mk bootloader compilation373 # - almos-mkh bootloader compilation 371 374 # - tsar_preloader compilation 372 375 … … 634 637 s += '#define BOOT_CORE_CXY %d\n' % self.boot_cxy 635 638 s += '#define CACHE_LINE_SIZE %d\n' % self.cache_line 639 s += '#define SYS_CLK %d\n' % self.sys_clk 636 640 s += '\n' 637 641 -
trunk/tools/arch_info/arch_info.h
r586 r687 2 2 * archinfo.h - Hardware Architecture Information structures 3 3 * 4 * Author Alain Greiner (2016 )4 * Author Alain Greiner (2016,2017,2018,2019,2020) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 112 112 uint32_t irqs_per_core; // number of IRQs per core 113 113 uint32_t cache_line_size; // number of bytes 114 uint32_t reserved; // reserved114 uint32_t sys_clk; // system clock frequency (in Hertz) 115 115 116 116 char name[64]; // architecture name -
trunk/tools/arch_info/boot_info.h
r571 r687 2 2 * boot_info.h - informations passed by the bootloader to the kernel in each cluster. 3 3 * 4 * Author Alain Greiner (june 2016,2017 )4 * Author Alain Greiner (june 2016,2017,2018,2019,2020) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 113 113 uint32_t y_size; /*! number of cluster in a column */ 114 114 uint32_t io_cxy; /*! IO cluster identifier */ 115 uint32_t sys_clk; /*! system frequency (in Hertz) */ 115 116 116 117 uint8_t cluster_info[CONFIG_MAX_CLUSTERS_X][CONFIG_MAX_CLUSTERS_Y]; -
trunk/tools/arch_info/genarch.py
r586 r687 87 87 parser.add_option( '--sys_clk', type = 'int', dest = 'sys_clk', 88 88 default = 50000, 89 help = 'system clock frequency (50 KHz simu / 25 MHz FPGA, 600 MHz VLSI)' )89 help = 'system clock frequency (50 KHz simu / 1 GHz VLSI)' ) 90 90 91 91 parser.add_option( '--hard', type = 'string', dest = 'hard_path',
Note: See TracChangeset
for help on using the changeset viewer.