mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-09 17:23:08 +00:00
* Column definitions for addition, range checks & lookups I implemented addition (unsigned for now) as an example of how the arithmetic unit can interact with the 16-bit range check unit. Range checks and lookups aren't implemented yet. * Missing constraints * Tweaks to get tests passing * Reorg registers into files * Minor
21 lines
699 B
Rust
21 lines
699 B
Rust
pub(crate) mod arithmetic;
|
|
pub(crate) mod boolean;
|
|
pub(crate) mod core;
|
|
pub(crate) mod logic;
|
|
pub(crate) mod lookup;
|
|
pub(crate) mod memory;
|
|
pub(crate) mod permutation;
|
|
pub(crate) mod range_check_16;
|
|
pub(crate) mod range_check_degree;
|
|
|
|
const START_ARITHMETIC: usize = 0;
|
|
const START_BOOLEAN: usize = arithmetic::END;
|
|
const START_CORE: usize = boolean::END;
|
|
const START_LOGIC: usize = core::END;
|
|
const START_LOOKUP: usize = logic::END;
|
|
const START_MEMORY: usize = lookup::END;
|
|
const START_PERMUTATION: usize = memory::END;
|
|
const START_RANGE_CHECK_16: usize = permutation::END;
|
|
const START_RANGE_CHECK_DEGREE: usize = range_check_16::END;
|
|
pub(crate) const NUM_COLUMNS: usize = range_check_degree::END;
|