Changeset 687 for trunk/tools


Ignore:
Timestamp:
Jan 13, 2021, 12:49:41 AM (3 years ago)
Author:
alain
Message:

cosmetic

Location:
trunk/tools/arch_info
Files:
4 edited

Legend:

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

    r586 r687  
    105105                  cache_line,        # number of bytes in cache line
    106106                  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)
    108109
    109110        assert ( x_size <= (1<<x_width) )
     
    125126        self.reset_address  = reset_address
    126127        self.p_width        = p_width
     128        self.sys_clk        = sys_clk
    127129
    128130        self.total_cores    = 0
     
    273275        s += '           y_size       = "%d"\n'   % (self.y_size)
    274276        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)
    276279        s += '\n'
    277280
     
    309312        byte_stream += self.int2bytes(4,  self.irqs_per_core)
    310313        byte_stream += self.int2bytes(4,  self.cache_line)
    311         byte_stream += self.int2bytes(4,  0)
     314        byte_stream += self.int2bytes(4,  self.sys_clk)
    312315
    313316        byte_stream += self.str2bytes(64, self.name)
     
    368371                                 # required by
    369372                                 # - top.cpp compilation
    370                                  # - almos-mk bootloader compilation
     373                                 # - almos-mkh bootloader compilation
    371374                                 # - tsar_preloader compilation
    372375
     
    634637        s += '#define BOOT_CORE_CXY          %d\n'    % self.boot_cxy
    635638        s += '#define CACHE_LINE_SIZE        %d\n'    % self.cache_line
     639        s += '#define SYS_CLK                %d\n'    % self.sys_clk
    636640        s += '\n'
    637641
  • trunk/tools/arch_info/arch_info.h

    r586 r687  
    22 * archinfo.h - Hardware Architecture Information structures
    33 *
    4  * Author  Alain Greiner (2016)
     4 * Author  Alain Greiner (2016,2017,2018,2019,2020)
    55 *
    66 * Copyright (c)  UPMC Sorbonne Universites
     
    112112    uint32_t    irqs_per_core;   // number of IRQs per core
    113113    uint32_t    cache_line_size; // number of bytes
    114     uint32_t    reserved;        // reserved
     114    uint32_t    sys_clk;         // system clock frequency (in Hertz)
    115115
    116116    char        name[64];        // architecture name
  • trunk/tools/arch_info/boot_info.h

    r571 r687  
    22 * boot_info.h - informations passed by the bootloader to the kernel in each cluster.
    33 *
    4  * Author  Alain Greiner (june 2016,2017)
     4 * Author  Alain Greiner (june 2016,2017,2018,2019,2020)
    55 *
    66 * Copyright (c) UPMC Sorbonne Universites
     
    113113    uint32_t      y_size;                        /*! number of cluster in a column          */
    114114    uint32_t      io_cxy;                        /*! IO cluster identifier                  */
     115    uint32_t      sys_clk;                       /*! system frequency (in Hertz)            */
    115116
    116117    uint8_t       cluster_info[CONFIG_MAX_CLUSTERS_X][CONFIG_MAX_CLUSTERS_Y];
  • trunk/tools/arch_info/genarch.py

    r586 r687  
    8787parser.add_option( '--sys_clk', type = 'int', dest = 'sys_clk',
    8888                   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)' )
    9090
    9191parser.add_option( '--hard', type = 'string', dest = 'hard_path',
Note: See TracChangeset for help on using the changeset viewer.