Changeset 1000 for branches


Ignore:
Timestamp:
Jun 12, 2015, 3:22:13 PM (10 years ago)
Author:
cfuguet
Message:

reconf: update simulation scripts and fix some minor bugs in the
platform topcell.

Location:
branches/reconfiguration/platforms/tsar_generic_iob
Files:
4 edited

Legend:

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

    r991 r1000  
    6464    cluster(x,y)"""
    6565
    66     return (x << X_WIDTH) | y
     66    return (x << Y_WIDTH) | y
    6767
    6868def arch(x_size=2,
  • branches/reconfiguration/platforms/tsar_generic_iob/scripts/random_faulty_core_router.py

    r991 r1000  
    2020        self.faultycore = []
    2121        self.debug = None
     22        self.linux = False
     23        self.force = True
     24        self.firmdebug = False
     25        self.diskimage = "/dev/null"
     26        self.ncycles = -1
     27        self.threads = -1
    2228
    2329        self.xmax = self.x - 1
     
    8490SIM_FAULTFREE = False
    8591SIM_FAULTCORES = False
    86 SIM_FAULTROUTERS = True
     92SIM_FAULTROUTERS = False
    8793SIM_FAULTMIXED = False
     94SIM_CUSTOM = True
    8895
    8996# probability of faulty router (for mixed simul)
     
    94101RSP = 1
    95102
    96 for xsize, ysize in [(4, 4), (4, 8), (8, 8), (8, 16), (16, 16)]:
     103# Mesh parameters list
     104MESH = []
     105MESH.append((2, 2))
     106MESH.append((2, 4))
     107MESH.append((4, 4))
     108MESH.append((4, 8))
     109#MESH.append((8, 8))
     110
     111for xsize, ysize in MESH:
    97112    if SIM_FAULTFREE:
    98113        # ---------------------------------------------------------------------
     
    101116        cfgname = 'output_{0}_{1}'.format(xsize, ysize)
    102117        args = RunArguments(cfgname, xsize, ysize)
     118        onerun.run(args)
     119
     120    if SIM_CUSTOM:
     121        # -----------------------------------------------------------------
     122        # simulation with list of faulty routers and cores
     123        # -----------------------------------------------------------------
     124        cfgname = 'output_custom_{0}_{1}_fc'.format(xsize, ysize)
     125        args = RunArguments(cfgname, xsize, ysize)
     126        # args.add_faultyrouter((RSP, args.xmax - 1, args.ymax - 1))
     127        args.add_faultycore((0, 0, 0))
    103128        onerun.run(args)
    104129
  • branches/reconfiguration/platforms/tsar_generic_iob/top.cpp

    r989 r1000  
    12261226    std::cout << std::endl;
    12271227
     1228//    clusters[0][0]->xicu->set_faulty_wti(3, 0);
     1229
    12281230    ///////////////////////////////////////////////////////////////////////////////
    12291231    //     Net-list
  • branches/reconfiguration/platforms/tsar_generic_iob/tsar_iob_cluster/caba/source/src/tsar_iob_cluster.cpp

    r995 r1000  
    9898    assert( (x_id < x_size) and (y_id < y_size) and "Illegal cluster coordinates");
    9999
    100     size_t cluster_id = (x_id << x_width) | y_id;
     100    size_t cluster_id = (x_id << y_width) | y_id;
    101101
    102102    // Vectors of DSPIN ports for inter-cluster communications
Note: See TracChangeset for help on using the changeset viewer.