-
Notifications
You must be signed in to change notification settings - Fork 0
/
flit.h
executable file
·50 lines (40 loc) · 1.26 KB
/
flit.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
#ifndef SIM_FLIT_H_
#define SIM_FLIT_H_
#include "index.h"
#include "SStd.h"
#include <vector>
#include <iostream>
#include <vector>
class flit_template {
friend ostream& operator<<(ostream& os, const flit_template & ft);
private:
long flit_id_;
flit_type type_;
add_type sor_addr_;
add_type des_addr_;
time_type start_time_;
time_type finish_time_;
long data_;
public:
long flit_id() {return flit_id_;}
long flit_id() const {return flit_id_;}
flit_type type() {return type_;}
flit_type type() const {return type_;}
add_type & sor_addr() {return sor_addr_;}
const add_type & sor_addr() const {return sor_addr_;}
add_type & des_addr() {return des_addr_;}
const add_type & des_addr() const {return des_addr_;}
time_type start_time() {return start_time_;}
time_type start_time() const {return start_time_;}
time_type finish_time() {return finish_time_;}
time_type finish_time() const {return finish_time_;}
void set_start(time_type a) {start_time_ = a;}
void set_finish(time_type a) {finish_time_ = a;}
long data() {return data_;}
long data() const {return data_;}
flit_template();
flit_template(long a, flit_type b, add_type & c, add_type & d,
time_type e, long f);
flit_template(const flit_template & a);
};
#endif