SST/macro
simple_processor.h
Go to the documentation of this file.
1 /*
2  * This file is part of SST/macroscale:
3  * The macroscale architecture simulator from the SST suite.
4  * Copyright (c) 2009 Sandia Corporation.
5  * This software is distributed under the BSD License.
6  * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7  * the U.S. Government retains certain rights in this software.
8  * For more information, see the LICENSE file in the top
9  * SST/macroscale directory.
10  */
11 
12 #ifndef SSTMAC_HARDWARE_PROCESSOR_SIMPLEPROCESSOR_H_INCLUDED
13 #define SSTMAC_HARDWARE_PROCESSOR_SIMPLEPROCESSOR_H_INCLUDED
14 
18 
19 namespace sstmac {
20 namespace hw {
21 
22 
23 /**
24  * A very simple processor model
25  */
27  public processor
28 {
29  public:
31  processor(mem, nd) {}
32 
33  /// Goodbye.
34  virtual ~simple_processor() {}
35 
36  virtual void
37  finalize_init();
38 
39  void
40  compute(event* ev, callback* cb);
41 
42  virtual std::string
43  to_string() const {
44  return "simple_processor";
45  }
46 
47 };
48 
49 }
50 } // end of namespace sstmac
51 
52 #endif
53 
virtual std::string to_string() const
void compute(event *ev, callback *cb)
A very simple processor model.
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
virtual ~simple_processor()
Goodbye.
simple_processor(memory_model *mem, node *nd)
An interface for processor models.
Definition: processor.h:32