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:
758 bytes
|
Rev | Line | |
---|
[42] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Signal.h" |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
| 14 | void Signal::mapping (Signal * signal) |
---|
| 15 | { |
---|
| 16 | if (_is_map == true) |
---|
| 17 | throw (ErrorMorpheo ("Signal \""+_name+"\", can't map, because it's already map.")); |
---|
| 18 | |
---|
| 19 | if (signal->_is_allocate == false) |
---|
| 20 | throw (ErrorMorpheo ("Signal \""+_name+"\", can't map with signal \""+signal->get_name()+"\", because it's not already allocate.")); |
---|
| 21 | |
---|
| 22 | if (_direction == OUT) |
---|
| 23 | { |
---|
| 24 | // This output is mapped |
---|
| 25 | _is_map = true; |
---|
| 26 | |
---|
| 27 | if (signal->_direction == OUT) |
---|
| 28 | _sc_signal_map = signal->_sc_signal_map; |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | }; |
---|
| 32 | |
---|
| 33 | }; // end namespace behavioural |
---|
| 34 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.