Files
DRAMSys/DRAM/src/core/scheduling/checker/WriteChecker.h
robert 7fc688a02d ..
2014-03-16 19:37:22 +01:00

34 lines
819 B
C++

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