Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
perms_data_copy.hpp
Go to the documentation of this file.
1// AUTOGENERATED FILE
2#pragma once
3
4#include <cstddef>
5#include <string_view>
6#include <tuple>
7
8#include "../columns.hpp"
11
12namespace bb::avm2 {
13
15
17 static constexpr std::string_view NAME = "PERM_DATA_COPY_MEM_WRITE";
18 static constexpr std::string_view RELATION_NAME = "data_copy";
19 static constexpr size_t COLUMNS_PER_SET = 6;
20 static constexpr Column SRC_SELECTOR = Column::data_copy_sel_mem_write;
21 static constexpr Column DST_SELECTOR = Column::memory_sel_data_copy_write;
22 static constexpr Column INVERSES = Column::perm_data_copy_mem_write_inv;
23 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
24 ColumnAndShifts::data_copy_clk, ColumnAndShifts::data_copy_dst_context_id,
25 ColumnAndShifts::data_copy_dst_addr, ColumnAndShifts::data_copy_value,
26 ColumnAndShifts::precomputed_zero, ColumnAndShifts::data_copy_sel_mem_write
27 };
28 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
29 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
30 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
31 };
32};
33
35template <typename FF_>
37
39
41 static constexpr std::string_view NAME = "PERM_DATA_COPY_MEM_READ";
42 static constexpr std::string_view RELATION_NAME = "data_copy";
43 static constexpr size_t COLUMNS_PER_SET = 6;
44 static constexpr Column SRC_SELECTOR = Column::data_copy_sel_mem_read;
45 static constexpr Column DST_SELECTOR = Column::memory_sel_data_copy_read;
46 static constexpr Column INVERSES = Column::perm_data_copy_mem_read_inv;
47 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
48 ColumnAndShifts::data_copy_clk, ColumnAndShifts::data_copy_src_context_id,
49 ColumnAndShifts::data_copy_read_addr, ColumnAndShifts::data_copy_value,
50 ColumnAndShifts::precomputed_zero, ColumnAndShifts::precomputed_zero
51 };
52 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
53 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
54 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
55 };
56};
57
59template <typename FF_>
61
62} // namespace bb::avm2
This file contains the template for the generic permutation that can be specialized to enforce variou...
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::string_view RELATION_NAME