Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
perms_ecc_mem.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_ECC_MEM_WRITE_MEM_0";
18 static constexpr std::string_view RELATION_NAME = "ecc_mem";
19 static constexpr size_t COLUMNS_PER_SET = 6;
20 static constexpr Column SRC_SELECTOR = Column::ecc_add_mem_sel_should_exec;
21 static constexpr Column DST_SELECTOR = Column::memory_sel_ecc_write_0_;
22 static constexpr Column INVERSES = Column::perm_ecc_mem_write_mem_0_inv;
23 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
24 ColumnAndShifts::ecc_add_mem_execution_clk, ColumnAndShifts::ecc_add_mem_space_id,
25 ColumnAndShifts::ecc_add_mem_dst_addr_0_, ColumnAndShifts::ecc_add_mem_res_x,
26 ColumnAndShifts::precomputed_zero, ColumnAndShifts::ecc_add_mem_sel_should_exec
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_ECC_MEM_WRITE_MEM_1";
42 static constexpr std::string_view RELATION_NAME = "ecc_mem";
43 static constexpr size_t COLUMNS_PER_SET = 6;
44 static constexpr Column SRC_SELECTOR = Column::ecc_add_mem_sel_should_exec;
45 static constexpr Column DST_SELECTOR = Column::memory_sel_ecc_write_1_;
46 static constexpr Column INVERSES = Column::perm_ecc_mem_write_mem_1_inv;
47 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
48 ColumnAndShifts::ecc_add_mem_execution_clk, ColumnAndShifts::ecc_add_mem_space_id,
49 ColumnAndShifts::ecc_add_mem_dst_addr_1_, ColumnAndShifts::ecc_add_mem_res_y,
50 ColumnAndShifts::precomputed_zero, ColumnAndShifts::ecc_add_mem_sel_should_exec
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
63
65 static constexpr std::string_view NAME = "PERM_ECC_MEM_WRITE_MEM_2";
66 static constexpr std::string_view RELATION_NAME = "ecc_mem";
67 static constexpr size_t COLUMNS_PER_SET = 6;
68 static constexpr Column SRC_SELECTOR = Column::ecc_add_mem_sel_should_exec;
69 static constexpr Column DST_SELECTOR = Column::memory_sel_ecc_write_2_;
70 static constexpr Column INVERSES = Column::perm_ecc_mem_write_mem_2_inv;
71 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> SRC_COLUMNS = {
72 ColumnAndShifts::ecc_add_mem_execution_clk, ColumnAndShifts::ecc_add_mem_space_id,
73 ColumnAndShifts::ecc_add_mem_dst_addr_2_, ColumnAndShifts::ecc_add_mem_res_is_inf,
74 ColumnAndShifts::ecc_add_mem_sel_should_exec, ColumnAndShifts::ecc_add_mem_sel_should_exec
75 };
76 static constexpr std::array<ColumnAndShifts, COLUMNS_PER_SET> DST_COLUMNS = {
77 ColumnAndShifts::memory_clk, ColumnAndShifts::memory_space_id, ColumnAndShifts::memory_address,
78 ColumnAndShifts::memory_value, ColumnAndShifts::memory_tag, ColumnAndShifts::memory_rw
79 };
80};
81
83template <typename FF_>
85
86} // namespace bb::avm2
This file contains the template for the generic permutation that can be specialized to enforce variou...
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
static constexpr std::string_view NAME
static constexpr std::string_view RELATION_NAME
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > DST_COLUMNS
static constexpr std::string_view RELATION_NAME
static constexpr std::string_view NAME
static constexpr std::array< ColumnAndShifts, COLUMNS_PER_SET > SRC_COLUMNS