Ignore:
Timestamp:
Sep 12, 2014, 3:10:04 PM (10 years ago)
Author:
cfuguet
Message:

tsar_generic_leti: Using the new P_WIDTH constant from hard_config.h

  • 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
  • trunk/platforms/tsar_generic_leti/tsar_leti_cluster/caba/source/src/tsar_leti_cluster.cpp

    r732 r803  
    3232         size_t                             y_width,
    3333         size_t                             l_width,
     34         size_t                             p_width,
    3435         size_t                             tgtid_memc,
    3536         size_t                             tgtid_xicu,
     
    8788    for (size_t p = 0; p < nb_procs; p++)
    8889    {
    89         uint32_t global_proc_id  = cluster_xy * nb_procs + p;
     90        uint32_t global_proc_id  = (cluster_xy << p_width) + p;
    9091        uint32_t global_cc_id    = (cluster_xy << l_width) + p;
    9192        bool     trace_ok        = trace_proc_ok and (trace_proc_id == global_proc_id);
Note: See TracChangeset for help on using the changeset viewer.