Changeset 762 for trunk/platforms/tsar_generic_iob
- Timestamp:
- Aug 5, 2014, 4:57:46 PM (10 years ago)
- Location:
- trunk/platforms/tsar_generic_iob
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_iob/arch.py
r754 r762 114 114 115 115 boot_mapping_vbase = 0x00000000 # ident 116 boot_mapping_size = 0x000 40000 # 256 Kbytes117 118 boot_code_vbase = 0x000 40000 # ident116 boot_mapping_size = 0x00080000 # 256 Kbytes 117 118 boot_code_vbase = 0x00080000 # ident 119 119 boot_code_size = 0x00040000 # 256 Kbytes 120 120 121 boot_data_vbase = 0x000 80000 # ident122 boot_data_size = 0x00080000 # 512 Kbytes 123 124 boot_stack_vbase = 0x001 00000 # ident121 boot_data_vbase = 0x000C0000 # ident 122 boot_data_size = 0x00080000 # 512 Kbytes (including 128K bytes for the GIET_ELF_BUFFER) 123 124 boot_stack_vbase = 0x00140000 # ident 125 125 boot_stack_size = 0x00050000 # 320 Kbytes 126 126 … … 131 131 132 132 kernel_data_vbase = 0x80020000 133 kernel_data_size = 0x000 60000 # 384Kbytes134 135 kernel_uncdata_vbase = 0x800 80000136 kernel_uncdata_size = 0x000 40000 # 256Kbytes137 138 kernel_init_vbase = 0x800 C0000133 kernel_data_size = 0x00020000 # 128 Kbytes 134 135 kernel_uncdata_vbase = 0x80040000 136 kernel_uncdata_size = 0x00010000 # 64 Kbytes 137 138 kernel_init_vbase = 0x80050000 139 139 kernel_init_size = 0x00010000 # 64 Kbytes 140 140 -
trunk/platforms/tsar_generic_iob/top.cpp
r757 r762 148 148 // Parallelisation 149 149 /////////////////////////////////////////////////// 150 #define USE_OPENMP 0 151 152 #if USE_OPENMP 150 151 #define USING_OPENMP 0 152 153 #if USING_OPENMP 153 154 #include <omp.h> 154 155 #endif … … 185 186 //////////////////////i///////////////////////////////////// 186 187 187 #include " hard_config.h"188 #include "../../../giet_vm/hard_config.h" 188 189 189 190 //////////////////////////////////////////////////////////// … … 321 322 322 323 char soft_name[256] = BOOT_SOFT_NAME; // pathname: binary code 323 size_t ncycles = 1000000000; // simulated cycles324 size_t ncycles = 4000000000; // simulated cycles 324 325 char disk_name[256] = BDEV_IMAGE_NAME; // pathname: disk image 325 326 char nic_rx_name[256] = NIC_RX_NAME; // pathname: rx packets file … … 338 339 size_t x_width = 4; // at most 256 clusters 339 340 size_t y_width = 4; // at most 256 clusters 341 342 #if USING_OPENMP 343 size_t simul_period = 1000000; 344 #else 345 size_t simul_period = 1; 346 #endif 340 347 341 348 assert( (X_WIDTH == 4) and (Y_WIDTH == 4) and … … 472 479 std::cout << std::endl; 473 480 474 #if US E_OPENMP481 #if USING_OPENMP 475 482 omp_set_dynamic(false); 476 483 omp_set_num_threads(threads_nr); … … 984 991 dspin_ram_rsp_width>* clusters[XMAX][YMAX]; 985 992 986 #if US E_OPENMP993 #if USING_OPENMP 987 994 #pragma omp parallel 988 995 { … … 994 1001 size_t y = i % YMAX; 995 1002 996 #if US E_OPENMP1003 #if USING_OPENMP 997 1004 #pragma omp critical 998 1005 { … … 1074 1081 ); 1075 1082 1076 #if US E_OPENMP1083 #if USING_OPENMP 1077 1084 } // end critical 1078 1085 #endif 1079 1086 } // end for 1080 #if US E_OPENMP1087 #if USING_OPENMP 1081 1088 } 1082 1089 #endif … … 1400 1407 gettimeofday(&t1, NULL); 1401 1408 1402 for (size_t n = 1; n < ncycles; n++) 1409 1410 for ( size_t n = 0; n < ncycles ; n += simul_period ) 1403 1411 { 1404 1412 // stats display … … 1559 1567 } 1560 1568 1561 sc_start(sc_core::sc_time( 1, SC_NS));1569 sc_start(sc_core::sc_time(simul_period, SC_NS)); 1562 1570 } 1563 1571 return EXIT_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.