Ignore:
Timestamp:
Dec 19, 2013, 9:39:53 AM (11 years ago)
Author:
alain
Message:

Introducing support for cluster index fixed format.

Location:
trunk/platforms/tsar_generic_iob/tsar_iob_cluster/caba/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_iob/tsar_iob_cluster/caba/source/include/tsar_iob_cluster.h

    r550 r607  
    7878        sc_signal<bool>                               signal_proc_it[8];
    7979        sc_signal<bool>                               signal_irq_mdma[8];
     80        sc_signal<bool>                               signal_irq_memc;
    8081       
    8182        // INT network DSPIN signals between DSPIN routers and DSPIN local_crossbars
  • trunk/platforms/tsar_generic_iob/tsar_iob_cluster/caba/source/src/tsar_iob_cluster.cpp

    r599 r607  
    8484    assert( (x_id < xmax) and (y_id < ymax) and "Illegal cluster coordinates");
    8585
    86     size_t cluster_id = x_id * ymax + y_id;
    87 
    88     size_t cluster_iob0 = 0;                 // South-West cluster
    89     size_t cluster_iob1 = xmax*ymax-1;       // North-East cluster
     86    size_t cluster_id = (x_id<<4) + y_id;
     87
     88    size_t cluster_iob0 = 0;                            // South-West cluster
     89    size_t cluster_iob1 = ((xmax-1)<<4) + ymax-1;       // North-East cluster
    9090
    9191    // Vectors of DSPIN ports for inter-cluster communications
     
    621621    memc->p_dspin_m2p                            (signal_int_dspin_m2p_memc);
    622622    memc->p_dspin_clack                          (signal_int_dspin_clack_memc);
     623    memc->p_irq                                  (signal_irq_memc);
    623624
    624625    // wrapper to INT network
Note: See TracChangeset for help on using the changeset viewer.