[ Skill ] 解决 Design Library 被识别成 Technology Library 的问题

https://www.cnblogs.com/yeungchie/

code

procedure(ycTechLibToDesign(libName attachLibName)
    prog((libId techId attachLibId attachTechId)
        unless(libId = ddGetObj(libName)
            error("Could not access library %s\n" libName)
        )
        techId = techGetTechFile(libId)
        unless(techId~>libName == libName
            error("Library is already attached to tech library %s\n" techId~>libName)
        )
        unless(attachLibId = ddGetObj(attachLibName)
            error("Could not access library %s\n" attachLibName)
        )
        attachTechId = techGetTechFile(attachLibId)
        techDeleteTechFile(techId)
        techBindTechFile(libId attachTechId~>libName attachTechId~>fileName)
        return(t)
    )
)

describe

ycTechLibToDesign(t_libName t_attachLibName)

将被识别成 Technology Library 的 t_libName 库 Attach 到 t_attachLibName 上。
这会让 t_libName 重新识别为 Design Library 。

example

ycTechLibToDesign("project_layout" "pdk_library")
; =>t
posted @ 2020-06-16 20:29  YEUNGCHIE  阅读(1954)  评论(1)    收藏  举报