[72] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Functionnal_unit_genMoore.cpp 116 2009-04-30 13:51:41Z moulu $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/include/Functionnal_unit.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_execute_loop { |
---|
| 15 | namespace execute_loop { |
---|
| 16 | namespace multi_execute_unit { |
---|
| 17 | namespace execute_unit { |
---|
| 18 | namespace functionnal_unit { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
[116] | 22 | #define FUNCTION "Functionnal_unit::genMoore" |
---|
[72] | 23 | void Functionnal_unit::genMoore (void) |
---|
| 24 | { |
---|
[88] | 25 | log_begin(Functionnal_unit,FUNCTION); |
---|
| 26 | log_function(Functionnal_unit,FUNCTION,_name.c_str()); |
---|
[72] | 27 | |
---|
[88] | 28 | { |
---|
| 29 | if (_param->_have_port_context_id) |
---|
| 30 | PORT_WRITE(out_EXECUTE_OUT_CONTEXT_ID ,_execute_operation_out->_context_id ); |
---|
| 31 | if (_param->_have_port_front_end_id) |
---|
| 32 | PORT_WRITE(out_EXECUTE_OUT_FRONT_END_ID ,_execute_operation_out->_front_end_id ); |
---|
| 33 | if (_param->_have_port_ooo_engine_id) |
---|
| 34 | PORT_WRITE(out_EXECUTE_OUT_OOO_ENGINE_ID,_execute_operation_out->_ooo_engine_id); |
---|
| 35 | if (_param->_have_port_rob_ptr) |
---|
| 36 | PORT_WRITE(out_EXECUTE_OUT_PACKET_ID ,_execute_operation_out->_packet_id ); |
---|
| 37 | // PORT_WRITE(out_EXECUTE_OUT_OPERATION ,_execute_operation_out->_operation ); |
---|
[97] | 38 | // PORT_WRITE(out_EXECUTE_OUT_TYPE ,_execute_operation_out->_type ); |
---|
[88] | 39 | PORT_WRITE(out_EXECUTE_OUT_WRITE_RD ,_execute_operation_out->_write_rd ); |
---|
| 40 | PORT_WRITE(out_EXECUTE_OUT_NUM_REG_RD ,_execute_operation_out->_num_reg_rd ); |
---|
| 41 | PORT_WRITE(out_EXECUTE_OUT_DATA_RD ,_execute_operation_out->_data_rd ); |
---|
| 42 | PORT_WRITE(out_EXECUTE_OUT_WRITE_RE ,_execute_operation_out->_write_re ); |
---|
| 43 | PORT_WRITE(out_EXECUTE_OUT_NUM_REG_RE ,_execute_operation_out->_num_reg_re ); |
---|
| 44 | PORT_WRITE(out_EXECUTE_OUT_DATA_RE ,_execute_operation_out->_data_re ); |
---|
| 45 | PORT_WRITE(out_EXECUTE_OUT_EXCEPTION ,_execute_operation_out->_exception ); |
---|
| 46 | PORT_WRITE(out_EXECUTE_OUT_NO_SEQUENCE ,_execute_operation_out->_no_sequence ); |
---|
| 47 | PORT_WRITE(out_EXECUTE_OUT_ADDRESS ,_execute_operation_out->_address ); |
---|
| 48 | } |
---|
[72] | 49 | |
---|
[88] | 50 | log_end(Functionnal_unit,FUNCTION); |
---|
[72] | 51 | }; |
---|
| 52 | |
---|
| 53 | }; // end namespace functionnal_unit |
---|
| 54 | }; // end namespace execute_unit |
---|
| 55 | }; // end namespace multi_execute_unit |
---|
| 56 | }; // end namespace execute_loop |
---|
| 57 | }; // end namespace multi_execute_loop |
---|
| 58 | }; // end namespace core |
---|
| 59 | }; // end namespace behavioural |
---|
| 60 | }; // end namespace morpheo |
---|
| 61 | #endif |
---|