[118] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Write_queue_genMealy_bypass.cpp 123 2009-06-08 20:43:30Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/include/Write_queue.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace core { |
---|
| 14 | namespace multi_execute_loop { |
---|
| 15 | namespace execute_loop { |
---|
| 16 | namespace multi_write_unit { |
---|
| 17 | namespace write_unit { |
---|
| 18 | namespace write_queue { |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #undef FUNCTION |
---|
| 22 | #define FUNCTION "Write_queue::genMealy_bypass" |
---|
| 23 | void Write_queue::genMealy_bypass (void) |
---|
| 24 | { |
---|
| 25 | log_begin(Write_queue,FUNCTION); |
---|
| 26 | log_function(Write_queue,FUNCTION,_name.c_str()); |
---|
| 27 | |
---|
[123] | 28 | if (PORT_READ(in_NRESET)) |
---|
| 29 | { |
---|
[118] | 30 | Tcontrol_t val = PORT_READ(in_WRITE_QUEUE_IN_VAL); |
---|
| 31 | |
---|
| 32 | if (_param->_have_port_ooo_engine_id) |
---|
| 33 | PORT_WRITE(out_BYPASS_WRITE_OOO_ENGINE_ID [0], PORT_READ(in_WRITE_QUEUE_IN_OOO_ENGINE_ID)); |
---|
| 34 | PORT_WRITE(out_BYPASS_WRITE_GPR_VAL [0], val and PORT_READ(in_WRITE_QUEUE_IN_WRITE_RD )); |
---|
| 35 | PORT_WRITE(out_BYPASS_WRITE_GPR_NUM_REG [0], PORT_READ(in_WRITE_QUEUE_IN_NUM_REG_RD )); // RD |
---|
| 36 | PORT_WRITE(out_BYPASS_WRITE_GPR_DATA [0], PORT_READ(in_WRITE_QUEUE_IN_DATA_RD )); |
---|
| 37 | PORT_WRITE(out_BYPASS_WRITE_SPR_VAL [0], val and PORT_READ(in_WRITE_QUEUE_IN_WRITE_RE )); |
---|
| 38 | PORT_WRITE(out_BYPASS_WRITE_SPR_NUM_REG [0], PORT_READ(in_WRITE_QUEUE_IN_NUM_REG_RE )); // RE |
---|
| 39 | PORT_WRITE(out_BYPASS_WRITE_SPR_DATA [0], PORT_READ(in_WRITE_QUEUE_IN_DATA_RE )); |
---|
[123] | 40 | } |
---|
| 41 | else |
---|
| 42 | { |
---|
| 43 | PORT_WRITE(out_BYPASS_WRITE_GPR_VAL [0], 0); |
---|
| 44 | PORT_WRITE(out_BYPASS_WRITE_SPR_VAL [0], 0); |
---|
| 45 | } |
---|
[118] | 46 | |
---|
| 47 | log_end(Write_queue,FUNCTION); |
---|
| 48 | }; |
---|
| 49 | |
---|
| 50 | }; // end namespace write_queue |
---|
| 51 | }; // end namespace write_unit |
---|
| 52 | }; // end namespace multi_write_unit |
---|
| 53 | }; // end namespace execute_loop |
---|
| 54 | }; // end namespace multi_execute_loop |
---|
| 55 | }; // end namespace core |
---|
| 56 | |
---|
| 57 | }; // end namespace behavioural |
---|
| 58 | }; // end namespace morpheo |
---|
| 59 | #endif |
---|