Changeset 143
- Timestamp:
- Sep 2, 2010, 4:33:08 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Cache/include/Cache_OneLevel_Address.h
r81 r143 4 4 #include <iostream> 5 5 #include <iomanip> 6 #include <stdint.h> 6 7 7 8 namespace environment { -
trunk/IPs/systemC/Environment/Cache/include/Cache_OneLevel_Parameters.h
r81 r143 5 5 #include <sstream> 6 6 #include <math.h> 7 #include <stdint.h> 8 #include <stdlib.h> 7 9 8 10 namespace environment { -
trunk/IPs/systemC/Environment/Common/include/Debug.h
r127 r143 1 1 #ifndef ENVIRONMENT_COMMON_DEBUG_H 2 2 #define ENVIRONMENT_COMMON_DEBUG_H 3 4 #include <cstdio> 3 5 4 6 #define DEBUG_true true -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.Common
r138 r143 36 36 INCDIR = $(SYSTEMC_INCDIR_$(SIMULATOR_SYSTEMC)) \ 37 37 -I. \ 38 -I$(DIR_MORPHEO) 38 -I$(DIR_MORPHEO) 39 39 40 40 LIBDIR = -L$(DIR_LIB) \ -
trunk/IPs/systemC/processor/Morpheo/Common/include/ToString.h
r88 r143 19 19 #include <stdlib.h> 20 20 #include <stdarg.h> 21 #include <stdint.h> 21 22 22 23 namespace morpheo { -
trunk/IPs/systemC/processor/Morpheo/Common/src/Basename.cpp
r131 r143 7 7 8 8 #include "../include/Basename.h" 9 #include <libgen.h> 9 10 10 11 namespace morpheo { -
trunk/Makefile.flags
r142 r143 4 4 # [ Description ] 5 5 # 6 7 ifeq ($(origin MORPHEO_TYPE), undefined) 8 $(error "variable MORPHEO_TYPE is undefined"); 9 endif 6 10 7 11 #-----[ Simulator ]---------------------------------------- … … 19 23 20 24 #-----[ Flags ]-------------------------------------------- 21 MORPHEO_TYPE ?= debug_systemc22 25 23 MORPHEO_TYPE_LIST = "systemc" "vhdl" "cosim" "debug" "debug_systemc"26 # If you add a MORPHEO_FLAGS, add name in array "type_list" in file "environment.sh" 24 27 25 28 MORPHEO_systemc_FLAGS = -DSYSTEMC \ -
trunk/Makefile.tools
r138 r143 59 59 #VALGRIND = valgrind --tool=memcheck --leak-check=yes --show-reachable=yes 60 60 VALGRIND = valgrind --tool=memcheck --leak-check=full --show-reachable=yes --leak-resolution=high --partial-loads-ok=yes --undef-value-errors=yes 61 labs_network_CC_PREFIX = $(DISTCC) 62 labs_local_CC_PREFIX = 63 home_CC_PREFIX = 64 CC_PREFIX = $($(MORPHEO_LOCALIZATION)_CC_PREFIX) 61 ifeq ($(MORPHEO_DISTCC), 0) 62 CC_PREFIX = 63 else 64 CC_PREFIX = $(DISTCC) 65 endif 65 66 CC_FLAGS_COMMON = -O3 -m32 -Wall -Wunused -g3 -pg 66 67 # -static -march=i686 -
trunk/Makefile.tools_path
r139 r143 10 10 # LABS 11 11 #---------------------------------------------------------- 12 labs_network_ENV = export PATH=$${PATH}:/bin:/usr/bin:/users/chaos/kane/Softwares/distcc/bin 13 labs_network_SYSTEMC_systemc = /users/chaos/kane/Softwares/systemc 14 labs_network_SYSTEMC_systemcass = /users/chaos/kane/Softwares/systemcass 15 labs_network_SYSTEMC_systemcass_deps = $(labs_network_SYSTEMC_systemcass) 16 labs_network_XILINX = /users/chaos/kane/Softwares/Xilinx92i 17 labs_network_XILINX_CORELIB = /users/chaos/kane/Softwares/XilinxCoreLib 18 labs_network_MODELTECH = /users/chaos/kane/Softwares/modeltech 19 labs_network_MODELTECH_LICENCE = /users/soft/mentor/mgls_v8-5_0-5-0.ss5/etc/cust/mgc/license.anacad.2008 20 labs_network_OR1K_GCC_BASENAME = or32-elf 21 #labs_network_OR1K_GCC_VERSION = 4.2.2 22 labs_network_OR1K_GCC_VERSION = 3.4.4 23 labs_network_OR1K = /users/chaos/kane/Softwares/$(labs_network_OR1K_GCC_BASENAME)-$(labs_network_OR1K_GCC_VERSION) 24 labs_network_NEWLIB = /users/chaos/kane/Softwares/newlib/$(labs_network_OR1K_GCC_BASENAME) 25 labs_network_QT = /users/chaos/kane/Softwares/qt-x11-opensource-4.2.3 26 labs_network_EV67_GCC_BASENAME = alphaev67-unknown-linux-gnu 27 labs_network_EV67_GCC_VERSION = 4.3.2 28 #labs_network_EV67_GCC_BASENAME = alpha-unknown-linux-gnu 29 #labs_network_EV67_GCC_VERSION = 4.0.2 30 labs_network_EV67 = /users/chaos/kane/Softwares/$(labs_network_EV67_GCC_BASENAME) 31 #labs_network_EV67 = /users/chaos/kane/Softwares/gcc-4.0.2-glibc-2.3.6/$(labs_network_EV67_GCC_BASENAME) 32 33 labs_local_ENV = $(labs_network_ENV) 34 labs_local_SYSTEMC_systemc = $(labs_network_SYSTEMC_systemc) 35 labs_local_SYSTEMC_systemcass = $(labs_network_SYSTEMC_systemcass) 36 labs_local_SYSTEMC_systemcass_deps = $(labs_network_SYSTEMC_systemcass_deps) 37 labs_local_XILINX = $(labs_network_XILINX) 38 labs_local_XILINX_CORELIB = $(labs_network_XILINX_CORELIB) 39 labs_local_MODELTECH = $(labs_network_MODELTECH) 40 labs_local_MODELTECH_LICENCE = $(labs_network_MODELTECH_LICENCE) 41 labs_local_OR1K_GCC_BASENAME = $(labs_network_OR1K_GCC_BASENAME) 42 labs_local_OR1K_GCC_VERSION = $(labs_network_OR1K_GCC_VERSION) 43 labs_local_OR1K = $(labs_network_OR1K) 44 labs_local_NEWLIB = $(labs_network_NEWLIB) 45 labs_local_QT = $(labs_network_QT) 46 labs_local_EV67_GCC_BASENAME = $(labs_network_EV67_GCC_BASENAME) 47 labs_local_EV67_GCC_VERSION = $(labs_network_EV67_GCC_VERSION) 48 labs_local_EV67 = $(labs_network_EV67) 12 labs_ENV = export PATH=$${PATH}:/bin:/usr/bin:/users/chaos/kane/Softwares/distcc/bin 13 labs_SYSTEMC_systemc = /users/chaos/kane/Softwares/systemc 14 labs_SYSTEMC_systemcass = /users/chaos/kane/Softwares/systemcass 15 labs_SYSTEMC_systemcass_deps = $(labs_SYSTEMC_systemcass) 16 labs_XILINX = /users/chaos/kane/Softwares/Xilinx92i 17 labs_XILINX_CORELIB = /users/chaos/kane/Softwares/XilinxCoreLib 18 labs_MODELTECH = /users/chaos/kane/Softwares/modeltech 19 labs_MODELTECH_LICENCE = /users/soft/mentor/mgls_v8-5_0-5-0.ss5/etc/cust/mgc/license.anacad.2008 20 labs_OR1K_GCC_BASENAME = or32-elf 21 #labs_OR1K_GCC_VERSION = 4.2.2 22 labs_OR1K_GCC_VERSION = 3.4.4 23 labs_OR1K = /users/chaos/kane/Softwares/$(labs_OR1K_GCC_BASENAME)-$(labs_OR1K_GCC_VERSION) 24 labs_NEWLIB = /users/chaos/kane/Softwares/newlib/$(labs_OR1K_GCC_BASENAME) 25 labs_QT = /users/chaos/kane/Softwares/qt-x11-opensource-4.2.3 26 labs_EV67_GCC_BASENAME = alphaev67-unknown-linux-gnu 27 labs_EV67_GCC_VERSION = 4.3.2 28 #labs_EV67_GCC_BASENAME = alpha-unknown-linux-gnu 29 #labs_EV67_GCC_VERSION = 4.0.2 30 labs_EV67 = /users/chaos/kane/Softwares/$(labs_EV67_GCC_BASENAME) 31 #labs_EV67 = /users/chaos/kane/Softwares/gcc-4.0.2-glibc-2.3.6/$(labs_EV67_GCC_BASENAME) 49 32 50 33 #---------------------------------------------------------- … … 69 52 70 53 #---------------------------------------------------------- 54 # NETTOP (mc-mishima) 55 #---------------------------------------------------------- 56 nettop_ENV = export PATH=$$PATH:/bin:/usr/bin 57 nettop_SYSTEMC_systemc = /media/disk/Software/systemc-2.2.0 58 nettop_SYSTEMC_systemcass = /media/disk/Software/systemcass 59 nettop_SYSTEMC_systemcass_deps = $(nettop_SYSTEMC_systemcass) 60 nettop_XILINX = /media/disk/Software/Xilinx91i 61 nettop_XILINX_CORELIB = /media/disk/Software/XilinxCoreLib 62 nettop_MODELTECH = /media/disk/Software/modelsim/modeltech-6.2b 63 nettop_MODELTECH_LICENCE = /media/disk/Software/modelsim/license/license_modelsim-SE-6.2b 64 nettop_OR1K_GCC_BASENAME = or32-elf 65 nettop_OR1K_GCC_VERSION = 3.4.4 66 nettop_OR1K = /media/disk/Software/$(nettop_OR1K_GCC_BASENAME) 67 nettop_NEWLIB = /media/disk/Software/newlib/$(nettop_OR1K_GCC_BASENAME) 68 nettop_QT = /media/disk/Software/qt 69 nettop_EV67_GCC_BASENAME = 70 nettop_EV67_GCC_VERSION = 71 nettop_EV67 = 72 73 #---------------------------------------------------------- 71 74 # Path 72 75 #---------------------------------------------------------- -
trunk/Version
r142 r143 1 0 2 14 2 Castor 04 0820101 0 2 143 Castor 02 09 2010 -
trunk/environment.sh
r139 r143 1 1 #!/bin/bash 2 2 3 declare localization="labs_network"; 3 declare localization="labs"; 4 declare type="cosim"; 5 declare type_list=("systemc" "vhdl" "cosim" "debug" "debug_systemc"); 6 declare distcc=0; 4 7 declare file_version="Version"; 8 declare error=0; 5 9 6 10 #-----[ environment_usage ]-------------------------------- 7 11 function environment_usage () 8 12 { 9 echo "Usage : ${0} [ localization]";13 echo "Usage : ${0} [-l localization] [-t type] [-d]"; 10 14 # exit; 11 15 } … … 14 18 function environment_test_usage () 15 19 { 16 if test ${#} -ne 1 -a ${#} -ne 0; then 17 environment_usage; 20 # if test ${#} -gt 1 -a ${#} -lt 0; then 21 # environment_usage ${*}; 22 # fi; 23 24 TEMP=`getopt -o l:t:hd -- "$@"` 25 26 if test $? != 0; then 27 echo "Error in argument parsing"; 28 error=1; 18 29 fi; 19 30 20 if test ${#} -eq 1; then 21 localization=${1}; 22 23 # else : default localization 31 if test ${error} -eq 0; then 32 33 eval set -- "$TEMP" 34 35 while true ; do 36 case "$1" in 37 -t) type=${2}; shift 2;; 38 -l) localization=${2}; shift 2;; 39 -h) environment_usage ${*}; shift;; 40 -d) distcc=1; shift;; 41 --) shift ; break ;; 42 *) echo "Internal error"; error=1;; 43 esac 44 done 24 45 fi; 25 46 } … … 39 60 export MORPHEO_DATE_YEAR=$( echo ${version} | cut -d ' ' -f 7); 40 61 41 42 62 echo "Morpheo ${MORPHEO_MAJOR_VERSION}.${MORPHEO_MINOR_VERSION}.${MORPHEO_REVISION} \"${MORPHEO_CODENAME}\" (${MORPHEO_DATE_DAY}/${MORPHEO_DATE_MONTH}/${MORPHEO_DATE_YEAR})"; 43 63 } … … 48 68 environment_test_usage ${*}; 49 69 50 local OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'` 70 if test ${error} -eq 0; then 71 local OS_FOUND=`uname -s`-`uname -m | sed -e 's/i[0-9]/iX/' -e 's/sun4./sun4X/'` 51 72 52 case ${OS_FOUND} in 53 "Linux-iX86") 54 export TARGET_ARCH=linux; 55 export EXE_SUFFIX=; 56 ;; 57 *) 58 echo "Unknown OS found" 59 esac 60 61 cd $(dirname ${BASH_SOURCE[0]}); 62 export MORPHEO_TOPLEVEL=${PWD}; 63 cd - &> /dev/null; 64 65 # Export environment 66 export MORPHEO_LOCALIZATION=${localization}; 67 export MORPHEO_SCRIPT=${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Script; 68 export MORPHEO_HOME=${HOME}/.Morpheo; 69 local MORPHEO_XTTY=${MORPHEO_TOPLEVEL}/IPs/systemC/Environment/TTY/xtty; 70 local error=0; 73 case ${OS_FOUND} in 74 "Linux-iX86") 75 export TARGET_ARCH=linux; 76 export EXE_SUFFIX=; 77 ;; 78 *) 79 echo "Unknown OS found" 80 esac 81 82 cd $(dirname ${BASH_SOURCE[0]}); 83 export MORPHEO_TOPLEVEL=${PWD}; 84 cd - &> /dev/null; 85 86 # Export environment 87 export MORPHEO_LOCALIZATION=${localization}; 88 export MORPHEO_TYPE=${type}; 89 export MORPHEO_DISTCC=${distcc}; 90 export MORPHEO_SCRIPT=${MORPHEO_TOPLEVEL}/IPs/systemC/processor/Morpheo/Script; 91 export MORPHEO_HOME=${HOME}/.Morpheo; 92 local MORPHEO_XTTY=${MORPHEO_TOPLEVEL}/IPs/systemC/Environment/TTY/xtty; 93 94 for i in ${type_list[*]}; do 95 if test "${i}" = "${MORPHEO_TYPE}"; then 96 error=0; 97 break; 98 fi; 99 done; 100 101 if test ${error} -ne 0; then 102 echo "Bad type : \"${MORPHEO_TYPE}\""; 103 fi; 71 104 72 case ${MORPHEO_LOCALIZATION} in 73 "labs_network") 74 export MORPHEO_PREFIX=/users/chaos/kane/Morpheo; 75 export MORPHEO_TMP=${MORPHEO_PREFIX}/tmp; 76 ;; 77 "labs_local") 78 export MORPHEO_PREFIX=/users/chaos/kane/Morpheo; 79 export MORPHEO_TMP=${MORPHEO_PREFIX}/tmp; 80 ;; 81 "home") 82 export MORPHEO_PREFIX=${HOME}/tmp/Morpheo; 83 export MORPHEO_TMP=${MORPHEO_PREFIX}/tmp; 84 ;; 85 *) 86 echo "Bad localization : \"${MORPHEO_LOCALIZATION}\""; 87 error=1; 88 environment_usage ${*}; 89 ;; 90 esac 105 case ${MORPHEO_LOCALIZATION} in 106 "labs") 107 export MORPHEO_PREFIX=/users/chaos/kane/Morpheo; 108 export MORPHEO_TMP=${MORPHEO_PREFIX}/tmp; 109 ;; 110 "home" | "nettop") 111 export MORPHEO_PREFIX=${HOME}/tmp/Morpheo; 112 export MORPHEO_TMP=${MORPHEO_PREFIX}/tmp; 113 ;; 114 *) 115 echo "Bad localization : \"${MORPHEO_LOCALIZATION}\""; 116 error=1; 117 ;; 118 esac 119 fi; 91 120 92 121 if test ${error} -eq 0; then … … 98 127 echo "Modification of environement's variable :" 99 128 echo " - MORPHEO_LOCALIZATION is set to ${MORPHEO_LOCALIZATION}" 129 echo " - MORPHEO_TYPE is set to ${MORPHEO_TYPE}" 130 echo " - MORPHEO_DISTCC is set to ${MORPHEO_DISTCC}" 100 131 echo " - MORPHEO_TOPLEVEL is set to ${MORPHEO_TOPLEVEL}" 101 132 echo " - MORPHEO_SCRIPT is set to ${MORPHEO_SCRIPT}" … … 111 142 echo ${PATH} |grep -q ${MORPHEO_SCRIPT}; 112 143 if test $? -eq 1; then 113 114 144 export PATH=${PATH}:${MORPHEO_SCRIPT} 145 echo " - PATH add ${MORPHEO_SCRIPT}" 115 146 fi; 116 147 … … 118 149 119 150 if test $? -eq 1; then 120 121 151 export PATH=${PATH}:${MORPHEO_XTTY} 152 echo " - PATH add ${MORPHEO_XTTY}" 122 153 fi; 123 154 124 155 echo "" 156 else 157 environment_usage ${*}; 125 158 fi; 126 159 } … … 129 162 environment ${*}; 130 163 164 unset error; 131 165 unset file_version; 166 unset type_list; 167 unset distcc; 168 unset type; 132 169 unset localization;
Note: See TracChangeset
for help on using the changeset viewer.