summaryrefslogtreecommitdiff
path: root/memory/line.h
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-11-11 16:28:55 -0800
committerJulian Blake Kongslie2022-11-11 16:28:55 -0800
commitdb82579d3c023c441c895d26d32de3fa039eafa4 (patch)
treee42ee62e50a5910dac54f6b57489876303b3d516 /memory/line.h
parentSlightly more ergonomic support for events without data (diff)
downloadnanosim-db82579d3c023c441c895d26d32de3fa039eafa4.tar.xz
Starting to write a real memory subsystem for biggolf.
Diffstat (limited to 'memory/line.h')
-rw-r--r--memory/line.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/memory/line.h b/memory/line.h
index 3377ec8..82b85f5 100644
--- a/memory/line.h
+++ b/memory/line.h
@@ -7,9 +7,9 @@
7#include "infra/sim.h" 7#include "infra/sim.h"
8 8
9namespace memory { 9namespace memory {
10 constexpr std::uint64_t LINE_BYTES_LOG2 = 4; 10 constexpr std::uint64_t LINE_BYTES_LOG2 = 2;
11 constexpr std::uint64_t LINE_BYTES = 1 << LINE_BYTES_LOG2; 11 constexpr std::uint64_t LINE_BYTES = 1 << LINE_BYTES_LOG2;
12 constexpr std::uint64_t LINE_BYTE_OFFSET_MASK = LINE_BYTES - 1; 12 constexpr std::uint64_t LINE_BYTE_OFFSET_MASK = LINE_BYTES - 1;
13 13
14 typedef std::array<std::uint8_t, LINE_BYTES> line; 14 typedef std::array<unsigned int, LINE_BYTES> line;
15} 15}