flitBuffer.hh (11666:10d59d546ea2) | flitBuffer.hh (11797:f61fbb7ceb88) |
---|---|
1/* 2 * Copyright (c) 2008 Princeton University 3 * Copyright (c) 2016 Georgia Institute of Technology 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 47 flitBuffer(); 48 flitBuffer(int maximum_size); 49 50 bool isReady(Cycles curTime); 51 bool isEmpty(); 52 void print(std::ostream& out) const; 53 bool isFull(); 54 void setMaxSize(int maximum); | 1/* 2 * Copyright (c) 2008 Princeton University 3 * Copyright (c) 2016 Georgia Institute of Technology 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 47 flitBuffer(); 48 flitBuffer(int maximum_size); 49 50 bool isReady(Cycles curTime); 51 bool isEmpty(); 52 void print(std::ostream& out) const; 53 bool isFull(); 54 void setMaxSize(int maximum); |
55 int getSize() const { return m_buffer.size(); } |
|
55 56 flit * 57 getTopFlit() 58 { 59 flit *f = m_buffer.front(); 60 std::pop_heap(m_buffer.begin(), m_buffer.end(), flit::greater); 61 m_buffer.pop_back(); 62 return f; --- 31 unchanged lines hidden --- | 56 57 flit * 58 getTopFlit() 59 { 60 flit *f = m_buffer.front(); 61 std::pop_heap(m_buffer.begin(), m_buffer.end(), flit::greater); 62 m_buffer.pop_back(); 63 return f; --- 31 unchanged lines hidden --- |