Skip to content

Commit 16a9c32

Browse files
authored
Merge pull request #116 from siliconcompiler/update
update to SC API
2 parents ddf8379 + e8a1de7 commit 16a9c32

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lambdalib/__init__.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
from siliconcompiler import Design, ASICProject
1+
from typing import List
2+
3+
from siliconcompiler import Design, ASIC
4+
from siliconcompiler.library import LibrarySchema
25

36
# individual modules
47
from lambdalib import auxlib
@@ -18,7 +21,7 @@ class LambalibTechLibrary(Design):
1821
This class encapsulates a main lambda library cell and a list of technology
1922
libraries, providing a mechanism to alias them within an ASIC project.
2023
"""
21-
def __init__(self, lambdalib, techlibs):
24+
def __init__(self, lambdalib, techlibs: List[LibrarySchema]):
2225
"""Initializes the LambalibTechLibrary instance.
2326
2427
Args:
@@ -35,19 +38,19 @@ def __init__(self, lambdalib, techlibs):
3538
self.__techlibs = techlibs
3639

3740
@classmethod
38-
def alias(cls, project: ASICProject):
41+
def alias(cls, project: ASIC) -> None:
3942
"""Creates and registers aliases for the library and its techlibs in a project.
4043
41-
This method checks if the provided project is an ASICProject and if the
44+
This method checks if the provided project is an ASIC and if the
4245
lambda library cell exists within the project's libraries. If both
4346
conditions are met, it adds an alias for the main library and adds
4447
each associated technology library to the project's ASIC libraries.
4548
4649
Args:
47-
project (ASICProject): The ASIC project instance to which the aliases
50+
project (ASIC): The ASIC project instance to which the aliases
4851
and libraries will be added.
4952
"""
50-
if not isinstance(project, ASICProject):
53+
if not isinstance(project, ASIC):
5154
return
5255

5356
tech = cls()

0 commit comments

Comments
 (0)