Last change
on this file since 81 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id: main.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | * Test 0 |
---|
| 7 | */ |
---|
| 8 | |
---|
[48] | 9 | #include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/Meta_Predictor/Two_Level_Branch_Predictor/Branch_History_Table/SelfTest/include/test.h" |
---|
[2] | 10 | |
---|
| 11 | #define NB_PARAMS 4 |
---|
| 12 | |
---|
| 13 | void usage (string exec) |
---|
| 14 | { |
---|
| 15 | cerr << "<Usage> " << exec << " name_instance list_params" << endl |
---|
| 16 | << "list_params is :" << endl |
---|
| 17 | << " - size_shifter (unsigned int)" << endl |
---|
| 18 | << " - nb_shifter (unsigned int)" << endl |
---|
| 19 | << " - nb_prediction (unsigned int)" << endl |
---|
| 20 | << " - nb_branch_complete (unsigned int)" << endl; |
---|
| 21 | exit (1); |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | #ifndef SYSTEMC |
---|
| 25 | int main (int argc, char * argv[]) |
---|
| 26 | #else |
---|
| 27 | int sc_main (int argc, char * argv[]) |
---|
| 28 | #endif |
---|
| 29 | { |
---|
| 30 | if (argc != 2+NB_PARAMS) |
---|
| 31 | usage (argv[0]); |
---|
| 32 | |
---|
| 33 | const string name = argv[1]; |
---|
| 34 | const uint32_t size_shifter = atoi(argv[2]); |
---|
| 35 | const uint32_t nb_shifter = atoi(argv[3]); |
---|
| 36 | const uint32_t nb_prediction = atoi(argv[4]); |
---|
| 37 | const uint32_t nb_branch_complete = atoi(argv[5]); |
---|
| 38 | |
---|
[48] | 39 | morpheo::behavioural::core::multi_front_end::front_end::prediction_unit::direction::meta_predictor::two_level_branch_predictor::branch_history_table::Parameters param (size_shifter , |
---|
[2] | 40 | nb_shifter , |
---|
| 41 | nb_prediction , |
---|
| 42 | nb_branch_complete ); |
---|
| 43 | |
---|
| 44 | test (name,param); |
---|
| 45 | |
---|
| 46 | return (EXIT_SUCCESS); |
---|
| 47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.