-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsource_interface.h
More file actions
41 lines (31 loc) · 855 Bytes
/
source_interface.h
File metadata and controls
41 lines (31 loc) · 855 Bytes
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
/*
* source_interface.h
* PhoenixSim
*
* Created by ; Chan on 7/8/11.
* Copyright 2011 Johnnie Chan. All rights reserved.
*
*/
#ifndef __SOURCE_INTERFACE_H__
#define __SOURCE_INTERFACE_H__
#include <string>
#include <queue>
#include "systemc.h"
#include "credit_interface.h"
#include "trafficgenerator.h"
#include "address.h"
namespace PhoenixSim
{
class Source_Interface : public Credit_Interface
{
public:
Source_Interface(sc_module_name name, int p_numOfNetworkPorts, int p_numOfProcessorPorts, int p_bufferWidth);
~Source_Interface();
std::vector< sc_in<ElectronicMessage*>* > processorDataInputPort;
std::vector< sc_out<ElectronicMessage*>* > processorDataOutputPort;
virtual void ProcessorDataReceived(int inputPortId) = 0;
private:
unsigned int numOfProcessorPorts;
};
}
#endif // __SOURCE_INTERFACE_H__