Last change
on this file since 45 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
1.1 KB
|
Rev | Line | |
---|
[29] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Interface.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
[31] | 13 | Signal * Interface::set_signal (string name , |
---|
| 14 | direction_t direction, |
---|
| 15 | uint32_t size , |
---|
| 16 | presence_port_t presence_port) |
---|
[29] | 17 | { |
---|
[38] | 18 | log_printf(FUNC,Behavioural,"set_signal","Begin"); |
---|
[29] | 19 | |
---|
[40] | 20 | string signame = signal_name(_name, name, direction); |
---|
[38] | 21 | |
---|
[42] | 22 | Signal * sig = new Signal (signame, direction, size, presence_port); |
---|
[29] | 23 | |
---|
[38] | 24 | _list_signal->push_back (sig); |
---|
| 25 | |
---|
| 26 | log_printf(FUNC,Behavioural,"set_signal","End"); |
---|
| 27 | |
---|
[31] | 28 | return sig; |
---|
[29] | 29 | }; |
---|
| 30 | |
---|
[41] | 31 | #ifdef VHDL |
---|
| 32 | # ifdef VHDL_TESTBENCH |
---|
[43] | 33 | |
---|
| 34 | #undef FUNCTION |
---|
| 35 | #define FUNCTION "Interface::set_signal" |
---|
[41] | 36 | void Interface::set_signal (Vhdl * & vhdl) |
---|
| 37 | { |
---|
[43] | 38 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[41] | 39 | if (not _list_signal->empty()) |
---|
| 40 | { |
---|
| 41 | list<Signal*>::iterator i = _list_signal->begin(); |
---|
| 42 | |
---|
| 43 | while (i != _list_signal->end()) |
---|
| 44 | { |
---|
| 45 | (*i)->set_signal (vhdl); |
---|
| 46 | ++i; |
---|
| 47 | } |
---|
| 48 | } |
---|
[43] | 49 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[41] | 50 | }; |
---|
| 51 | # endif |
---|
| 52 | #endif |
---|
| 53 | |
---|
[29] | 54 | }; // end namespace behavioural |
---|
| 55 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.