26 #ifndef ORCASIM_MODELING_INCLUDE_PROCESSORBASE_HPP_ 27 #define ORCASIM_MODELING_INCLUDE_PROCESSORBASE_HPP_ 103 #endif // ORCASIM_MODELING_INCLUDE_PROCESSORBASE_HPP_ This class models a TimedModel.
Memory * GetMemory()
This method returns a pointer to the object that models the memory core.
ProcessorState< T > * GetState()
This method returns the state model of the processor.
Defines a generic state model for use within processor models.
~ProcessorBase()
Destructor.
Memory * _memory
We assume that every processor is attached to a memory core.
struct ProcessorState< T > _state
struct that represent the state of a processor.
This class models a memory module.
virtual SimulationTime Run()=0
Run method from the base TimedModel class, overloaded.
This class implements the base operation for generic processor implementations.
ProcessorBase(std::string name, MemoryAddr initial_pc, Memory *mem)
Default constructor.