[BuildLibrary] allow prefixing/renaming/postprocessing in BuildCellsView

This commit is contained in:
Jan Petykiewicz 2026-08-28 20:25:14 -07:00
commit 890e7e5c0f
3 changed files with 611 additions and 40 deletions

View file

@ -45,6 +45,16 @@ def main() -> None:
builder = LibraryBuilder()
cells = builder.cells
# Naming and export policy can be bound once without changing individual
# declarations. For example, a foundry-specific group could use:
#
# cells = builder.cells.prefixed(
# 'foundry_',
# facade=lambda proxy: devices.ports_to_data(proxy),
# )
#
# Dynamic names use the same view: cells[generated_name] = cell(factory)(...)
#
# Load some devices from a GDS file
#