-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOutputLinkController_3D.java
73 lines (42 loc) · 1.38 KB
/
OutputLinkController_3D.java
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
public class OutputLinkController_3D {
private Switch_3D parentSwitch;
private OutputVCBuffer_3D outputBuffer;
private int linkNo;
private int numVCCount;
private int numLinkCount;
public OutputLinkController_3D(Switch_3D parent, int linkNo, int vcCount,
int linkCount) {
this.parentSwitch = parent;
this.outputBuffer = new OutputVCBuffer_3D(vcCount, linkNo);
this.linkNo = linkNo;
this.numVCCount = vcCount;
this.numLinkCount = linkCount;
}
public boolean addOutputBufferData(Flit_3D flit, int vcId, int curCycle) {
return outputBuffer.addBufferData(flit, vcId, curCycle);
}
public Flit_3D removeOutputBufferData(int vcId, int curCycle) {
return outputBuffer.removeBufferData(vcId, curCycle);
}
public boolean hasFreeSlotInVCBuffer(int vcId) {
return outputBuffer.hasFreeSlotInVC(vcId);
}
public boolean hasFlitToSend(int vcId) {
return outputBuffer.hasFlitToSend(vcId);
}
public void updateStatusAfterCycle() {
outputBuffer.updateStatusAfterCycle();
}
public Flit_3D getBufferData(int vcId) {
return outputBuffer.getBufferData(vcId);
}
public int getFreeVC() {
return outputBuffer.getFreeVC();
}
public int getFreeVC_NEW(Flit_3D vc) {
return outputBuffer.getFreeVC_NEW(vc);
}
public OutputVCBuffer_3D getOutputBuffer() {
return outputBuffer;
}
}