Rev | Line | |
---|
[10] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Generic/Victim/Pseudo_LRU/SelfTest/include/test.h" |
---|
| 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 |
---|
| 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 | exit (1); |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | #ifndef SYSTEMC |
---|
| 24 | int main (int argc, char * argv[]) |
---|
| 25 | #else |
---|
| 26 | int sc_main (int argc, char * argv[]) |
---|
| 27 | #endif |
---|
| 28 | { |
---|
| 29 | if (argc != 2+NB_PARAMS) |
---|
| 30 | usage (argv[0]); |
---|
| 31 | |
---|
| 32 | const string name = argv[1]; |
---|
| 33 | const uint32_t nb_entity = atoi(argv[2]); |
---|
| 34 | const uint32_t nb_access = atoi(argv[3]); |
---|
| 35 | const uint32_t nb_update = atoi(argv[4]); |
---|
| 36 | const uint32_t size_table = atoi(argv[5]); |
---|
| 37 | |
---|
| 38 | morpheo::behavioural::generic::victim::pseudo_lru::Parameters param (nb_entity , |
---|
| 39 | nb_access , |
---|
| 40 | nb_update , |
---|
| 41 | size_table); |
---|
| 42 | |
---|
| 43 | test (name,param); |
---|
| 44 | |
---|
| 45 | return (EXIT_SUCCESS); |
---|
| 46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.