Last change
on this file since 146 was
113,
checked in by rosiere, 15 years ago
|
1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile
|
-
Property svn:keywords set to
Id
|
File size:
1.0 KB
|
Rev | Line | |
---|
[113] | 1 | /* |
---|
| 2 | * $Id: Component_get_sc_signal.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Component.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
| 13 | #undef FUNCTION |
---|
| 14 | #define FUNCTION "Component::get_sc_signal" |
---|
| 15 | void * Component::get_sc_signal (std::string component, |
---|
| 16 | std::string port ) |
---|
| 17 | { |
---|
| 18 | log_begin(Behavioural,FUNCTION); |
---|
| 19 | |
---|
| 20 | std::string name_entity = _entity->get_name(); |
---|
| 21 | |
---|
| 22 | Entity * entity = find_entity(component); |
---|
| 23 | |
---|
| 24 | if (entity == NULL) |
---|
| 25 | throw (ERRORMORPHEO (FUNCTION,"In component \""+name_entity+"\", the component \""+component+"\" is unknow.\n")); |
---|
| 26 | |
---|
| 27 | Signal * signal = entity->find_signal (port); |
---|
| 28 | |
---|
| 29 | if (signal == NULL) |
---|
| 30 | throw (ERRORMORPHEO (FUNCTION,"In component \""+name_entity+"\", the component \""+component+"\" have not the signal \""+port+"\".\n")); |
---|
| 31 | |
---|
| 32 | void * _return = signal->get_sc_signal(); |
---|
| 33 | |
---|
| 34 | log_end(Behavioural,FUNCTION); |
---|
| 35 | |
---|
| 36 | return _return; |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | }; // end namespace behavioural |
---|
| 40 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.