• 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. SKILL pPar error during CDF parameter handling

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14191
  • 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

SKILL pPar error during CDF parameter handling

AleksandrV
AleksandrV over 8 years ago

Hi all,

I'm trying to pass parameters from the top level schematic to a lower level schematic.

The schematic and CDF parameters are generated without problems, but when I try to modify the value of existing schematic components (in this case only inductor is present) and insert pPar("__CDFparName__"), I get an error which says that pPar is an undefined function. Both schematic and symbol are created using dbOpenCellViewByType. The procedure is presented below:

procedure( pcellTestProc(LIB_NAME CELL_NAME VIEW_NAME )
 let((params cellId cdfId cvSchem)
 
    cvSchem = dbOpenCellViewByType(LIB_NAME CELL_NAME "schematic" "schematic" "w")    
    dbReopen(cvSchem "a")
 
    unless( cellId = ddGetObj( LIB_NAME CELL_NAME )
        error( "Could not get cell %s." CELL_NAME )
    )
        when( cdfId = cdfGetBaseCellCDF( cellId )
        cdfDeleteCDF( cdfId )
    )

    ; insert inductor "ind" from library "analogLib"
    params = insertInstance(LIB_NAME CELL_NAME VIEW_NAME "analogLib" "ind" "symbol" "Lpkg" 1 0:0 1:0 "R90")
   
    cdfId = cdfCreateBaseCellCDF( cellId )
    ; Parameters for the
    cdfCreateParam( cdfId
        ?name "extParamL"
        ?prompt "inductance"
        ?defValue ""
        ?type "string"
        ?display ""
        ?parseAsCEL "yes"
    )
 
    cdfSaveCDF( cdfId )

   ; change  value

    params~>l = pPar("model") ;<------------------------ HERE'S WHERE I GET AN ERROR: *Error* eval: undefined function - pPar
    dbSave(cvSchem)
    dbClose(cvSchem)    
 );let
);procedure

How are pPar values passed on to the exiting component parameters via SKILL, where did I go wrong with my approach?


Thanks,

Aleksandr

  • Cancel
  • skillUser
    skillUser over 8 years ago

    Hi Aleksandr,

    The property type is a string, so the pPar call needs to be formatted as a string (you don't want to try and call a SKILL function named pPar() now, it is to be evaluated later, e.g. during netlisting):

    
      params~>l = "pPar(\"model\")"
    

    Hopefully this will resolve the issue?

    Best regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AleksandrV
    AleksandrV over 8 years ago
    Hi Lawrence,

    Thanks for the lightning response.

    Yes, that fixed the issue. Thanks!

    Aleksandr
    • Cancel
    • Vote Up 0 Vote Down
    • 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