Last change
on this file since 41 was
41,
checked in by rosiere, 17 years ago
|
Vhdl_Testbench : Modification du testbench. Maintenant complétement encapsuler dans la classe "Interfaces".
Suppression de la class Vhdl_Testbench dans un avenir proche :D
Suppression du répertoire Configuration.old
|
File size:
826 bytes
|
Rev | Line | |
---|
[41] | 1 | #ifdef VHDL_TESTBENCH |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Interfaces.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | |
---|
| 15 | string Interfaces::get_clock (void) |
---|
| 16 | { |
---|
| 17 | string clock = ""; |
---|
| 18 | |
---|
| 19 | if (not _list_interface->empty()) |
---|
| 20 | { |
---|
| 21 | list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
| 22 | |
---|
| 23 | while (i != _list_interface->end()) |
---|
| 24 | { |
---|
| 25 | string str = (*i)->get_clock (); |
---|
| 26 | |
---|
| 27 | if (str != "") |
---|
| 28 | { |
---|
| 29 | if (clock != "") |
---|
| 30 | throw ErrorMorpheo ("<Interfaces.get_clock> : find too many clock."); |
---|
| 31 | clock = str; |
---|
| 32 | } |
---|
| 33 | ++i; |
---|
| 34 | } |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | if (clock == "") |
---|
| 38 | throw ErrorMorpheo ("<Interfaces.get_clock> : no clock find."); |
---|
| 39 | |
---|
| 40 | return clock; |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
| 45 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.