Code Search for Developers
 
 
  

genericScheduler_if.h from GreenSocs at Krugle


Show genericScheduler_if.h syntax highlighted

/*
Copyright (c) 2006 : Technical University of Braunschweig, Germany

All rights reserved.

Authors: Robert Guenzel, Wolfgang Klingauf, TU Braunschweig, E.I.S.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.  Redistributions
in binary form must reproduce the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.  Neither the name of
the Technical University of Braunschweig, Germany nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/


#ifndef __genericScheduler_if_h__
#define __genericScheduler_if_h__

#include "router/genericRouter.h"
#include <set>
#include <map>

using namespace tlm;

//--------------------------------------------------------------------------
/**
 * The generic scheduler interface
 */
//--------------------------------------------------------------------------
template <class TRANSACTION,
          class PHASE,
          class TRANSACTION_P = boost::shared_ptr<TRANSACTION>,
          class PHASE_P = PHASE,
          class TRANSACTION_PHASE = tlm::unevenpair<TRANSACTION_P,PHASE_P> >
class GenericScheduler_if : virtual public sc_interface
{

public:
  virtual void enqueue(TRANSACTION_PHASE& t) =0;
  virtual TRANSACTION_PHASE& dequeue(bool remove=true) =0;
  virtual bool isPending() =0; //differs from isempyt because there could be something inside that is not "valid" yet
  virtual bool isEmpty() =0;
  virtual void setMasterMap(std::map<unsigned int, unsigned int> *masterMap_) =0;

};
  
#endif




See more files for this project here

GreenSocs

To develop SystemC infrustructure, basic IP, patches and add on library code for eventual standerdization.\r\nThe GreenSocs project is made up of a number of contributions (sub projects). Please visit www.greensocs.com for more information.

Project homepage: http://sourceforge.net/projects/greensocs
Programming language(s): C,C++,Java,Perl,XML
License: other

  protocol/
    PLB/
      PLBBusProtocol.h
      PLBBusProtocol.tpp
    SimpleBus/
      simpleBusProtocol.h
    simpleAddressMap.h
  scheduler/
    dynamicPriorityScheduler.h
    fixedPriorityScheduler.h
  README_ROUTER
  genericBridge.h
  genericProtocol_if.h
  genericRouter.h
  genericRouter_call.h
  genericRouter_event.h
  genericRouter_if.h
  genericScheduler_if.h