Last change
on this file since 75 was
73,
checked in by rosiere, 17 years ago
|
add two component :
- Write Queue (in Moore version)
- Execute Queue
add macro to help the interface allocation : Allocation.h
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
[73] | 4 | * [ Description ] |
---|
[2] | 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/@DIRECTORY/SelfTest/include/test.h" |
---|
| 9 | |
---|
| 10 | #define NB_PARAMS 0 |
---|
| 11 | |
---|
[15] | 12 | void usage (int argc, char * argv[]) |
---|
[2] | 13 | { |
---|
[71] | 14 | err (_("<Usage> %s name_instance list_params.\n"),argv[0]); |
---|
| 15 | err (_("list_params is :\n")); |
---|
[2] | 16 | |
---|
| 17 | exit (1); |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | #ifndef SYSTEMC |
---|
| 21 | int main (int argc, char * argv[]) |
---|
| 22 | #else |
---|
| 23 | int sc_main (int argc, char * argv[]) |
---|
| 24 | #endif |
---|
| 25 | { |
---|
[55] | 26 | if (argc != 2+NB_PARAMS) |
---|
[15] | 27 | usage (argc, argv); |
---|
[2] | 28 | |
---|
[62] | 29 | uint32_t x = 1; |
---|
[2] | 30 | |
---|
[62] | 31 | const string name = argv[x++]; |
---|
| 32 | //const uint32_t size_data = atoi(argv[x++]); |
---|
| 33 | //const uint32_t nb_port = atoi(argv[x++]); |
---|
| 34 | |
---|
[2] | 35 | try |
---|
| 36 | { |
---|
[50] | 37 | morpheo::behavioural::@NAMESPACE_USE::Parameters * param = new morpheo::behavioural::@NAMESPACE_USE::Parameters |
---|
| 38 | (//size_data, |
---|
| 39 | //nb_port |
---|
| 40 | ); |
---|
[2] | 41 | |
---|
[72] | 42 | msg(_("%s"),param->print(1).c_str()); |
---|
[2] | 43 | |
---|
| 44 | test (name,param); |
---|
| 45 | } |
---|
| 46 | catch (morpheo::ErrorMorpheo & error) |
---|
| 47 | { |
---|
[72] | 48 | msg (_("<%s> : %s.\n"),name.c_str(), error.what ()); |
---|
[15] | 49 | exit (EXIT_FAILURE); |
---|
[2] | 50 | } |
---|
| 51 | catch (...) |
---|
| 52 | { |
---|
[72] | 53 | err (_("<%s> : This test must generate a error.\n"),name.c_str()); |
---|
[2] | 54 | exit (EXIT_FAILURE); |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | return (EXIT_SUCCESS); |
---|
| 58 | } |
---|
| 59 | |
---|
Note: See
TracBrowser
for help on using the repository browser.