Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
memory_event.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
5
#include "
barretenberg/vm2/common/memory_types.hpp
"
6
7
namespace
bb::avm2::simulation
{
8
9
enum class
MemoryMode
{
10
READ
,
11
WRITE
,
12
};
13
14
struct
MemoryEvent
{
15
uint32_t
execution_clk
;
16
MemoryMode
mode
;
17
MemoryAddress
addr
;
18
MemoryValue
value
;
19
uint32_t
space_id
;
20
25
bool
operator<
(
MemoryEvent
const
& other)
const
;
26
};
27
28
}
// namespace bb::avm2::simulation
bb::avm2::TaggedValue
Definition
tagged_value.hpp:70
memory_types.hpp
bb::avm2::simulation
Definition
address_derivation.cpp:8
bb::avm2::simulation::MemoryMode
MemoryMode
Definition
memory_event.hpp:9
bb::avm2::simulation::MemoryMode::READ
@ READ
bb::avm2::simulation::MemoryMode::WRITE
@ WRITE
bb::avm2::MemoryAddress
uint32_t MemoryAddress
Definition
memory_types.hpp:11
bb::avm2::simulation::MemoryEvent
Definition
memory_event.hpp:14
bb::avm2::simulation::MemoryEvent::execution_clk
uint32_t execution_clk
Definition
memory_event.hpp:15
bb::avm2::simulation::MemoryEvent::mode
MemoryMode mode
Definition
memory_event.hpp:16
bb::avm2::simulation::MemoryEvent::operator<
bool operator<(MemoryEvent const &other) const
A comparator to be used by sorting algorithm (std::sort()). We sort first by ascending space_id,...
Definition
memory_event.cpp:8
bb::avm2::simulation::MemoryEvent::value
MemoryValue value
Definition
memory_event.hpp:18
bb::avm2::simulation::MemoryEvent::space_id
uint32_t space_id
Definition
memory_event.hpp:19
bb::avm2::simulation::MemoryEvent::addr
MemoryAddress addr
Definition
memory_event.hpp:17
src
barretenberg
vm2
simulation
events
memory_event.hpp
Generated by
1.9.8