Last change
on this file since 68 was
55,
checked in by rosiere, 17 years ago
|
Ajout SystemC read_queue et reservation_station
Ajout port au bloc registerfile_monolithic (à ajouter également au bloc registerfile et registerfile_multi_banked)
Modif param : passage de pointeur (attention, tous les composants n'ont pas été tous modifier)
|
File size:
1.4 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/SelfTest/include/test.h" |
---|
9 | |
---|
10 | #define NB_PARAMS 5 |
---|
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_port_read_write (unsigned int)" << endl |
---|
19 | << " - nb_word (unsigned int)" << endl |
---|
20 | << " - size_word (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 nb_port_read = atoi(argv[2]); |
---|
35 | const uint32_t nb_port_write = atoi(argv[3]); |
---|
36 | const uint32_t nb_port_read_write = atoi(argv[4]); |
---|
37 | const uint32_t nb_word = atoi(argv[5]); |
---|
38 | const uint32_t size_word = atoi(argv[6]); |
---|
39 | |
---|
40 | morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters * param = new morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters |
---|
41 | (nb_port_read , |
---|
42 | nb_port_write, |
---|
43 | nb_port_read_write, |
---|
44 | nb_word , |
---|
45 | size_word ); |
---|
46 | |
---|
47 | test (name,param); |
---|
48 | |
---|
49 | return (EXIT_SUCCESS); |
---|
50 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.