source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_set_entity.cpp @ 113

Last change on this file since 113 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
RevLine 
[31]1/*
2 * $Id: Component_set_entity.cpp 113 2009-04-14 18:39:12Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
[42]8#include "Behavioural/include/Component.h"
[31]9
10namespace morpheo              {
11namespace behavioural          {
12
[43]13#undef  FUNCTION
14#define FUNCTION "Component::set_entity"
[113]15  Entity * Component::set_entity (std::string  name
16                                  ,std::string type
[42]17#ifdef POSITION
[113]18                                  ,schema_t    schema
[42]19#endif
20                                  )
[31]21  {
[43]22    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
[113]23
24    if (_entity != NULL)
25      throw ERRORMORPHEO(FUNCTION,_("Entity is already allocated.\n"));
[43]26   
[42]27    Entity * entity = new Entity (name   
28                                  ,type   
29#ifdef POSITION
30                                  ,schema
31#endif
[57]32                                  ,_usage
[42]33                                  );
[113]34
[31]35    _entity = entity;
36   
[43]37    log_printf(FUNC,Behavioural,FUNCTION,"End");
38
[31]39    return entity;
40  };
41
42}; // end namespace behavioural         
43}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.