Last change
on this file since 61 was
57,
checked in by rosiere, 17 years ago
|
- VHDL - RegisterFile_Multi_Banked (only partial_crossbar)
- SystemC - modif Component, interface and co -> ajout du type Tusage_T pour instancier un coposant mais ne demander que le VHDL ou le systemC.
- Séminaire interne
|
File size:
1.3 KB
|
Rev | Line | |
---|
[29] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Interfaces.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
[43] | 13 | #undef FUNCTION |
---|
| 14 | #define FUNCTION "Interfaces::set_interface" |
---|
[42] | 15 | Interface_fifo * Interfaces::set_interface (string name |
---|
| 16 | #ifdef POSITION |
---|
| 17 | ,direction_t direction |
---|
| 18 | ,localisation_t localisation |
---|
| 19 | #endif |
---|
| 20 | ) |
---|
[29] | 21 | { |
---|
[43] | 22 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 23 | |
---|
[42] | 24 | Interface_fifo * interface = new Interface_fifo (name |
---|
| 25 | #ifdef POSITION |
---|
| 26 | ,direction |
---|
| 27 | ,localisation |
---|
| 28 | #endif |
---|
[57] | 29 | ,_usage); |
---|
[31] | 30 | |
---|
[38] | 31 | _list_interface->push_back (interface); |
---|
[31] | 32 | |
---|
[43] | 33 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[38] | 34 | return interface; |
---|
[29] | 35 | }; |
---|
| 36 | |
---|
[42] | 37 | #ifdef POSITION |
---|
[43] | 38 | #undef FUNCTION |
---|
| 39 | #define FUNCTION "Interfaces::set_interface" |
---|
[40] | 40 | Interface_fifo * Interfaces::set_interface (string name , |
---|
[43] | 41 | direction_t direction , |
---|
| 42 | localisation_t localisation, |
---|
| 43 | string comment ) |
---|
[31] | 44 | { |
---|
[43] | 45 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[40] | 46 | Interface_fifo * interface = set_interface(name, direction, localisation); |
---|
[31] | 47 | |
---|
| 48 | interface->set_comment (comment); |
---|
[29] | 49 | |
---|
[43] | 50 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[31] | 51 | return interface; |
---|
| 52 | }; |
---|
[42] | 53 | #endif |
---|
[31] | 54 | |
---|
[29] | 55 | }; // end namespace behavioural |
---|
| 56 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.