-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlit.java
More file actions
83 lines (60 loc) · 1.11 KB
/
Flit.java
File metadata and controls
83 lines (60 loc) · 1.11 KB
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
74
75
76
77
78
79
80
81
82
83
package Router;
public class Flit {
public int Src;
public int dest;
public int Type;
private int NumberFlit;
public int latency;
public int ArivelTime;
// ajouter par amine
public int VC;
public int Priority;
public int get_Vc()
{
return 0;
}
public int getLatency() {
return latency;
}
public int getArivelTime() {
return ArivelTime;
}
public Flit(int Type) {
this.Type = Type;
latency=0;
}
public Flit() {
}
public void setSrc(int src) {
Src = src;
}
public void setDest(int dest) {
this.dest = dest;
}
public void setType(int type) {
Type = type;
}
public void setNumberFlit(int numberFlit) {
NumberFlit = numberFlit;
}
public int get_Src() {
return Src;
}
public int get_dest() {
return dest;
}
public int get_nbr_FLit_attached() {
return NumberFlit;
}
public int get_Type() {
return Type;
}
// ajouter par amine
public int get_Priority() {
return Priority;
}
// ajouter par amine
public void setPriority(int priority) {
priority = Priority;
}
}