Changeset 693 for trunk/platforms/tsar_generic_iob/top.cpp
- Timestamp:
- May 17, 2014, 11:54:12 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_iob/top.cpp
r618 r693 214 214 #define WEST 3 215 215 216 #define cluster(x,y) ((y) + ( x<<4))216 #define cluster(x,y) ((y) + ((x) << 4)) 217 217 218 218 //////////////////////////////////////////////////////////// … … 1393 1393 signal_resetn = true; 1394 1394 1395 struct timeval t1,t2; 1396 gettimeofday(&t1, NULL); 1395 1397 for (size_t n = 1; n < ncycles; n++) 1396 1398 { 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 1397 1415 // Monitor a specific address for one L1 cache 1398 1416 // clusters[1][1]->proc[0]->cache_monitor(0x50090ULL);
Note: See TracChangeset
for help on using the changeset viewer.