source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/src/Execute_queue_genMoore.cpp @ 101

Last change on this file since 101 was 101, checked in by rosiere, 15 years ago

1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Execute_queue_genMoore.cpp 101 2009-01-15 17:19:08Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/include/Execute_queue.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_execute_loop {
15namespace execute_loop {
16namespace multi_write_unit {
17namespace write_unit {
18namespace execute_queue {
19
20
21#undef  FUNCTION
22#define FUNCTION "Execute_queue::genMoore"
23  void Execute_queue::genMoore (void)
24  {
25    log_begin(Execute_queue,FUNCTION);
26    log_function(Execute_queue,FUNCTION,_name.c_str());
27
28    // -----[ Interface "execute_queue_in" ]--------------------------------
29    {
30      internal_EXECUTE_QUEUE_IN_ACK = _queue->size() < _param->_size_queue;
31     
32      PORT_WRITE(out_EXECUTE_QUEUE_IN_ACK, internal_EXECUTE_QUEUE_IN_ACK);
33    }
34
35    // -----[ Interface "execute_queue_out" ]--------------------------------
36    {
37      // TODO : make a genMealy version
38      internal_EXECUTE_QUEUE_OUT_VAL = (not _queue->empty());
39     
40      PORT_WRITE(out_EXECUTE_QUEUE_OUT_VAL, internal_EXECUTE_QUEUE_OUT_VAL);
41
42      if (internal_EXECUTE_QUEUE_OUT_VAL)
43        {
44          if (_param->_have_port_context_id)
45          PORT_WRITE(out_EXECUTE_QUEUE_OUT_CONTEXT_ID   , _queue->front()->_context_id   );
46          if (_param->_have_port_front_end_id)
47          PORT_WRITE(out_EXECUTE_QUEUE_OUT_FRONT_END_ID , _queue->front()->_front_end_id );
48          if (_param->_have_port_ooo_engine_id)
49          PORT_WRITE(out_EXECUTE_QUEUE_OUT_OOO_ENGINE_ID, _queue->front()->_ooo_engine_id);
50          if (_param->_have_port_rob_ptr)
51          PORT_WRITE(out_EXECUTE_QUEUE_OUT_PACKET_ID    , _queue->front()->_packet_id    );
52//        PORT_WRITE(out_EXECUTE_QUEUE_OUT_OPERATION    , _queue->front()->_operation    );
53//        PORT_WRITE(out_EXECUTE_QUEUE_OUT_TYPE         , _queue->front()->_type         );
54          PORT_WRITE(out_EXECUTE_QUEUE_OUT_FLAGS        , _queue->front()->_flags        );
55          PORT_WRITE(out_EXECUTE_QUEUE_OUT_EXCEPTION    , _queue->front()->_exception    );
56          PORT_WRITE(out_EXECUTE_QUEUE_OUT_NO_SEQUENCE  , _queue->front()->_no_sequence  );
57          PORT_WRITE(out_EXECUTE_QUEUE_OUT_ADDRESS      , _queue->front()->_address      );
58          PORT_WRITE(out_EXECUTE_QUEUE_OUT_DATA         , _queue->front()->_data         );
59        }
60    }
61
62    log_end(Execute_queue,FUNCTION);
63  };
64
65}; // end namespace execute_queue
66}; // end namespace write_unit
67}; // end namespace multi_write_unit
68}; // end namespace execute_loop
69}; // end namespace multi_execute_loop
70}; // end namespace core
71
72}; // end namespace behavioural
73}; // end namespace morpheo             
74#endif
Note: See TracBrowser for help on using the repository browser.