SST/macro
Public Member Functions | List of all members
sstmac::hw::simple_processor Class Reference

A very simple processor model. More...

#include <simple_processor.h>

Inheritance diagram for sstmac::hw::simple_processor:
Inheritance graph
Collaboration diagram for sstmac::hw::simple_processor:
Collaboration graph

Public Member Functions

 simple_processor (memory_model *mem, node *nd)
 
virtual ~simple_processor ()
 Goodbye. More...
 
virtual void finalize_init ()
 
void compute (event *ev, callback *cb)
 
virtual std::string to_string () const
 
- Public Member Functions inherited from sstmac::hw::processor
virtual ~processor ()
 
virtual void init_factory_params (sprockit::sim_parameters *params)
 
- Public Member Functions inherited from sprockit::factory_type
virtual void init_factory_params (sim_parameters *params)
 

Additional Inherited Members

- Static Public Member Functions inherited from sstmac::hw::processor
static void delete_statics ()
 
- Protected Member Functions inherited from sstmac::hw::processor
 processor (memory_model *mem, node *nd)
 
- Protected Attributes inherited from sstmac::hw::processor
double freq_
 
double mem_freq_
 
memory_modelmem_
 
nodenode_
 

Detailed Description

A very simple processor model.

Definition at line 26 of file simple_processor.h.

Constructor & Destructor Documentation

sstmac::hw::simple_processor::simple_processor ( memory_model mem,
node nd 
)
inline

Definition at line 30 of file simple_processor.h.

virtual sstmac::hw::simple_processor::~simple_processor ( )
inlinevirtual

Goodbye.

Definition at line 34 of file simple_processor.h.

References compute(), and finalize_init().

Here is the call graph for this function:

Member Function Documentation

void sstmac::hw::simple_processor::compute ( event ev,
callback cb 
)
virtual

Implements sstmac::hw::processor.

Referenced by ~simple_processor().

virtual void sstmac::hw::simple_processor::finalize_init ( )
virtual

Reimplemented from sstmac::hw::processor.

Reimplemented in sstmac::hw::instruction_processor.

Referenced by ~simple_processor().

virtual std::string sstmac::hw::simple_processor::to_string ( ) const
inlinevirtual

Reimplemented in sstmac::hw::instruction_processor.

Definition at line 43 of file simple_processor.h.


The documentation for this class was generated from the following file: