- Timestamp:
- Jul 5, 2007, 5:50:19 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/include/New_Component.h
r41 r42 22 22 #include "Behavioural/@DIRECTORY/include/Statistics.h" 23 23 #endif 24 #ifdef POSITION 25 #include "Behavioural/include/Position.h" 26 #else 27 #include "Behavioural/include/Interfaces.h" 28 #endif 24 #include "Behavioural/include/Component.h" 29 25 #ifdef VHDL 30 26 #include "Behavioural/include/Vhdl.h" … … 55 51 #endif 56 52 57 #ifdef POSITION 58 private : Position * _position; 59 #endif 60 53 public : Component * _component; 61 54 private : Interfaces * _interfaces; 62 55 … … 107 100 #if VHDL 108 101 public : void vhdl (void); 109 private : void vhdl_port (Vhdl & vhdl);110 102 private : void vhdl_declaration (Vhdl & vhdl); 111 103 private : void vhdl_body (Vhdl & vhdl); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp
r40 r42 19 19 log_printf(FUNC,@COMPONENT,"allocation","Begin"); 20 20 21 _component = new Component (); 22 23 Entity * entity = _component->set_entity (_name 21 24 #ifdef POSITION 22 _position = new Position (); 23 24 Entity * entity = _position->set_entity (_name , 25 "@COMPONENT", 26 COMBINATORY ); 25 ,"@COMPONENT" 26 ,COMBINATORY 27 #endif 28 ); 27 29 28 30 _interfaces = entity->set_interfaces(); 29 #else30 _interfaces = new Interfaces();31 #endif32 31 33 32 // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 34 33 35 Interface * interface_ = _interfaces->set_interface("", IN ,WEST, "Generalist interface"); 34 Interface * interface = _interfaces->set_interface("" 35 #ifdef POSITION 36 ,IN 37 ,SOUTH, 38 "Generalist interface" 39 #endif 40 ); 36 41 37 in_CLOCK = interface _->set_signal_clk ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO);38 in_NRESET = interface _->set_signal_in <Tcontrol_t> ("nreset",1);42 in_CLOCK = interface->set_signal_clk ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO); 43 in_NRESET = interface->set_signal_in <Tcontrol_t> ("nreset",1); 39 44 40 45 … … 42 47 43 48 #ifdef POSITION 44 _ position->generate_file();49 _component->generate_file(); 45 50 #endif 46 51 47 log_printf(FUNC,@COMPONENT,"allocation","End");52 Log_printf(FUNC,@COMPONENT,"allocation","End"); 48 53 }; 49 54 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_deallocation.cpp
r40 r42 24 24 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25 25 26 #ifdef POSITION 27 delete _position; 28 #else 29 delete _interfaces; 30 #endif 26 delete _component; 31 27 32 28 log_printf(FUNC,@COMPONENT,"deallocation","End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl.cpp
r40 r42 20 20 Vhdl vhdl (_name); 21 21 22 vhdl.set_library_work (_name + "_Pack"); 22 _interfaces->set_port(vhdl); 23 _component->vhdl_instance(vhdl); 23 24 24 vhdl_port (vhdl);25 25 vhdl_declaration (vhdl); 26 26 vhdl_body (vhdl); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_port.cpp
r41 r42 13 13 @NAMESPACE_BEGIN 14 14 15 void @COMPONENT::vhdl_port (Vhdl & vhdl)16 {17 log_printf(FUNC,@COMPONENT,"vhdl_port","Begin");15 // void @COMPONENT::vhdl_port (Vhdl & vhdl) 16 // { 17 // log_printf(FUNC,@COMPONENT,"vhdl_port","Begin"); 18 18 19 _interfaces->set_port(vhdl);19 // _interfaces->set_port(vhdl); 20 20 21 log_printf(FUNC,@COMPONENT,"vhdl_port","End");22 };21 // Log_printf(FUNC,@COMPONENT,"vhdl_port","End"); 22 // }; 23 23 24 24 @NAMESPACE_END
Note: See TracChangeset
for help on using the changeset viewer.