Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/SelfTest/src/main.cpp
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/SelfTest/src/main.cpp
r87 r88 9 9 #include "Behavioural/Custom/include/Custom_example.h" 10 10 11 #define NB_PARAMS 811 #define NB_PARAMS 6 12 12 13 13 void usage (int argc, char * argv[]) … … 15 15 err (_("<Usage> %s name_instance list_params.\n"),argv[0]); 16 16 err (_("list_params is :\n")); 17 err (_(" * nb_context (uint32_t )\n")); 18 err (_(" * nb_inst_fetch [nb_context] (uint32_t )\n")); 19 err (_(" * nb_inst_decod (uint32_t )\n")); 20 err (_(" * nb_branch_speculated (uint32_t )\n")); 21 err (_(" * size_branch_update_prediction (uint32_t )\n")); 22 err (_(" * nb_context_select (uint32_t )\n")); 23 err (_(" * size_general_data (uint32_t )\n")); 24 err (_(" * priority (Tpriority_t )\n")); 25 err (_(" * load_balancing (Tload_balancing_t)\n")); 17 err (_(" * nb_context (uint32_t )\n")); 18 err (_(" * nb_inst_fetch [nb_context] (uint32_t )\n")); 19 err (_(" * nb_inst_decod (uint32_t )\n")); 20 err (_(" * nb_branch_speculated [nb_context] (uint32_t )\n")); 21 err (_(" * nb_context_select (uint32_t )\n")); 22 err (_(" * size_general_data (uint32_t )\n")); 23 err (_(" * priority (Tpriority_t )\n")); 24 err (_(" * load_balancing (Tload_balancing_t)\n")); 26 25 27 26 exit (1); … … 42 41 uint32_t _nb_context = fromString<uint32_t >(argv[x++]); 43 42 44 if (argc != static_cast<int>(2+NB_PARAMS+ _nb_context))43 if (argc != static_cast<int>(2+NB_PARAMS+2*_nb_context)) 45 44 usage (argc, argv); 46 45 47 uint32_t * _nb_inst_fetch = new uint32_t [_nb_context];46 uint32_t * _nb_inst_fetch = new uint32_t [_nb_context]; 48 47 for (uint32_t i=0;i<_nb_context; i++) 49 48 _nb_inst_fetch [i] = fromString<uint32_t>(argv[x++]); 50 49 51 50 uint32_t _nb_inst_decod = fromString<uint32_t >(argv[x++]); 52 uint32_t _nb_branch_speculated = fromString<uint32_t >(argv[x++]); 53 uint32_t _size_branch_update_prediction= fromString<uint32_t >(argv[x++]); 51 52 uint32_t * _nb_branch_speculated = new uint32_t [_nb_context]; 53 for (uint32_t i=0;i<_nb_context; i++) 54 _nb_branch_speculated [i] = fromString<uint32_t>(argv[x++]); 55 56 // uint32_t * _size_branch_update_prediction= new uint32_t [_nb_context]; 57 // for (uint32_t i=0;i<_nb_context; i++) 58 // _size_branch_update_prediction[i] = fromString<uint32_t>(argv[x++]); 59 54 60 uint32_t _nb_context_select = fromString<uint32_t >(argv[x++]); 55 61 uint32_t _size_general_data = fromString<uint32_t >(argv[x++]); … … 63 69 64 70 for (uint32_t j=0; j<NB_INSTRUCTION; j++) 65 71 _instruction_implemeted [i][j] = true; 66 72 } 67 73 … … 70 76 { 71 77 morpheo::behavioural::core::multi_front_end::front_end::decod_unit::decod::Parameters * param = new morpheo::behavioural::core::multi_front_end::front_end::decod_unit::decod::Parameters 72 (_nb_context , 73 _nb_inst_fetch , 74 _nb_inst_decod , 75 _nb_branch_speculated , 76 _size_branch_update_prediction, 77 _nb_context_select , 78 _size_general_data , 79 _priority , 80 _load_balancing , 81 _instruction_implemeted , 82 &(morpheo::behavioural::custom::example_get_custom_information) 83 ); 78 (_nb_context , 79 _nb_inst_fetch , 80 _nb_inst_decod , 81 _nb_branch_speculated , 82 // _size_branch_update_prediction, 83 _nb_context_select , 84 _size_general_data , 85 _priority , 86 _load_balancing , 87 _instruction_implemeted , 88 &(morpheo::behavioural::custom::example_get_custom_information), 89 true // is_toplevel 90 ); 84 91 85 92 msg(_("%s"),param->print(1).c_str()); … … 100 107 delete _nb_inst_fetch; 101 108 delete _instruction_implemeted; 109 delete _nb_branch_speculated; 110 // delete _size_branch_update_prediction; 111 102 112 return (_return); 103 113 }
Note: See TracChangeset
for help on using the changeset viewer.