Changeset 78 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit
- Timestamp:
- Mar 27, 2008, 11:04:49 AM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/include/Parameters.h
r75 r78 50 50 public : ~Parameters () ; 51 51 52 public : std::stringmsg_error (void);52 public : Parameters_test msg_error (void); 53 53 54 54 public : std::string print (uint32_t depth); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/src/Parameters_msg_error.cpp
r75 r78 21 21 #undef FUNCTION 22 22 #define FUNCTION "Register_unit_Glue::msg_error" 23 std::stringParameters::msg_error(void)23 Parameters_test Parameters::msg_error(void) 24 24 { 25 25 log_printf(FUNC,Register_unit_Glue,FUNCTION,"Begin"); 26 26 27 std::string msg = ""; 28 29 return msg; 27 Parameters_test test("Register_unit_Glue"); 30 28 31 29 log_printf(FUNC,Register_unit_Glue,FUNCTION,"End"); 30 31 return test; 32 32 }; 33 33 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Parameters.h
r75 r78 79 79 public : ~Parameters () ; 80 80 81 public : std::stringmsg_error (void);81 public : Parameters_test msg_error (void); 82 82 public : std::string print (uint32_t depth); 83 83 public : friend std::ostream& operator<< (std::ostream& output_stream, -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/include/Register_unit.h
r75 r78 5 5 * $Id$ 6 6 * 7 * [ 7 * [ Description ] 8 8 * 9 9 */ … … 45 45 #endif 46 46 { 47 // -----[ 47 // -----[ fields ]---------------------------------------------------- 48 48 // Parameters 49 49 protected : const std::string _name; … … 59 59 60 60 #ifdef SYSTEMC 61 // ~~~~~[ 61 // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 62 62 // Interface 63 63 public : SC_CLOCK * in_CLOCK ; 64 64 public : SC_IN (Tcontrol_t) * in_NRESET ; 65 65 66 // ~~~~~[ 66 // ~~~~~[ Interface "gpr_read" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 67 67 public : SC_IN (Tcontrol_t ) ** in_GPR_READ_VAL ; 68 68 public : SC_OUT(Tcontrol_t ) ** out_GPR_READ_ACK ; … … 72 72 public : SC_OUT(Tcontrol_t ) ** out_GPR_READ_DATA_VAL ; 73 73 74 // ~~~~~[ 74 // ~~~~~[ Interface "gpr_write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 75 75 public : SC_IN (Tcontrol_t ) ** in_GPR_WRITE_VAL ; 76 76 public : SC_OUT(Tcontrol_t ) ** out_GPR_WRITE_ACK ; … … 79 79 public : SC_IN (Tgeneral_data_t ) ** in_GPR_WRITE_DATA ; 80 80 81 // ~~~~~[ 81 // ~~~~~[ Interface "spr_read" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 82 82 public : SC_IN (Tcontrol_t ) ** in_SPR_READ_VAL ; 83 83 public : SC_OUT(Tcontrol_t ) ** out_SPR_READ_ACK ; … … 87 87 public : SC_OUT(Tcontrol_t ) ** out_SPR_READ_DATA_VAL ; 88 88 89 // ~~~~~[ 89 // ~~~~~[ Interface "spr_write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 90 90 public : SC_IN (Tcontrol_t ) ** in_SPR_WRITE_VAL ; 91 91 public : SC_OUT(Tcontrol_t ) ** out_SPR_WRITE_ACK ; … … 94 94 public : SC_IN (Tspecial_data_t ) ** in_SPR_WRITE_DATA ; 95 95 96 // ~~~~~[ 96 // ~~~~~[ Interface "insert_rob" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 97 97 public : SC_IN (Tcontrol_t ) *** in_INSERT_ROB_VAL ; 98 98 public : SC_OUT(Tcontrol_t ) *** out_INSERT_ROB_ACK ; … … 102 102 public : SC_IN (Tspecial_address_t) *** in_INSERT_ROB_RE_NUM_REG ; 103 103 104 // ~~~~~[ 104 // ~~~~~[ Interface "retire_rob" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 105 105 public : SC_IN (Tcontrol_t ) *** in_RETIRE_ROB_VAL ; 106 106 public : SC_OUT(Tcontrol_t ) *** out_RETIRE_ROB_ACK ; … … 114 114 public : SC_IN (Tspecial_address_t) *** in_RETIRE_ROB_RE_NEW_NUM_REG ; 115 115 116 // ~~~~~[ 116 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 117 117 protected : morpheo::behavioural::generic::registerfile::RegisterFile::RegisterFile ** component_gpr ; 118 118 protected : morpheo::behavioural::generic::registerfile::RegisterFile::RegisterFile ** component_gpr_status; … … 121 121 protected : morpheo::behavioural::core::multi_execute_loop::execute_loop::register_unit::register_unit_glue::Register_unit_Glue::Register_unit_Glue * component_glue ; 122 122 123 // ~~~~~[ 123 // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 124 124 125 // ~~~~~[ 125 // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 126 126 #endif 127 127 128 // -----[ 128 // -----[ methods ]--------------------------------------------------- 129 129 130 130 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Parameters_msg_error.cpp
r75 r78 18 18 #undef FUNCTION 19 19 #define FUNCTION "Register_unit::msg_error" 20 std::stringParameters::msg_error(void)20 Parameters_test Parameters::msg_error(void) 21 21 { 22 22 log_printf(FUNC,Register_unit,FUNCTION,"Begin"); 23 23 24 std::string msg = ""; 25 26 return msg; 24 Parameters_test test("Register_unit"); 27 25 28 26 log_printf(FUNC,Register_unit,FUNCTION,"End"); 27 28 return test; 29 29 }; 30 30 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/src/Register_unit_allocation.cpp
r75 r78 240 240 241 241 in_RETIRE_ROB_VAL [i][j] = interface->set_signal_valack_in (VAL); 242 242 out_RETIRE_ROB_ACK [i][j] = interface->set_signal_valack_out (ACK); 243 243 in_RETIRE_ROB_RD_OLD_USE [i][j] = interface->set_signal_in <Tcontrol_t > ("rd_old_use" , 1); 244 244 in_RETIRE_ROB_RD_OLD_NUM_REG [i][j] = interface->set_signal_in <Tgeneral_address_t> ("rd_old_num_reg", _param->_size_gpr_address); … … 470 470 _name+"_glue", 471 471 "out_CONST_1"); 472 473 _component->port_map(_name+"_glue", 474 "out_CONST_1", 475 name_component, 476 "in_WRITE_"+toString(x)+"_DATA" ); 477 478 472 479 _component->port_map(name_component, 473 480 "in_WRITE_"+toString(x++)+"_ADDRESS", … … 492 499 "out_CONST_0" 493 500 ); 501 _component->port_map( _name+"_glue", 502 "out_CONST_0", 503 name_component, 504 "in_WRITE_"+toString(x)+"_DATA"); 494 505 495 506 _component->port_map(name_component, … … 515 526 _name+"_glue", 516 527 "out_CONST_0"); 528 _component->port_map(_name+"_glue", 529 "out_CONST_0", 530 name_component, 531 "in_WRITE_"+toString(x)+"_DATA" ); 517 532 518 533 _component->port_map(name_component, … … 534 549 _name+"_glue", 535 550 "out_CONST_1" 551 ); 552 _component->port_map(_name+"_glue", 553 "out_CONST_1", 554 name_component, 555 "in_WRITE_"+toString(x)+"_DATA" 536 556 ); 537 557 … … 651 671 _name+"_glue", 652 672 "out_CONST_1"); 673 _component->port_map(_name+"_glue", 674 "out_CONST_1", 675 name_component, 676 "in_WRITE_"+toString(x)+"_DATA" 677 ); 678 653 679 _component->port_map(name_component, 654 680 "in_WRITE_"+toString(x++)+"_ADDRESS", … … 673 699 "out_CONST_0" 674 700 ); 701 _component->port_map( _name+"_glue", 702 "out_CONST_0", 703 name_component, 704 "in_WRITE_"+toString(x)+"_DATA" 705 ); 675 706 676 707 _component->port_map(name_component, … … 696 727 _name+"_glue", 697 728 "out_CONST_0"); 729 _component->port_map(_name+"_glue", 730 "out_CONST_0", 731 name_component, 732 "in_WRITE_"+toString(x)+"_DATA" 733 ); 698 734 699 735 _component->port_map(name_component, … … 715 751 _name+"_glue", 716 752 "out_CONST_1" 753 ); 754 _component->port_map(_name+"_glue", 755 "out_CONST_1", 756 name_component, 757 "in_WRITE_"+toString(x)+"_DATA" 717 758 ); 718 759 … … 738 779 _component->port_map(name_component,"in_CLOCK" , _name, "in_CLOCK" ); 739 780 _component->port_map(name_component,"in_NRESET", _name, "in_NRESET"); 740 _component->port_map(name_component,"out_CONST_0");741 _component->port_map(name_component,"out_CONST_1");781 // _component->port_map(name_component,"out_CONST_0",_name,"out_CONST_0"); 782 // _component->port_map(name_component,"out_CONST_1",_name,"out_CONST_1"); 742 783 743 784 for (uint32_t j=0; j<_param->_nb_gpr_read; j++)
Note: See TracChangeset
for help on using the changeset viewer.