forked from Evensgn/MIPS-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclude_define.hpp
More file actions
37 lines (32 loc) · 872 Bytes
/
include_define.hpp
File metadata and controls
37 lines (32 loc) · 872 Bytes
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
#ifndef INCLUDE_DEFINE_HPP
#define INCLUDE_DEFINE_HPP
#include <iostream>
#include <iomanip>
#include <map>
#include <string>
#include <bitset>
#include <vector>
#include <cstddef>
#include <fstream>
#include <sstream>
#include "evensgn_string.hpp"
#include "global_class.hpp"
#include "utility.hpp"
typedef unsigned char byte;
const int maxMemoryByte = 4 * 1024 * 1024; // 4MB
const int registerNum = 32 + 2;
const int branchCacheSizeBit = 4, branchCacheSize = 16;
const int branchHistoryBit = 4, branchHistorySize = 16;
/*#define DEBUG
#define DEBUG_REGISTER_NAME
#define DEBUG_READ_TEXT
#define DEBUG_ENTRY_SPLIT
#define DEBUG_TEXT_SPLIT
#define DEBUG_ENTRY_INDEX
#define DEBUG_ENTRY_TYPE
#define DEBUG_ENTRY_STATIC_DATA
#define DEBUG_ENTRY_TO_INSTRUCTION
#define DEBUG_STORE_INSTRUCTION
#define DEBUG_PIPELINE*/
//#define DEBUG_PAUSE
#endif // INCLUDE_DEFINE_HPP