Ignore:
Timestamp:
Nov 26, 2014, 6:54:56 PM (9 years ago)
Author:
cfuguet
Message:

reconf: improve the onerun.py script in the tsar_generic_iob

  • Now, this module defines a run function which can be either called by the onerun's main function or by another module, if it has been imported.
  • Faulty cores are now passed as an argument. For each faulty core, pass the argument -fc X Y L, where X Y L are the core's coordinates.
  • Faulty routers are now passed as a pair X Y instead of XY integer. For each faulty router, pass the argument -fr X Y. This modification affects both, the top.cpp and onerun.py files.
File:
1 edited

Legend:

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

    r778 r890  
    1313                    "    /*  X    |    Y     | L  */\n")
    1414
    15     for x, y, l in faulty:
    16         content.append("    ({0} << 6) | ({1} << 2) | {2},\n".format(x, y, l))
     15    if faulty != None:
     16        for x, y, l in faulty:
     17            content.append("    ({0} << 6) | ({1} << 2) | {2},\n".format(x, y, l))
    1718
    1819    content.append( "};\n"
Note: See TracChangeset for help on using the changeset viewer.