• 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. Seeing error while exporting a pcell

Stats

  • Replies 2
  • Subscribers 149
  • Views 826
  • Members are here 0

Seeing error while exporting a pcell

GB20250109498
GB20250109498 1 month ago

Hi, Encountering below error while building a pcell using script. Pcell is absolutely fine, but seeing issue while exporting. but  Not understanding the exact proplem,, can anybody help me?

PCELL CODE:

pcDefinePCell(
list( ddGetObj("LOCAL_LIB") "cellname" "layout")

(
(Fingers string "12")
(Nrows string "1")
(Vt_type?svt?lvt?ulvt? string "svt")
(Gate_Length_8?11? string "8")
(Bottom_Row_vss?vdd? string "vss")
(col_tap?none?left?right?both? string "none")
)

let(
(cv cell Fngr npoly nh Dev_VT PL Start tap col_tap Lib PC NC BR BL PR2 PR4 PR8 NR2 NR4 NR8 NTAP PTAP COL_TAP origX origY ppitch row_pitch rows coltap_h x y row_tap_wid)
cv=pcCellView

unless( cellId = ddGetObj( "LOCAL_LIB" "cellname" )
error( "Could not find cell %s." cell ) ; error, if cell not in library
)
when( cdfId = cdfGetBaseCellCDF( cellId )
cdfDeleteCDF( cdfId )
)

cellId=ddGetObj("LOCAL_LIB" "cellname")
cdfId=cdfCreateBaseCellCDF(cellId)

cdfCreateParam(cdfId
?name "Fingers"
?type "string"
?prompt "Fingers"
?defValue "2"
)
cdfCreateParam(cdfId
?name "Nrows"
?type "string"
?prompt "Number of Rows"
?defValue "2"
)
cdfCreateParam(cdfId
?name "Vt_type?svt?lvt?ulvt?"
?type "radio"
?prompt "VT type"
?choices list("SVT" "LVT" "ULVT")
?defValue "SVT"
)
cdfCreateParam(cdfId
?name "Gate_Length_8?11?"
?type "radio"
?prompt "Gate Length"
?choices list("8" "11")
?defValue "8"
)
cdfCreateParam(cdfId
?name "Bottom_Row_vss?vdd?"
?type "radio"
?prompt "Bottom Row"
?choices list("vss" "vdd")
?defValue "vss"
)
cdfCreateParam(cdfId
?name "col_tap?none?left?right?both?"
?type "radio"
?prompt "Column Tap"
?choices list("None" "Left" "Right" "Both")
?defValue "None"
)

<Body of the script>
]

Error while exporing the GDS:


*WARNING* (DB-270001): Pcell evaluation for LOCAL_LIB/cellname/layout has the following error(s):
*WARNING* (DB-270002): ("eval" 0 t nil ("*Error* eval: undefined function" cdfCreateBaseCellCDF))
ERROR (XSTRM-231): Pcell evaluation failed for 'LOCAL_LIB/cellname/layout' because the Pcell SKILL code contains either a syntax error or an unsupported XStream function. Check the standard output or the Virtuoso log file for more information. Cadence recommends correcting the Pcell SKILL code to resolve the issue. However, to ignore these errors and continue the translation, you may use the '-ignorePcellEvalFail' option.
INFO (XSTRM-273): Translation failed. '1' error(s) and '39' warning(s) found.
strmout completed.

  • Cancel
  • Sign in to reply
  • Andrew Beckett
    Andrew Beckett 1 month ago

    It makes no sense to create the CDF within the PCell itself. This would mean that it recreates it every time the PCell evaluates (ie every variant) and that’s pointless (and a user would most likely not have the permissions either). In addition, the function won’t work in stream out anyway.

    The solution is to move the CDF creation part outside of the pcDefinePCell call. 

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • GB20250109498
    GB20250109498 1 month ago in reply to Andrew Beckett

    Thanks Andrew, I moved the CDF creation outside the pcell, and its working absolutely fine. Slight smile

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel

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.

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

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