source:
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_set_port.cpp
@
40
Last change on this file since 40 was 40, checked in by , 17 years ago | |
---|---|
File size: 842 bytes |
Rev | Line | |
---|---|---|
[29] | 1 | /* |
2 | * $Id$ | |
3 | * | |
4 | * [ Description ] | |
5 | * | |
6 | */ | |
7 | ||
8 | #include "Behavioural/include/Interfaces.h" | |
9 | ||
10 | ||
11 | namespace morpheo { | |
12 | namespace behavioural { | |
13 | ||
[40] | 14 | #ifdef VHDL |
[29] | 15 | void Interfaces::set_port (Vhdl * & vhdl) |
16 | { | |
[31] | 17 | if (not _list_interface->empty()) |
[29] | 18 | { |
[40] | 19 | list<Interface_fifo*>::iterator i = _list_interface->begin(); |
[29] | 20 | |
[31] | 21 | while (i != _list_interface->end()) |
[29] | 22 | { |
[38] | 23 | (*i)->set_port (vhdl); |
[29] | 24 | ++i; |
25 | } | |
26 | } | |
27 | }; | |
[40] | 28 | #endif |
[29] | 29 | |
[40] | 30 | |
31 | #ifdef VHDL_TESTBENCH | |
[29] | 32 | void Interfaces::set_port (Vhdl_Testbench * & vhdl_testbench) |
33 | { | |
[31] | 34 | if (not _list_interface->empty()) |
[29] | 35 | { |
[40] | 36 | list<Interface_fifo*>::iterator i = _list_interface->begin(); |
[29] | 37 | |
[31] | 38 | while (i != _list_interface->end()) |
[29] | 39 | { |
[38] | 40 | (*i)->set_port (vhdl_testbench); |
[29] | 41 | ++i; |
42 | } | |
43 | } | |
44 | }; | |
[40] | 45 | #endif |
[29] | 46 | |
47 | }; // end namespace behavioural | |
48 | }; // end namespace morpheo |
Note: See TracBrowser
for help on using the repository browser.