source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_set_component.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: 1.1 KB
RevLine 
[31]1/*
2 * $Id: Component_set_component.cpp 113 2009-04-14 18:39:12Z rosiere $
3 *
[113]4 * [ Description ]
[31]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_component"
[42]15  void Component::set_component (Component * component
16#ifdef POSITION
[57]17                                 ,uint32_t   pos_x 
18                                 ,uint32_t   pos_y 
19                                 ,uint32_t   size_x
20                                 ,uint32_t   size_y
[42]21#endif
[57]22                                 ,Tinstance_t instance
[113]23                                 ,std::string architecture
[42]24                                 )
[31]25  {
[43]26    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
27
[42]28    Entity * entity = component->_entity;
[38]29
[57]30    Tcomponent_t * entry = new Tcomponent_t;
31   
[113]32    entry->_component    = component;
33    entry->_instance     = instance;
34    entry->_architecture = architecture;
35    entry->_entity       = entity;
[31]36
[57]37    _list_component->push_back(entry);
38
[42]39#ifdef POSITION
[57]40    if (instance & INSTANCE_POSITION)
41      entity->mapping( pos_x, pos_y, size_x, size_y);
[42]42#endif
[43]43
44    log_printf(FUNC,Behavioural,FUNCTION,"End");
[31]45  };
46
47}; // end namespace behavioural         
48}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.