Ignore:
Timestamp:
May 17, 2014, 11:54:12 AM (10 years ago)
Author:
cfuguet
Message:

tsar_generic_iob:

  • Replacing tsar_iob_cluster dspin_local_crossbar by vci_local_crossbar (Direct Network)
  • Display real simulation clock frequency in top.cpp
File:
1 edited

Legend:

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

    r618 r693  
    214214#define WEST                  3
    215215
    216 #define cluster(x,y)   ((y) + (x<<4))
     216#define cluster(x,y)   ((y) + ((x) << 4))
    217217
    218218////////////////////////////////////////////////////////////
     
    13931393    signal_resetn = true;
    13941394
     1395    struct timeval t1,t2;
     1396    gettimeofday(&t1, NULL);
    13951397    for (size_t n = 1; n < ncycles; n++)
    13961398    {
     1399        // stats display
     1400        if( (n % 5000000) == 0)
     1401        {
     1402            gettimeofday(&t2, NULL);
     1403
     1404            uint64_t ms1 = (uint64_t) t1.tv_sec  * 1000ULL +
     1405                           (uint64_t) t1.tv_usec / 1000;
     1406            uint64_t ms2 = (uint64_t) t2.tv_sec  * 1000ULL +
     1407                           (uint64_t) t2.tv_usec / 1000;
     1408            std::cerr << "platform clock frequency "
     1409                      << (double) 5000000 / (double) (ms2 - ms1) << "Khz"
     1410                      << std::endl;
     1411
     1412            gettimeofday(&t1, NULL);
     1413        }
     1414
    13971415        // Monitor a specific address for one L1 cache
    13981416        // clusters[1][1]->proc[0]->cache_monitor(0x50090ULL);
Note: See TracChangeset for help on using the changeset viewer.