Module instantiate

Module instantiate 

Source
Expand description

2026-09-28: Instantiate a circuit TOML against an arch shape and a precision resolver.

The prologue blocks run first, then each layer’s blocks in the order its kind maps to, then the epilogue, then the draft blocks. A block’s stream_in binds to the edge the previous stream-writing block left, so layer i’s output edge IS layer i + 1’s input edge and a rule can fuse across the boundary.

Owner: metrale-circuit. Invariants: see crate::circuit_toml; every check there is enforced here, in file order, and the first failure is returned.

Functions§

instantiate
2026-09-28: Parse text, merge the block libraries it includes (includes: name to text), and instantiate it for shape, asking precision for every weight-reading node’s formats.