Quantcast
Channel: Cadence Custom IC Skill Forum
Viewing all articles
Browse latest Browse all 5101

SKILL pPar error during CDF parameter handling

$
0
0

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


Viewing all articles
Browse latest Browse all 5101

Latest Images

Trending Articles



Latest Images