From bd23dfb0169251eb1dcda40a54c0897be40376dc Mon Sep 17 00:00:00 2001 From: stefan Date: Wed, 20 May 2026 13:47:13 +0900 Subject: [PATCH] get a techlib by name --- src/kyupy/techlib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kyupy/techlib.py b/src/kyupy/techlib.py index 6551904..d740b8f 100644 --- a/src/kyupy/techlib.py +++ b/src/kyupy/techlib.py @@ -10,7 +10,6 @@ from itertools import product from . import bench - class TechLib: """Class for standard cell library definitions. @@ -640,4 +639,6 @@ $lpflow_isobufsrckapwr_16 input(A,SLEEP) output(X) AI=INV1(A) X=OR2(AI,SL $lpflow_inputisolatch_1 input(D,SLEEP_B) output(Q) Q=LATCH(D,SLEEP_B) ; """.replace('$','sky130_fd_sc_hd__')) """SkyWater 130nm High Density Digital Standard Cells (skywater-pdk-libs-sky130_fd_sc_hd). -""" \ No newline at end of file +""" + +techlib_by_name = {k: v for k, v in globals().items() if isinstance(v, TechLib)} \ No newline at end of file