[116] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Functionnal_unit_genMealy.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 |
---|
| 22 | #define FUNCTION "Functionnal_unit::genMealy" |
---|
| 23 | void Functionnal_unit::genMealy (void) |
---|
| 24 | { |
---|
| 25 | log_begin(Functionnal_unit,FUNCTION); |
---|
| 26 | log_function(Functionnal_unit,FUNCTION,_name.c_str()); |
---|
| 27 | |
---|
| 28 | { |
---|
| 29 | internal_EXECUTE_OUT_VAL = (reg_BUSY_OUT and (_execute_operation_out->_timing._latence == 0)); |
---|
| 30 | |
---|
| 31 | PORT_WRITE(out_EXECUTE_OUT_VAL , internal_EXECUTE_OUT_VAL); |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | { |
---|
| 35 | internal_EXECUTE_IN_ACK = (not reg_BUSY_IN or |
---|
| 36 | (reg_BUSY_IN and (not reg_BUSY_OUT or |
---|
| 37 | (internal_EXECUTE_OUT_VAL and PORT_READ(in_EXECUTE_OUT_ACK))))); |
---|
| 38 | |
---|
| 39 | PORT_WRITE(out_EXECUTE_IN_ACK , internal_EXECUTE_IN_ACK); |
---|
| 40 | } |
---|
| 41 | |
---|
| 42 | log_end(Functionnal_unit,FUNCTION); |
---|
| 43 | }; |
---|
| 44 | |
---|
| 45 | }; // end namespace functionnal_unit |
---|
| 46 | }; // end namespace execute_unit |
---|
| 47 | }; // end namespace multi_execute_unit |
---|
| 48 | }; // end namespace execute_loop |
---|
| 49 | }; // end namespace multi_execute_loop |
---|
| 50 | }; // end namespace core |
---|
| 51 | }; // end namespace behavioural |
---|
| 52 | }; // end namespace morpheo |
---|
| 53 | #endif |
---|