Last change
on this file since 53 was
15,
checked in by rosiere, 17 years ago
|
Interface normalisé
Début du banc de registres multi niveaux
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[15] | 8 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/SelfTest/include/test.h" |
---|
[2] | 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 | { |
---|
[6] | 29 | if (argc < 2+NB_PARAMS) |
---|
[2] | 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 | |
---|
[15] | 38 | morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters param (nb_port_read , |
---|
| 39 | nb_port_write, |
---|
[2] | 40 | nb_word , |
---|
| 41 | size_word ); |
---|
| 42 | |
---|
| 43 | test (name,param); |
---|
| 44 | |
---|
| 45 | return (EXIT_SUCCESS); |
---|
| 46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.