Files
DRAMSys/DRAM/dram/core/scheduling/checker/ReadChecker.h
2014-03-15 18:31:16 +01:00

34 lines
829 B
C++

/*
* ReadChecker.h
*
* Created on: Mar 13, 2014
* Author: jonny
*/
#ifndef READCHECKER_H_
#define READCHECKER_H_
#include <core/scheduling/checker/ICommandChecker.h>
#include "core/Configuration.h"
#include "core/scheduling/CommandBus.h"
namespace controller {
class ReadChecker: public controller::ICommandChecker
{
public:
ReadChecker(const Configuration& config, const CommandBus& commandBus) : config(config), bus(commandBus) {}
virtual ~ReadChecker() {}
virtual void check(ScheduledCommand& command) const;
virtual sc_time getExecutionTime(const tlm::tlm_generic_payload& transaction, Command command) const;
virtual void cb_IInternalScheduler(const ScheduledCommand& command);
private:
const Configuration& config;
const CommandBus& bus;
};
} /* namespace controller */
#endif /* READCHECKER_H_ */