Ignore:
Timestamp:
Apr 15, 2008, 8:40:01 PM (17 years ago)
Author:
rosiere
Message:
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
Location:
trunk/IPs/systemC/Environment/Queue
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/Environment/Queue/Makefile

    • Property svn:keywords set to Id
  • trunk/IPs/systemC/Environment/Queue/include/Parameters.h

    • Property svn:keywords set to Id
  • trunk/IPs/systemC/Environment/Queue/include/Queue.h

    • Property svn:keywords set to Id
    r80 r81  
    6161      // *****[ pop ]*****
    6262      // read the queue, and update the pointer
    63     public : virtual T    pop  ()             {return T();};
     63    public : virtual T    pop  ()             = 0;
    6464
    6565      // *****[ pop ]*****
    6666      // read the queue, and update the pointer
    67     public : virtual T    pop  (uint32_t num) {return T();};
     67    public : virtual T    pop  (uint32_t num) = 0;
    6868
    6969      // *****[ push ]*****
    7070      // Push a new value (they must have a slot free)
    71     public : virtual bool push (T val)        {return false;};
     71    public : virtual bool push (T val)        = 0;
    7272 
    7373    }; // Queue
  • trunk/IPs/systemC/Environment/Queue/include/Slot.h

    • Property svn:keywords set to Id
  • trunk/IPs/systemC/Environment/Queue/include/Sort_Queue.h

    • Property svn:keywords set to Id
    r80 r81  
    2525                         Parameters * param) : Queue <T> (name,param->_size)
    2626      {
     27        _ptr_read  = 0;
     28        _ptr_write = 0;
    2729      };
    2830     
     
    104106     
    105107      // *****[ push ]*****
     108  public : bool push (T val)
     109    {
     110      return push (0, val);
     111    }
     112
    106113      // Push a new value (they must have a slot free)
    107114      // Is sort by delay
  • trunk/IPs/systemC/Environment/Queue/include/Sort_Queue_Dynamic.h

    • Property svn:keywords set to Id
    r80 r81  
    143143        // Reorganize the queue
    144144
    145         for (uint32_t it = num; it < Queue <T>::_nb_slot; it ++)
     145        for (uint32_t it = num; it+1 < Queue <T>::_nb_slot; it ++)
    146146          {
    147147            uint32_t ptr      = (it);
    148148            uint32_t ptr_next = (it+1);
    149149
     150//          std::cout << "ptr      : " << ptr << std::endl
     151//                    << "ptr_next : " << ptr_next << std::endl
     152//                    << "nb_slot  : " << Queue <T>::_nb_slot << std::endl;
     153           
    150154            Queue <T>::_slot [ptr] = Queue <T>::_slot [ptr_next];
    151155          }
     
    157161     
    158162      // *****[ push ]*****
     163    public : bool push (T val)
     164      {
     165        return push (0, val);
     166      }
     167     
    159168      // Push a new value (they must have a slot free)
    160169      // Is sort by delay
  • trunk/IPs/systemC/Environment/Queue/selftest/main.cpp

    • Property svn:keywords set to Id
    r80 r81  
    1 #include <iostream>
    21#include "../include/Sort_Queue.h"
    32#include "../include/Sort_Queue_Dynamic.h"
     3#include <iostream>
    44
    55using namespace std;
     
    5252
    5353
    54 int main (void)
     54#ifdef SYSTEMC
     55int sc_main (int argc, char * argv[])
     56#else
     57int    main (int argc, char * argv[])
     58#endif
    5559{
    5660  cout << "<main> Begin" << endl;
Note: See TracChangeset for help on using the changeset viewer.