|
| static void | build_random_ROM_table (auto &circuit_builder, size_t array_length, size_t num_pair_elts_in_ROM_table=0, const size_t read_operations=0, bool final_arithmetic_gate_and_read=true) |
| | build a random ROM table, together with some read ops and an arithmetic gate. includes several compatibility checks, both "native" and on the level of the circuit.
|
| |
| static void | build_ROM_table_length_zero (auto &circuit_builder) |
| |
| static void | build_ROM_table_with_uninitialized_values (auto &circuit_builder, size_t array_length) |
| |
| static void | build_failing_ROM_table (auto &circuit_builder, size_t array_length, ROMFailureType rom_failure_type) |
| |
| static void | build_random_RAM_table (auto &circuit_builder, size_t array_length, const size_t read_write_operations=0, bool final_arithmetic_gate_and_read=true) |
| |
| static void | build_RAM_table_length_zero (auto &circuit_builder) |
| |
template<typename
Flavor>
class MemoryTests_< Flavor >
Definition at line 21 of file rom_ram.test.cpp.
◆ NativeRamTable
◆ NativeRomTable
◆ ROMFailureType
◆ build_failing_ROM_table()
◆ build_RAM_table_length_zero()
◆ build_random_RAM_table()
| static void MemoryTests_< Flavor >::build_random_RAM_table |
( |
auto & |
circuit_builder, |
|
|
size_t |
array_length, |
|
|
const size_t |
read_write_operations = 0, |
|
|
bool |
final_arithmetic_gate_and_read = true |
|
) |
| |
|
inlinestatic |
◆ build_random_ROM_table()
| static void MemoryTests_< Flavor >::build_random_ROM_table |
( |
auto & |
circuit_builder, |
|
|
size_t |
array_length, |
|
|
size_t |
num_pair_elts_in_ROM_table = 0, |
|
|
const size_t |
read_operations = 0, |
|
|
bool |
final_arithmetic_gate_and_read = true |
|
) |
| |
|
inlinestatic |
build a random ROM table, together with some read ops and an arithmetic gate. includes several compatibility checks, both "native" and on the level of the circuit.
- Parameters
-
| circuit_builder | |
| array_length | |
| num_pair_elts_in_ROM_table | // ROM tables allow for entering in single elements or pairs of elements; this is the number of pairs of elements in our table. |
| read_operations | |
| final_arithmetic_gate_and_read | // if true, then we add an arithmetic gate (using reads and our native memory table), then a final read operation. |
Definition at line 40 of file rom_ram.test.cpp.
◆ build_ROM_table_length_zero()
◆ build_ROM_table_with_uninitialized_values()
| static void MemoryTests_< Flavor >::build_ROM_table_with_uninitialized_values |
( |
auto & |
circuit_builder, |
|
|
size_t |
array_length |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: