Last change
on this file was
146,
checked in by rosiere, 14 years ago
|
1) Integration of RegisterFile_Internal_Banked in RegisterFile?
2) Erase "read_write" interface in RegisterFile_Monolithic component
3) Add smith predictor parameters in Load_store_pointer_unit.
4) Fix not statistics flags
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
File size:
3.1 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | function usage() |
---|
4 | { |
---|
5 | echo "${0} option"; |
---|
6 | echo " -h : print this message"; |
---|
7 | echo " -t : test rule"; |
---|
8 | echo " -m : modify all files"; |
---|
9 | exit 1; |
---|
10 | } |
---|
11 | |
---|
12 | function modif_param () |
---|
13 | { |
---|
14 | # example : |
---|
15 | |
---|
16 | # sed s/\<parameter\ name=\"commit_priority\"/\<parameter\ name=\"retire_ooo_scheme\"\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ value=\"0\"\ \\/\>\\\n\ \ \ \ \<parameter\ name=\"commit_priority\"/ ${1}; |
---|
17 | # sed s/\<link\ name=\"link_read_bloc_and_functionnal_unit\"\ \ \ \ \ src=\"0.0\"/\<link\ name=\"link_read_bloc_with_load_store_unit\"\ \ \ \ \ src=\"0\"\ \ \ \ \ dest=\"0\"\ \ \ \\/\>\\\n\ \ \<link\ name=\"link_read_bloc_and_functionnal_unit\"\ \ \ \ \ src=\"0.0\"/ ${1}; |
---|
18 | # sed s/\<link\ name=\"link_write_bloc_and_load_store_unit\"\ \ \ \ \ src=\"0.0\"/\<link\ name=\"link_write_bloc_with_load_store_unit\"\ \ \ \ src=\"0\"\ \ \ \ \ dest=\"0\"\ \ \ \\/\>\\\n\ \ \<link\ name=\"link_write_bloc_and_load_store_unit\"\ \ \ \ \ src=\"0.0\"/ ${1}; |
---|
19 | # sed s/\<parameter\ name=\"nb_port_check\"/\<parameter\ name=\"nb_load_queue_bank\"\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ value=\"1\"\ \\/\>\\\n\ \ \ \ \<parameter\ name=\"nb_port_check\"/ ${1}; |
---|
20 | # sed s/\<parameter\ name=\"nb_bypass_memory\"/\<parameter\ name=\"speculative_commit\"\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ value=\"1\"\ \\/\>\\\n\ \ \ \ \<parameter\ name=\"nb_bypass_memory\"/ ${1}; |
---|
21 | |
---|
22 | |
---|
23 | # sed s/\<parameter\ name=\"nb_bypass_memory\"/\<predictor\ id=\"0\"\>\\\n\ \ \ \ \<parameter\ name=\"nb_bypass_memory\"/ ${1}; |
---|
24 | # sed s/\<parameter\ name=\"nb_bypass_memory\"/\ \ \<parameter\ name=\"lsu_pht_nb_counter\"\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ value=\"64\"\\/\>\\\n\ \ \ \ \<parameter\ name=\"nb_bypass_memory\"/ ${1}; |
---|
25 | # sed s/\<parameter\ name=\"nb_bypass_memory\"/\<\\/predictor\>\\\n\ \ \ \ \<parameter\ name=\"nb_bypass_memory\"/ ${1}; |
---|
26 | # sed s/\<parameter\ name=\"nb_reg_free\"/\<parameter\ name=\"rat_scheme\"\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ value=\"1\"\ \\/\>\\\n\ \ \ \ \<parameter\ name=\"nb_reg_free\"/ ${1}; |
---|
27 | |
---|
28 | # sed s/\<parameter\ name=\"lsu_pht_nb_counter\"\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ value=\"64\"\\/\>/\<parameter\ name=\"lsu_pht_nb_counter\"\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ value=\"64\"\\/\>\\\n\ \ \ \ \ \ \<parameter\ name=\"lsu_pht_scheme\"\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ value=\"0\"\\/\>/ ${1}; |
---|
29 | |
---|
30 | # sed s/\<parameter\ name=\"dir_pht_size_address_share\"\ \ \ \ \ \ \ \ \ \ value=\"0\"\ \\/\>/\<parameter\ name=\"dir_pht_size_address_share\"\ \ \ \ \ \ \ \ \ \ value=\"0\"\ \\/\>\\\n\ \ \ \ \ \ \<parameter\ name=\"dir_pht_scheme\"\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ value=\"0\"\\/\>/ ${1}; |
---|
31 | |
---|
32 | echo "Need Rule"; |
---|
33 | } |
---|
34 | |
---|
35 | function modif_file () |
---|
36 | { |
---|
37 | echo ${1}; |
---|
38 | |
---|
39 | modif_param ${1} > tmp; |
---|
40 | mv tmp ${1}; |
---|
41 | } |
---|
42 | |
---|
43 | function modif_files () |
---|
44 | { |
---|
45 | for i in *.cfg; do |
---|
46 | modif_file ${i}; |
---|
47 | done |
---|
48 | } |
---|
49 | |
---|
50 | function main () |
---|
51 | { |
---|
52 | set -- $(getopt :tmh "$@") |
---|
53 | for arg |
---|
54 | do case "$arg" in |
---|
55 | -t) modif_param debug.cfg; break;; |
---|
56 | -m) modif_files; break;; |
---|
57 | -h) usage ${*}; break;; |
---|
58 | --) usage ${*}; break;; |
---|
59 | esac |
---|
60 | done |
---|
61 | } |
---|
62 | |
---|
63 | main ${*}; |
---|
Note: See
TracBrowser
for help on using the repository browser.