Changeset 122 for trunk/IPs/systemC/processor/Morpheo/Script
- Timestamp:
- Jun 3, 2009, 10:15:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Script/instruction_flow_diff.sh
r117 r122 34 34 # Read symbol file and take function address and function name 35 35 local -a array1_address; 36 local -a array1_load_data; 36 37 local -i cpt1; 37 38 local -i cpt2; … … 45 46 # extract address 46 47 address1=$(echo ${line} | cut -d' ' -f2); 48 load_data1=$(echo ${line} | cut -d' ' -f7); 47 49 48 50 array1_address[${cpt1}]=${address1}; 51 array1_load_data[${cpt1}]=${load_data1}; 49 52 50 53 cpt1=$((${cpt1}+1)); … … 56 59 cpt2=1; 57 60 address1=${array1_address[${cpt1}]}; 61 load_data1=${array1_load_data[${cpt1}]}; 58 62 59 63 while read line; do … … 67 71 # extract address 68 72 address2=$(echo ${line} | cut -d' ' -f2); 73 load_data2=$(echo ${line} | cut -d' ' -f7); 69 74 70 75 # test address 71 76 if test "${address1}" != "${address2}"; then 72 echo "diff line ${cpt2} :"; 77 echo "diff line ${cpt2} on address:"; 78 echo "${line}"; 79 exit; 80 fi; 81 82 if test "${load_data1}" != "${load_data2}"; then 83 echo "diff line ${cpt2} on load_data:"; 73 84 echo "${line}"; 74 85 exit; … … 77 88 cpt1=$((${cpt1}+1)); 78 89 address1=${array1_address[${cpt1}]}; 90 load_data1=${array1_load_data[${cpt1}]}; 79 91 80 92 fi;
Note: See TracChangeset
for help on using the changeset viewer.