Ignore:
Timestamp:
Sep 17, 2014, 1:17:56 PM (10 years ago)
Author:
cfuguet
Message:

reconf/tsar_generic_iob: Using the new P_WIDTH constant

  • This constant is used in the clusters to compute the procesor id which now is: (((x << Y_WIDTH) + y) << P_WIDTH) + lpid
  • Introducing the p_width constant in the arch.py files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/platforms/tsar_generic_iob/scripts/arch.py

    r774 r806  
    11#!/usr/bin/env python
    2 import sys
     2from math import log
    33from mapping import *
    44
     
    2828#  - x_width        : number of bits for x coordinate
    2929#  - y_width        : number of bits for y coordinate
     30#  - p_width        : number of bits for processor local id field
    3031#  - paddr_width    : number of bits for physical address
    3132#  - irq_per_proc   : number of input IRQs per processor
     
    4849    x_width           = 4
    4950    y_width           = 4
     51    p_width           = log(nb_procs, 2)
    5052    paddr_width       = 40
    5153    irq_per_proc      = 4
     
    355357
    356358################################# platform test #######################################################
    357 
     359import sys
    358360if __name__ == '__main__':
    359361    main( x_size    = int(sys.argv[1]),
Note: See TracChangeset for help on using the changeset viewer.