Info commands

Geometry-information commands: metal area, segment listing, partial-inductance matrix dump.

These mirror cmd_metalarea_print (asitic_repl.c:0x0804ee74), cmd_listsegs (case 210), and cmd_lrmat_dump (case 531). The binary’s outputs are textual; we return Python objects and format them as text in format_*() helpers.

reasitic.info.metal_area(shape)[source]

Total xy-projected metal area of shape in μm².

Sum of absolute polygon areas (shoelace formula) across every polygon in the shape. Polygons with fewer than 3 vertices (e.g. a wire) are treated as zero-area.

Parameters:

shape (Shape)

Return type:

float

reasitic.info.list_segments(shape)[source]

Return one dict per segment with position, length, and width.

Parameters:

shape (Shape)

Return type:

list[dict[str, Any]]

reasitic.info.format_segments(shape)[source]

Render list_segments() as the binary’s text format.

Parameters:

shape (Shape)

Return type:

str

reasitic.info.lr_matrix(shape)[source]

Per-segment partial inductance matrix in nH.

Diagonal = self-L of each segment; off-diagonal = signed Grover parallel-segment mutual. Mirrors the binary’s LRMAT dump (case 531).

Parameters:

shape (Shape)

Return type:

ndarray

reasitic.info.format_lr_matrix(shape)[source]

Render the partial-L matrix as a text table.

Parameters:

shape (Shape)

Return type:

str