Ignore:
Timestamp:
Aug 11, 2014, 9:58:17 PM (8 years ago)
Author:
alain
Message:

Modify arch.py to support idle_task in scheduler.
(scheduler vseg must have 8 Kbytes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_iob/top.cpp

    r762 r764  
    206206#define L1_DSETS              64
    207207
    208 #define BDEV_IMAGE_NAME       "../../../giet_vm/hdd/virt_hdd.dmg"
    209 
    210 #define NIC_RX_NAME           "giet_vm/nic/rx_packets.txt"
    211 #define NIC_TX_NAME           "giet_vm/nic/tx_packets.txt"
     208#define BDEV_IMAGE_NAME       "virt_hdd.dmg"
     209
     210#define NIC_RX_NAME           "/dev/null"
     211#define NIC_TX_NAME           "/dev/null"
    212212#define NIC_TIMEOUT           10000
    213213
     
    229229//////////////////////i/////////////////////////////////////
    230230
    231 #define MAX_FROZEN_CYCLES     20000000
     231#define MAX_FROZEN_CYCLES     100000
    232232
    233233/////////////////////////////////////////////////////////
     
    245245// All initiators are in the same indexing space (14 bits).
    246246// The SRCID is structured in two fields:
    247 // - The 10 MSB bits define the cluster index (left aligned)
    248 // - The 4  LSB bits define the local index.
     247// - The 8 MSB bits define the cluster index (left aligned)
     248// - The 6  LSB bits define the local index.
    249249// Two different initiators cannot have the same SRCID, but a given
    250250// initiator can have two alias SRCIDs:
     
    328328   ssize_t  threads_nr       = 1;                          // simulator's threads number
    329329   bool     debug_ok         = false;                      // trace activated
    330    size_t   debug_period     = 1;                          // trace period
    331330   size_t   debug_memc_id    = 0xFFFFFFFF;                 // index of traced memc
    332331   size_t   debug_proc_id    = 0xFFFFFFFF;                 // index of traced proc
     
    418417            frozen_cycles = atoi(argv[n+1]);
    419418         }
    420          else if ((strcmp(argv[n], "-PERIOD") == 0) && (n+1 < argc))
    421          {
    422             debug_period = atoi(argv[n+1]);
    423          }
    424419         else
    425420         {
     
    433428            std::cout << "     -THREADS simulator's threads number" << std::endl;
    434429            std::cout << "     -FROZEN max_number_of_lines" << std::endl;
    435             std::cout << "     -PERIOD number_of_cycles between trace" << std::endl;
    436430            std::cout << "     -MEMCID index_memc_to_be_traced" << std::endl;
    437431            std::cout << "     -XRAMID index_xram_to_be_traced" << std::endl;
     
    14311425
    14321426        // Monitor a specific address for one L2 cache
    1433         // clusters[0][0]->memc->cache_monitor( 0xE1904ULL, true );   // single word
     1427        // clusters[0][0]->memc->cache_monitor( 0x1c4924LL, true );   // single word
    14341428
    14351429        // Monitor a specific address for one XRAM
    14361430        // clusters[0][0]->xram->start_monitor( 0xE1900ULL , 64);
    14371431
    1438         if (debug_ok and (n > debug_from) and (n % debug_period == 0))
     1432        if ( debug_ok and (n > debug_from) )
    14391433        {
    14401434            std::cout << "****************** cycle " << std::dec << n ;
     
    14481442                size_t x          = cluster_xy >> 4;
    14491443                size_t y          = cluster_xy & 0xF;
    1450  
    1451                 clusters[x][y]->proc[l]->print_trace(0x40);
     1444
     1445                clusters[x][y]->proc[l]->print_trace(0x1);
    14521446                std::ostringstream proc_signame;
    14531447                proc_signame << "[SIG]PROC_" << x << "_" << y << "_" << l ;
Note: See TracChangeset for help on using the changeset viewer.