Last change
on this file since 63 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:
964 bytes
|
Rev | Line | |
---|
[41] | 1 | #ifdef VHDL_TESTBENCH |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Interface.h" |
---|
| 10 | #include "Behavioural/include/Entity.h" |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | |
---|
| 15 | void Interface::testbench_body (Vhdl * & vhdl, |
---|
[42] | 16 | string counter_name, |
---|
| 17 | string reset_name ) |
---|
[41] | 18 | { |
---|
| 19 | log_printf(FUNC,Behavioural,"testbench_body","Begin"); |
---|
| 20 | |
---|
| 21 | if (_list_signal->empty()== false) |
---|
| 22 | { |
---|
| 23 | list<Signal*>::iterator i = _list_signal->begin(); |
---|
| 24 | |
---|
| 25 | vhdl->set_body("------------------------------------------------------"); |
---|
| 26 | vhdl->set_body("-- interface \""+_name+"\""); |
---|
| 27 | vhdl->set_body("------------------------------------------------------"); |
---|
| 28 | |
---|
| 29 | while (i != _list_signal->end()) |
---|
| 30 | { |
---|
[42] | 31 | (*i)->testbench_body(vhdl, counter_name, reset_name); |
---|
[41] | 32 | ++i; |
---|
| 33 | } |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | log_printf(FUNC,Behavioural,"testbench_body","End"); |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | }; // end namespace behavioural |
---|
| 40 | }; // end namespace morpheo |
---|
| 41 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.