Function halo2_base::gates::builder::assign_threads_in
source · [−]pub fn assign_threads_in<F: ScalarField>(
phase: usize,
threads: Vec<Context<F>>,
config: &FlexGateConfig<F>,
lookup_advice: &[Column<Advice>],
region: &mut Region<'_, F>,
break_points: ThreadBreakPoints
)
Expand description
Assigns threads to regions of advice column.
Uses preprocessed break_points
to assign where to divide the advice column into a new column for each thread.
Performs only witness generation, so should only be evoked during proving not keygen.
Assumes that the advice columns are already assigned.
phase
- the phase of the circuitthreads
- Vec threads to assignconfig
- immutable reference to the configuration of the circuitlookup_advice
- Slice of lookup advice columnsregion
- mutable reference to the region to assign threads tobreak_points
- the preprocessed break points for the threads