Last change
on this file since 145 was
145,
checked in by rosiere, 14 years ago
|
1) add test with SPECINT2K
2) new config of Selftest
3) modif RAT to support multiple depth_save ... but not finish (need fix Update Prediction Table)
4) add Function_pointer but need fix
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id: main.cpp 145 2010-10-13 18:15:51Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Internal_Banked/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_port_read (unsigned int)" << endl |
---|
17 | << " - nb_port_write (unsigned int)" << endl |
---|
18 | << " - nb_word (unsigned int)" << endl |
---|
19 | << " - size_word (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_port_read = atoi(argv[2]); |
---|
34 | const uint32_t nb_port_write = atoi(argv[3]); |
---|
35 | const uint32_t nb_word = atoi(argv[4]); |
---|
36 | const uint32_t size_word = atoi(argv[5]); |
---|
37 | |
---|
38 | morpheo::behavioural::generic::registerfile::registerfile_internal_banked::Parameters * param = new morpheo::behavioural::generic::registerfile::registerfile_internal_banked::Parameters |
---|
39 | (nb_port_read , |
---|
40 | nb_port_write, |
---|
41 | nb_word , |
---|
42 | size_word ); |
---|
43 | |
---|
44 | test (name,param); |
---|
45 | |
---|
46 | return (EXIT_SUCCESS); |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.