Changeset 836 for trunk/platforms/tsar_generic_xbar/scripts/run_simus.py
- Timestamp:
- Oct 15, 2014, 11:41:49 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_xbar/scripts/run_simus.py
r790 r836 12 12 # User parameters 13 13 nb_procs = [ 4 ] 14 #nb_procs = [ 1 6, 32, 64, 128, 256 ]14 #nb_procs = [ 1, 4, 8, 16, 32, 64, 128, 256 ] 15 15 rerun_stats = False 16 16 use_omp = False 17 protocol = ' dhccp'17 protocol = 'wtidl' 18 18 19 19 #apps = [ 'histogram', 'mandel', 'filter', 'radix_ga', 'fft_ga', 'kmeans' ] … … 32 32 # to come: 'barnes', 'fmm', 'ocean', 'raytrace', 'radiosity', 'waters', 'watern' 33 33 34 all_protocols = [ 'dhccp', 'rwt', 'hmesi' ]34 all_protocols = [ 'dhccp', 'rwt', 'hmesi', 'wtidl' ] 35 35 36 36 top_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..") … … 66 66 - apps_dir: path to almos-tsar-mipsel/apps directory 67 67 - almos_src_dir: path to almos source directory (for kernel and bootloader binaries) 68 - hdd_img_name: path to the hdd image to use 68 - hdd_img_name: path to the hdd image to use (will be copied but not modified) 69 - tsar_dir: path to tsar repository 70 Optional definitions (necessary if you want to use alternative protocols): 71 - rwt_dir: path to the RWT repository 72 - hmesi_dir: path to HMESI directory 73 - wtidl_dir: path to the ideal write-through protocol directory 69 74 *** Stopping execution 70 75 ''' … … 98 103 if not os.path.exists(hmesi_dir): 99 104 print "*** Error: variable hmesi_dir does not define a valid path" 105 sys.exit() 106 107 if protocol == "wtidl": 108 if wtidl_dir == "": 109 print "*** Error: variable wtidl_dir not defined in config file" 110 sys.exit() 111 if not os.path.exists(wtidl_dir): 112 print "*** Error: variable wtidl_dir does not define a valid path" 100 113 sys.exit() 101 114 … … 156 169 'modules/vci_io_bridge', 157 170 'modules/vci_iox_network', 158 'modules/vci_spi' 171 'modules/vci_spi', 159 172 'platforms/tsar_generic_xbar/tsar_xbar_cluster' 160 173 ] … … 164 177 'lib/generic_cache_tsar', 165 178 'modules/vci_cc_vcache_wrapper', 166 'modules/vci_mem_cache' 179 'modules/vci_mem_cache', 167 180 ] 168 181 … … 179 192 elif protocol == "hmesi": 180 193 arch_dir = hmesi_dir 194 elif protocol == "wtidl": 195 arch_dir = wtidl_dir 181 196 else: 182 197 assert(False) … … 213 228 #define IOMMU_ACTIVE 0 214 229 215 #define IRQ_PER_PROCESSOR 1 216 217 #endif //_HD_CONFIG_H 230 #define IRQ_PER_PROCESSOR 1 218 231 ''' % dict(x = x, y = y, nb_clus = x * y) 232 233 if protocol == 'wtidl': 234 header += '#define WT_IDL\n' 235 236 header += '#endif //_HD_CONFIG_H\n' 237 219 238 file = open(hard_config, 'w') 220 239 file.write(header) 221 240 file.close() 241 222 242 223 243
Note: See TracChangeset
for help on using the changeset viewer.