Last change
on this file since 61 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
869 bytes
|
Rev | Line | |
---|
[41] | 1 | #ifdef VHDL_TESTBENCH |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Interface.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | |
---|
[43] | 15 | #undef FUNCTION |
---|
| 16 | #define FUNCTION "Interface::" |
---|
[42] | 17 | Signal * Interface::get_clock (void) |
---|
[41] | 18 | { |
---|
[43] | 19 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 20 | |
---|
[42] | 21 | Signal * clock = NULL; |
---|
[41] | 22 | |
---|
| 23 | if (not _list_signal->empty()) |
---|
| 24 | { |
---|
| 25 | list<Signal*>::iterator i = _list_signal->begin(); |
---|
| 26 | |
---|
| 27 | while (i != _list_signal->end()) |
---|
| 28 | { |
---|
[42] | 29 | Signal * sig = (*i)->get_clock (); |
---|
[41] | 30 | |
---|
[42] | 31 | if (sig != NULL) |
---|
[41] | 32 | { |
---|
[42] | 33 | if (clock != NULL) |
---|
[41] | 34 | throw ErrorMorpheo ("<Interface.get_clock> : find too many clock."); |
---|
[42] | 35 | clock = sig; |
---|
[41] | 36 | } |
---|
| 37 | ++i; |
---|
| 38 | } |
---|
| 39 | } |
---|
| 40 | |
---|
[43] | 41 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[41] | 42 | return clock; |
---|
| 43 | }; |
---|
| 44 | |
---|
| 45 | }; // end namespace behavioural |
---|
| 46 | }; // end namespace morpheo |
---|
| 47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.