• 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. How to pass parameters to sub-cells parameter in pcell?

Stats

  • Replies 0
  • Subscribers 143
  • Views 29
  • Members are here 0

How to pass parameters to sub-cells parameter in pcell?

Yuto Lau
Yuto Lau 3 hours ago

Hi everyone,

Based on Andrew's bussetp.il script, (the script is in this link: https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1Od0000000nX1lEAE&pageName=ArticleContent.)

I want to add two cell "vdc" from analogLib into pcell "bussetp", and assign parameter "vhi" and "vlo" as the value of vdc. And I want "vhi" and "vlo" to be  type "string", so that I can assign either number or variable as its value in simulation. I insert below script in the schematic section. With the new script, pcell is created successfully, but whenever I assign a variable, like "vhigh", to parameter "vhi", there is a warning in CIW 

*WARNING* (DB-270000): dbReplaceInstParamList: Datatype for input parameter 'vhi' does not match the definition.

Moreover, if "vhi" and "vlo" value is a string, I have to place the symbol in the schematic first, and then fill in the string in CDF window. Otherwise, all parameters' value remain as default value regardless my edit.

It looks that I did not define "vhi" and "vlo" in a correct way. I would like to know how to define them and assign value to them correctly. Or any other reason to the warning and weird issue in schematic edit.

Regards,

Yutao 

Below is script for inserting cell vdc and assign its value in pcell "bussetp".
;----------------------------------------------------------------
;Create vdc instances for hi and lo
;----------------------------------------------------------------
vhiInst = dbCreateInst(cv vdcMaster "VHI_SRC" -1:0 "R0")
vloInst = dbCreateInst(cv vdcMaster "VLO_SRC" -1:-0.5 "R0")
;----------------------------------------------------------------
; Set DC voltage parameters
;----------------------------------------------------------------
vhiInst->vdc = sprintf(nil "pPar(\"vcvs_hi\")")
vloInst->vdc = sprintf(nil "pPar(\"vcvs_lo\")")
;----------------------------------------------------------------
;Connect Nets to vdc
;----------------------------------------------------------------
dbCreateConnByName(netH vhiInst "PLUS")
dbCreateConnByName(gnd vhiInst "MINUS")
dbCreateConnByName(netL vloInst "PLUS")
dbCreateConnByName(gnd vloInst "MINUS")

  • 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.

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

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