-
Notifications
You must be signed in to change notification settings - Fork 1
/
mem_hierarchy.h
51 lines (41 loc) · 1.53 KB
/
mem_hierarchy.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
50
51
/***************************************************************************
memory_level.h - description
-------------------
begin : Sat Aug 17 2002
copyright : (C) 2002 by Davide Patti
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef MEMORY_LEVEL_H
#define MEMORY_LEVEL_H
#include <string>
#include <iostream>
#include <fstream>
#include "parameter.h"
#include "common.h"
using namespace std;
enum cache_type { L1D_CACHE,L1I_CACHE,L2U_CACHE };
class Mem_hierarchy {
public:
Mem_hierarchy();
struct Cache
{
string label;
cache_type type;
Parameter block_size;
Parameter size;
Parameter associativity;
int latency;
int bus_width;
} L1D,L1I,L2U;
void set_to_default();
void set_config(const Configuration&);
};
#endif