Skip to main content

wiring

Function wiring 

Source
fn wiring(scale: &Scale) -> Vec<(PinId, PinId, &'static str)>
Expand description

Every wire, as the pins it joins. The scheme leaves no pin dangling:

  • in_i → block(i,0).b0 and block((i+1)%N,0).b1 (column-0 inputs)
  • block.s → right neighbour’s b0 and b1 (horizontal chain)
  • last col s → out_i (sheet outputs)
  • block.c → block-below.b1 (wrapping) (vertical carry)