Last change
on this file since 49 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:
998 bytes
|
Rev | Line | |
---|
[29] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Interface.h" |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
| 14 | ostream& operator<< (ostream& output_stream, |
---|
| 15 | morpheo::behavioural::Interface & x) |
---|
| 16 | { |
---|
[38] | 17 | log_printf(FUNC,Behavioural,"operator<<","Begin"); |
---|
[42] | 18 | #ifdef POSITION |
---|
[29] | 19 | output_stream << x._name + "\t"+toString(x._localisation)+"\t"+toString(x._direction) << endl; |
---|
| 20 | output_stream << x.get_comment() << endl; |
---|
[42] | 21 | #else |
---|
| 22 | output_stream << x._name << endl; |
---|
| 23 | #endif |
---|
[29] | 24 | output_stream << x.get_signal () << endl; |
---|
[40] | 25 | |
---|
[41] | 26 | // #ifdef VHDL_TESTBENCH |
---|
| 27 | // if (x._list_cycle->empty()== false) |
---|
| 28 | // { |
---|
| 29 | // list<string>::iterator i = x._list_cycle->begin(); |
---|
[40] | 30 | |
---|
[41] | 31 | // while (i != x._list_cycle->end()) |
---|
| 32 | // { |
---|
| 33 | // output_stream << "\n\t" << *i ; |
---|
| 34 | // ++i; |
---|
| 35 | // } |
---|
| 36 | // } |
---|
| 37 | // #endif |
---|
[40] | 38 | |
---|
[38] | 39 | log_printf(FUNC,Behavioural,"operator<<","End"); |
---|
[29] | 40 | return output_stream; |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | }; // end namespace behavioural |
---|
| 44 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.