Changeset 81 for trunk/IPs/systemC/Environment/Queue/include
- Timestamp:
- Apr 15, 2008, 8:40:01 PM (17 years ago)
- Location:
- trunk/IPs/systemC/Environment/Queue/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/Queue/include/Parameters.h
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Queue/include/Queue.h
-
Property
svn:keywords
set to
Id
r80 r81 61 61 // *****[ pop ]***** 62 62 // read the queue, and update the pointer 63 public : virtual T pop () {return T();};63 public : virtual T pop () = 0; 64 64 65 65 // *****[ pop ]***** 66 66 // 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; 68 68 69 69 // *****[ push ]***** 70 70 // 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; 72 72 73 73 }; // Queue -
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Queue/include/Slot.h
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Queue/include/Sort_Queue.h
-
Property
svn:keywords
set to
Id
r80 r81 25 25 Parameters * param) : Queue <T> (name,param->_size) 26 26 { 27 _ptr_read = 0; 28 _ptr_write = 0; 27 29 }; 28 30 … … 104 106 105 107 // *****[ push ]***** 108 public : bool push (T val) 109 { 110 return push (0, val); 111 } 112 106 113 // Push a new value (they must have a slot free) 107 114 // Is sort by delay -
Property
svn:keywords
set to
-
trunk/IPs/systemC/Environment/Queue/include/Sort_Queue_Dynamic.h
-
Property
svn:keywords
set to
Id
r80 r81 143 143 // Reorganize the queue 144 144 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 ++) 146 146 { 147 147 uint32_t ptr = (it); 148 148 uint32_t ptr_next = (it+1); 149 149 150 // std::cout << "ptr : " << ptr << std::endl 151 // << "ptr_next : " << ptr_next << std::endl 152 // << "nb_slot : " << Queue <T>::_nb_slot << std::endl; 153 150 154 Queue <T>::_slot [ptr] = Queue <T>::_slot [ptr_next]; 151 155 } … … 157 161 158 162 // *****[ push ]***** 163 public : bool push (T val) 164 { 165 return push (0, val); 166 } 167 159 168 // Push a new value (they must have a slot free) 160 169 // Is sort by delay -
Property
svn:keywords
set to
Note: See TracChangeset
for help on using the changeset viewer.