Changeset 1007
- Timestamp:
- Jul 16, 2015, 3:17:49 PM (9 years ago)
- Location:
- branches/reconfiguration/platforms/tsar_generic_iob
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/Makefile
r1001 r1007 1 TAGS := cscope.out 1 RM := rm -f 2 SOCLIB_CC := soclib-cc 2 3 SOCLIB_CC_MODE := -m release 3 4 SOCLIB_CC_ARGS := $(SOCLIB_CC_MODE) … … 8 9 #SOCLIB_CC_ARGS += -bcaba:vci_block_device_tsar 9 10 10 all: simul.x 11 TAGS := cscope.out 12 TARGET := simul.x 13 14 objs := $(wildcard *.o) 15 objs += $(wildcard term[0-9]) 16 objs += $(wildcard $(TARGET)) 17 objs := $(strip $(objs)) 18 19 extra_objs := $(wildcard scripts/*.pyc) 20 extra_objs += $(wildcard hard_config.h) 21 extra_objs += $(wildcard $(TAGS)) 22 extra_objs := $(strip $(extra_objs)) 23 24 all: $(TARGET) 11 25 tags: $(TAGS) 12 26 13 simul.x: top.cpp top.desc 14 soclib-cc $(SOCLIB_CC_ARGS) -P -p top.desc -I. -o simul.x 27 .PHONY: $(TARGET) 28 $(TARGET): top.desc top.cpp 29 $(SOCLIB_CC) $(SOCLIB_CC_ARGS) -P -p $< -I. -o $@ 15 30 31 .PHONY: $(TAGS) 16 32 $(TAGS): top.desc 17 soclib-cc-p $< --tags --tags-type=cscope --tags-output=$@33 $(SOCLIB_CC) -p $< --tags --tags-type=cscope --tags-output=$@ 18 34 35 .PHONY: clean 19 36 clean: 20 soclib-cc $(SOCLIB_CC_MODE) -x -p top.desc -I. 21 rm -rf *.o *.x tty* term* 37 $(SOCLIB_CC) $(SOCLIB_CC_MODE) -x -p top.desc -I. 38 ifneq ($(objs),) 39 $(RM) $(objs) 40 endif 22 41 42 .PHONY: distclean 23 43 distclean: clean 24 rm -f $(TAGS) hard_config.h 25 find . -name "*.pyc" -exec rm -f {} \; 26 27 .PHONY: simul.x $(TAGS) 28 44 ifneq ($(extra_objs),) 45 $(RM) $(extra_objs) 46 endif -
branches/reconfiguration/platforms/tsar_generic_iob/scripts/arch.py
r1000 r1007 287 287 mapping.addGlobal('seg_kernel_code', kcode_vbase, kcode_size, 288 288 'CXW_', vtype='ELF', x=x, y=y, pseg='RAM', 289 binpath='b uild/kernel/kernel.elf',289 binpath='bin/kernel/kernel.elf', 290 290 local=True, big=True) 291 291 292 292 mapping.addGlobal('seg_kernel_init', kinit_vbase, kinit_size, 293 293 'CXW_', vtype='ELF', x=x, y=y, pseg='RAM', 294 binpath='b uild/kernel/kernel.elf',294 binpath='bin/kernel/kernel.elf', 295 295 local=True, big=True) 296 296 … … 311 311 mapping.addGlobal('seg_kernel_data', kdata_vbase, kdata_size, 312 312 'CXW_', vtype='ELF', x=0, y=0, pseg='RAM', 313 binpath='b uild/kernel/kernel.elf', local=False,313 binpath='bin/kernel/kernel.elf', local=False, 314 314 big=True) 315 315 316 316 mapping.addGlobal('seg_kernel_uncdata', kuncdata_vbase, kuncdata_size, 317 317 'CXW_', vtype='ELF', x=0, y=0, pseg='RAM', 318 binpath='b uild/kernel/kernel.elf', local=False,318 binpath='bin/kernel/kernel.elf', local=False, 319 319 big=True) 320 320 -
branches/reconfiguration/platforms/tsar_generic_iob/top.cpp
r1001 r1007 151 151 #define almos_archinfo_pathname "arch-info.bin@0xBFC08000:D" 152 152 153 /////////////////////////////////////////////////// 153 /////////////////////////////////////////////////////////// 154 154 // Parallelisation 155 /////////////////////////////////////////////////// 156 #define USE_OPENMP _OPENMP 157 158 #if USE_OPENMP 155 // 156 // The _OPENMP flag is defined automatically by the 157 // compilation environment when compiling with the OpenMP 158 // support 159 /////////////////////////////////////////////////////////// 160 #if _OPENMP 159 161 #include <omp.h> 160 162 #endif … … 512 514 std::cout << std::endl; 513 515 514 #if USE_OPENMP516 #if _OPENMP 515 517 omp_set_dynamic(false); 516 518 omp_set_num_threads(threads_nr); … … 990 992 maptab_iox, 991 993 NB_NIC_CHANNELS, 992 0, // mac_4 address 993 0, // mac_2 address 994 nicMode ); 994 0, // mac_4 address 995 0, // mac_2 address 996 nicMode, 997 12 ); // Inter Frame Gap 995 998 996 999 // Chained Buffer DMA controller … … 1001 1004 IntTab(0, IOX_CDMA_TGT_ID), 1002 1005 64, // burst size (bytes) 1003 2*NB_NIC_CHANNELS ); 1006 NB_CMA_CHANNELS, 1007 4 ); // # pipelined burst 1004 1008 #else 1005 1009 VciTargetError<vci_param_ext> merror_nic( "merror_nic", … … 1077 1081 TsarCluster* clusters[X_SIZE][Y_SIZE]; 1078 1082 1079 #if USE_OPENMP1083 #if _OPENMP 1080 1084 #pragma omp parallel 1081 1085 { … … 1087 1091 size_t y = i % Y_SIZE; 1088 1092 1089 #if USE_OPENMP1093 #if _OPENMP 1090 1094 #pragma omp critical 1091 1095 { … … 1170 1174 ); 1171 1175 1172 #if USE_OPENMP1176 #if _OPENMP 1173 1177 } // end critical 1174 1178 #endif 1175 1179 } // end for 1176 #if USE_OPENMP1180 #if _OPENMP 1177 1181 } 1178 1182 #endif
Note: See TracChangeset
for help on using the changeset viewer.