-
Notifications
You must be signed in to change notification settings - Fork 1
/
cluster_structural.h
50 lines (31 loc) · 1.15 KB
/
cluster_structural.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef __CLUSTER_STRUCTURAL_H__
#define __CLUSTER_STRUCTURAL_H__
#include "sim.h" //For GlobalBackingStoreType
#include "cluster/clusterbase.h"
#include "core.h"
#include "cluster/cluster_cache.h"
class ClusterStructural : public ClusterBase {
public:
ClusterStructural(rigel::ConstructionPayload cp);
~ClusterStructural();
/// Component interface
void Heartbeat();
void Dump();
void EndSim();
int PerCycle();
int halted() { return (halted_ == numcores); }
virtual void save_state() const;
virtual void restore_state();
/// this cluster only
/// replace with generic port connections
InPortBase<Packet*>* get_inport() { return from_interconnect; }
OutPortBase<Packet*>* get_outport() { return to_interconnect; }
private:
CoreFunctional** cores; /// array of cores
ClusterCacheStructural *ccache; /// cluster cache object
int numcores; /// cores in this cluster
int halted_; /// halted cores (threads?)
OutPortBase<Packet*>* to_interconnect; ///< outport to the interconnect
InPortBase<Packet*>* from_interconnect; ///< inport from the interconnect
};
#endif