Last change
on this file since 114 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.2 KB
|
Rev | Line | |
---|
[10] | 1 | /* |
---|
| 2 | * $Id: main.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[15] | 8 | #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/SelfTest/include/test.h" |
---|
[10] | 9 | |
---|
| 10 | #define NB_PARAMS 4 |
---|
| 11 | |
---|
| 12 | void usage (string exec) |
---|
| 13 | { |
---|
| 14 | cerr << "<Usage> " << exec << " name_instance list_params" << endl |
---|
| 15 | << "list_params is :" << endl |
---|
[78] | 16 | << " - nb_entity (unsigned int)" << endl |
---|
| 17 | << " - nb_access (unsigned int)" << endl |
---|
| 18 | // << " - nb_update (unsigned int)" << endl |
---|
| 19 | << " - size_table (unsigned int)" << endl |
---|
| 20 | << " - table_global (bool )" << endl; |
---|
[10] | 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 | |
---|
[78] | 33 | const string name = argv[1]; |
---|
| 34 | const uint32_t nb_entity = atoi(argv[2]); |
---|
| 35 | const uint32_t nb_access = atoi(argv[3]); |
---|
| 36 | // const uint32_t nb_update = atoi(argv[4]); |
---|
| 37 | const uint32_t size_table = atoi(argv[4]); |
---|
| 38 | const bool table_global = atoi(argv[5]); |
---|
| 39 | morpheo::behavioural::generic::victim::victim_pseudo_lru::Parameters param |
---|
| 40 | (nb_entity , |
---|
| 41 | nb_access , |
---|
| 42 | // nb_update , |
---|
| 43 | size_table, |
---|
| 44 | table_global); |
---|
[10] | 45 | |
---|
| 46 | test (name,param); |
---|
| 47 | |
---|
| 48 | return (EXIT_SUCCESS); |
---|
| 49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.