Skip to main content

eval_loop_fabric

Function eval_loop_fabric 

Source
pub fn eval_loop_fabric(lf: &LoopFabric, params: &[i64]) -> i64
Expand description

Evaluate the CGRA op-by-op the way the sequential controller does: initialise the state, then for each induction value in lo..=hi apply the body and latch the next state. 64-bit wrapping — bit-identical to the VM’s Int reduced mod 2⁶⁴. This is the reference the emitted clocked circuit is checked against.