Last change
on this file since 42 was
42,
checked in by rosiere, 17 years ago
|
Modification des classes d'encapsulation des interfaces :
- gère les signaux à écrire dans le vhdl
- les traces pour le testbench
- la génération des vhdl structurelles
-> test sur la Pattern History Table
|
File size:
720 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 | |
---|
[42] | 15 | Signal * Interface::get_clock (void) |
---|
[41] | 16 | { |
---|
[42] | 17 | Signal * clock = NULL; |
---|
[41] | 18 | |
---|
| 19 | if (not _list_signal->empty()) |
---|
| 20 | { |
---|
| 21 | list<Signal*>::iterator i = _list_signal->begin(); |
---|
| 22 | |
---|
| 23 | while (i != _list_signal->end()) |
---|
| 24 | { |
---|
[42] | 25 | Signal * sig = (*i)->get_clock (); |
---|
[41] | 26 | |
---|
[42] | 27 | if (sig != NULL) |
---|
[41] | 28 | { |
---|
[42] | 29 | if (clock != NULL) |
---|
[41] | 30 | throw ErrorMorpheo ("<Interface.get_clock> : find too many clock."); |
---|
[42] | 31 | clock = sig; |
---|
[41] | 32 | } |
---|
| 33 | ++i; |
---|
| 34 | } |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | return clock; |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace behavioural |
---|
| 41 | }; // end namespace morpheo |
---|
| 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.