• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Pcell symbol creation using SKILL

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 15459
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Pcell symbol creation using SKILL

greatqs
greatqs over 12 years ago

Hi,

 

I'm using SKILL code as below to generate a Pcell symbol (i.e. number of symbol terminals depend on CDF parameter).

However, every time when I load these code in CIW (i.e. IC615) into a library which attached to cdsDefaultTechLib, it will complain below warnings:

 *WARNING* (DB-270000): dbiSetCellViewDBUPerUU: The DBUPerUU attribute for viewType 'schematicSymbol' cannot be set to 1000 because it would introduce conflicts in the specified tech graph

 *WARNING* (DB-270000): dbSetCellViewUserUnitName: The UserUnits attribute for viewType 'schematicSymbol' cannot be set to 'micron' because it would introduce conflicts in the specified tech graph

 

The generated symbol seems to have incorrect size and scaling. Anyone knows how to workaround this?

 

=================================================================================

 pcDefinePCell(
    ; target cellView
    list(ddGetObj("test") "myparsubckt" "symbol" "schematicSymbol")

    ; formal parameters
    (
    (padNum 1)
    )

    let((dY justify1 labelId netId
        rectId s
        xEnd xLabel2 xLoc yLoc sc
        h xShape yShape
    )
    pcCellView~>DBUPerUU=1000.0
    pcCellView~>userUnits="micron"
    sc = 0.16
    h = padNum
    dY = (h - 1) * 0.125
    xLoc = 0.625
    ;----------------------------------------------------------------
    ; Create outline
    ;----------------------------------------------------------------
    dbCreateRect(pcCellView
        '("device" "drawing")
        list(0.125 * sc:-0.135 * sc
        0.5 * sc:(0.17 + dY) * sc
        )
    )
    dbCreateRect(pcCellView
        '("instance" "drawing")
        list(0 * sc:-0.25 * sc
        xLoc * sc:(0.17 + dY) * sc
        )
    )
    ;----------------------------------------------------------------
    ; Labels
    ;----------------------------------------------------------------
    sprintf(s "Parasitic Network")
    dbCreateLabel(pcCellView
        '("pin" "label")
        0.3125 * sc:(0.12 + dY) * sc s "centerCenter"
        "R0" "stick"
        0.05 * sc
    )
    labelId = dbCreateLabel(pcCellView
        '("annotate" "drawing7")
        xLoc * sc:(0.2275 + dY) * sc "cdsName()" "upperRight"
        "R0" "stick"
        0.05 * sc
        )
    labelId~>labelType="ILLabel"
    ;----------------------------------------------------------------
    ; Pins
    ;----------------------------------------------------------------
    for(i 1 padNum
        yLoc = (h - i) * 0.125
        xLoc = 0
        xEnd = 0.155
        justify1 = "lowerRight"
        xLabel2 = 0.15625
        xShape = 0.15625
        yShape = ((h - i) * 0.125)
        dbCreateRect(pcCellView
        '("device" "drawing")
        list(xShape * sc:(yShape - 0.05) * sc
            (xShape + 0.1) * sc:(yShape + 0.05) * sc
        )
        )
        dbCreateLine(pcCellView
        '("device" "drawing")
        list(xLoc * sc:yLoc * sc
            xEnd * sc:yLoc * sc
        )
        )
        rectId = dbCreateRect(pcCellView
            '("pin" "drawing")
            list((xLoc - 0.025) * sc:(yLoc - 0.025) * sc
            (xLoc + 0.025) * sc:(yLoc + 0.025) * sc
            )
        )
        sprintf(s "p%d" i)
        netId = dbCreateNet(pcCellView s)
        dbCreateTerm(netId s "inputOutput")
        dbCreatePin(netId rectId)
        sprintf(s "cdsTerm(p%d)" i)
        labelId = dbCreateLabel(pcCellView
            '("annotate" "drawing8")
            xLoc * sc:(yLoc + 0.0625) * sc s justify1
            "R0" "stick"
            0.05 * sc
        )
        labelId~>labelType="ILLabel"
    )
    for(i 1 padNum
        yLoc = (h - i) * 0.125
        xLoc = 0.625
        xEnd = 0.5
        justify1 = "centerLeft"
        xLabel2 = 0.29
        sprintf(s "b%d" i)
        dbCreateLabel(pcCellView
        '("pin" "drawing")
        xLabel2 * sc:yLoc * sc s justify1
        "R0" "stick"
        0.05 * sc
        )
    )
    t
    )
)

 =================================================================================

 

  • Cancel
Parents
  • greatqs
    greatqs over 12 years ago

    Andrew, 

    Thanks for your help!

    The code is copy paste from Cadence support link as below (Solution ID:    11013814)

    http://support.cadence.com/wps/myportal/cos/COSHome/viewsolution/!ut/p/c5/dY3RboIwAEW_xQ8wbRFLeSwIpZCwsDmsvDRAnStIW4xxuq8ffsDOfTy5OaABy0x71-f2pq1pL0CABkvksRgVPgzf4pJATnBZvNcJXACH1wNL-A8UgiNogpf3PERgyNJ9BHlc8JwEGw8WGNTGXqeltAci6120G-lPQkXFfeTGbo6-1SC6uV0n3H2eNqFey9zaaWTBlARK8m2qqNk9P9Jbo0xeye5gz_62nh-Kwr7Sd8boWJgvIxHKnsqhQR9dYq4XjQM9YfYgVCABh34FysxOJ-BG85sSuvoDvXFRFA!!/dl3/d3/L2dBISEvZ0FBIS9nQSEh/
     
    I'm not sure why these 2 lines are needed. But if the target library has tech file of which DBUPerUU / userUnits is 1000 / "micron", the code has no issue at all and the Pcell works perfectly. Only when the target library is process independent (i.e. cdsDefaultTechLib, 160/"inch"), those 2 warnings comes up.
     
    I tried to comment out these 2 lines, then there is no these 2 warning as the code is executed and Pcell is generated. However the size of the Pcell is much smaller and these is impossible to route wires over terminals. I attached a screenshot to show the difference (i.e. left is to create the Pcell in a library of which BUPerUU / userUnits is 1000 / "micron" and right side is to create the Pcell in a library of which BUPerUU / userUnits is 160 / "inch")
     
    • snap.jpg
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • greatqs
    greatqs over 12 years ago

    Andrew, 

    Thanks for your help!

    The code is copy paste from Cadence support link as below (Solution ID:    11013814)

    http://support.cadence.com/wps/myportal/cos/COSHome/viewsolution/!ut/p/c5/dY3RboIwAEW_xQ8wbRFLeSwIpZCwsDmsvDRAnStIW4xxuq8ffsDOfTy5OaABy0x71-f2pq1pL0CABkvksRgVPgzf4pJATnBZvNcJXACH1wNL-A8UgiNogpf3PERgyNJ9BHlc8JwEGw8WGNTGXqeltAci6120G-lPQkXFfeTGbo6-1SC6uV0n3H2eNqFey9zaaWTBlARK8m2qqNk9P9Jbo0xeye5gz_62nh-Kwr7Sd8boWJgvIxHKnsqhQR9dYq4XjQM9YfYgVCABh34FysxOJ-BG85sSuvoDvXFRFA!!/dl3/d3/L2dBISEvZ0FBIS9nQSEh/
     
    I'm not sure why these 2 lines are needed. But if the target library has tech file of which DBUPerUU / userUnits is 1000 / "micron", the code has no issue at all and the Pcell works perfectly. Only when the target library is process independent (i.e. cdsDefaultTechLib, 160/"inch"), those 2 warnings comes up.
     
    I tried to comment out these 2 lines, then there is no these 2 warning as the code is executed and Pcell is generated. However the size of the Pcell is much smaller and these is impossible to route wires over terminals. I attached a screenshot to show the difference (i.e. left is to create the Pcell in a library of which BUPerUU / userUnits is 1000 / "micron" and right side is to create the Pcell in a library of which BUPerUU / userUnits is 160 / "inch")
     
    • snap.jpg
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information