-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequest.h
40 lines (33 loc) · 879 Bytes
/
request.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
/*
* =====================================================================================
*
* Filename: Request.h
*
* Description: Memory Request Structure
*
* Version: 1.0
* Created: 05/31/2014 08:23:56 PM
* Revision: none
* Compiler: gcc
*
* Author: Rakesh Ramesh (Doctoral Candidate), rakeshr1@stanford.edu
*
* =====================================================================================
*/
#ifndef _REQUEST_H_
#define _REQUEST_H_
#include <iostream>
using namespace std;
struct Request {
// Address map
unsigned int type; // NOTE: Supports only two types for now
unsigned int rank;
unsigned int bank;
// Latency book keep
unsigned long int start_time;
unsigned long int end_time;
unsigned long int latency;
// Other counters
};
ostream &operator<<(ostream &out, Request &req);
#endif