summaryrefslogtreecommitdiff
path: root/inc/definitions.h
diff options
context:
space:
mode:
authorbd <bdunaisky@umass.edu>2025-03-23 17:47:34 +0000
committerGitHub <noreply@github.com>2025-03-23 17:47:34 +0000
commit877aa98855fad77ef93a8c9f5a5e8191fbb9e699 (patch)
tree75d92632f6e9b2f112e45791af9dc01389039557 /inc/definitions.h
parent8a0a483c0e63fd2be6f514a20ae7309e2e768c94 (diff)
parentdf2391b70b89f15be7932d18fa77f950fc452f31 (diff)
Merge pull request #30 from bdunahu/bdunahu
Add controller.h, implementation and tests.
Diffstat (limited to 'inc/definitions.h')
-rw-r--r--inc/definitions.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/definitions.h b/inc/definitions.h
index eced554..ff2f7c6 100644
--- a/inc/definitions.h
+++ b/inc/definitions.h
@@ -32,7 +32,7 @@
#define L1_CACHE_LINES static_cast<int>(pow(2, L1_CACHE_LINE_SPEC))
/**
- * The total number of cycles a memory access takes.
+ * The total number of cycles a memory access takes
*/
#define MEM_DELAY 3
@@ -42,6 +42,11 @@
#define L1_CACHE_DELAY 0
/**
+ * The number of general purpose registers
+ */
+#define GPR_NUM 16
+
+/**
* Return the N least-significant bits from integer K using a bit mask
* @param the integer to be parsed
* @param the number of bits to be parsed