Last change
on this file since 125 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:
807 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Component_set_entity.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::set_entity" |
---|
15 | Entity * Component::set_entity (std::string name |
---|
16 | ,std::string type |
---|
17 | #ifdef POSITION |
---|
18 | ,schema_t schema |
---|
19 | #endif |
---|
20 | ) |
---|
21 | { |
---|
22 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
23 | |
---|
24 | if (_entity != NULL) |
---|
25 | throw ERRORMORPHEO(FUNCTION,_("Entity is already allocated.\n")); |
---|
26 | |
---|
27 | Entity * entity = new Entity (name |
---|
28 | ,type |
---|
29 | #ifdef POSITION |
---|
30 | ,schema |
---|
31 | #endif |
---|
32 | ,_usage |
---|
33 | ); |
---|
34 | |
---|
35 | _entity = entity; |
---|
36 | |
---|
37 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
38 | |
---|
39 | return entity; |
---|
40 | }; |
---|
41 | |
---|
42 | }; // end namespace behavioural |
---|
43 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.