[BuildLibrary] allow prefixing/renaming/postprocessing in BuildCellsView
This commit is contained in:
parent
b62879b410
commit
890e7e5c0f
3 changed files with 611 additions and 40 deletions
|
|
@ -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
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue