blob: 82b85f5b4fc23a6835419715236f230339d899ff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
#include <array>
#include <cstdint>
#include "infra/port.h"
#include "infra/sim.h"
namespace memory {
constexpr std::uint64_t LINE_BYTES_LOG2 = 2;
constexpr std::uint64_t LINE_BYTES = 1 << LINE_BYTES_LOG2;
constexpr std::uint64_t LINE_BYTE_OFFSET_MASK = LINE_BYTES - 1;
typedef std::array<unsigned int, LINE_BYTES> line;
}
|