source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_genMoore.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 824 bytes
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Queue_genMoore.cpp 81 2008-04-15 18:40:01Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/Queue/include/Queue.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace queue {
15
16#undef  FUNCTION
17#define FUNCTION "Queue::genMoore"
18  void Queue::genMoore (void)
19  {
20    log_printf(FUNC,Queue,FUNCTION,"Begin");
21   
22    internal_INSERT_ACK = not _queue_control->full();
23    internal_RETIRE_VAL = not _queue_control->empty();
24   
25    PORT_WRITE(out_INSERT_ACK , internal_INSERT_ACK);
26    PORT_WRITE(out_RETIRE_VAL , internal_RETIRE_VAL);
27    PORT_WRITE(out_RETIRE_DATA,_queue_data[(*_queue_control)[0]]);
28
29    log_printf(FUNC,Queue,FUNCTION,"End");
30  };
31
32}; // end namespace queue
33}; // end namespace generic
34
35}; // end namespace behavioural
36}; // end namespace morpheo             
37#endif
Note: See TracBrowser for help on using the repository browser.