chipflow.packaging.render

Renderers for pins.lock — text table and SVG layout.

Used by chipflow pin show. The text view works for any package type. The SVG view is currently implemented for perimeter-pin packages (QuadPackageDef, BlockPackageDef); other types raise ChipFlowError and are expected to fall back to the text view.

Functions

render_text(lockfile)

Render the pin allocation as a sorted text table.

render_svg(lockfile)

Render the pin allocation as SVG.

Module Contents

chipflow.packaging.render.render_text(lockfile)

Render the pin allocation as a sorted text table.

Parameters:

lockfile (chipflow.packaging.lockfile.LockFile)

Return type:

str

chipflow.packaging.render.render_svg(lockfile)

Render the pin allocation as SVG.

Currently supports QuadPackageDef and BlockPackageDef. Other package types raise ChipFlowError.

Parameters:

lockfile (chipflow.packaging.lockfile.LockFile)

Return type:

str