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

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 145
  • Views 14714
  • 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

CDL extraction

Hith
Hith over 12 years ago

hi,

 

We have the skill to  extract multiple cells from the celllist from the shell. We need to export its cdl from the corresponding schematics. Is there any way to put this extraction on queue.We get only first cell of the cell list is exported. Before the previous cell is extracted the cdl export of next cell is commenced.

 

i am posting my skill below

procedure(CDLOutData()

let((cv)

cv = ""

 inPort = infile( "~/SKILL/celllist" )

when( inPort

while( gets( nextLine inPort )

lineData = parseString(nextLine "\n")

 Data=car( lineData)

 if( Data != nil

then

cv=dbOpenCellViewByType("LIB" Data "schematic")

if(cv == nil

then

             printf(Data)

print( "No cdl" )

 else

  printf(Data)

print( "cdl is present" )

CdlOut_Assign(cv)

) )

)

close( inPort )

)

 );let

);procedure

procedure( CdlOut_Assign(cv)

hiFormDone(transCdlOutForm)

 let((cdl_path cdl_name cdl_value)

cdl_name = cv->cellName

cdl_value = buildString(list(cdl_name "cdl") ".")

out_file = outfile("output.il")

fprintf(out_file "cdlOutKeys = list(nil\n'simLibName \"%s\" \n'simCellName \"%s\" \n'simViewName \"%s\" \n'cdlSimViewList \"auCdl schematic\" \n'cdlSimStopList \"auCdl\" \n'simRunDir \"%s\" \n'hnlNetlistFileName \"%s\" \n'cdsNetlistingMode \"Analog\" \n'shortRES 0.0 \n'resistorModel \"\" \n'setEQUIV \"\" \n'incFILE \"/~/source.added\" \n'globalPowerSig \"\" \n'globalGndSig \"\" \n'resistorCheck \"value\" \n'capacitorCheck \"value\" \n'pinMAP t \n'shrinkFACTOR 0.0 \n'diodeCheck \"both\" \n'checkScale \"meter\" \n'displayPININFO nil \n'checkLDD t\n )" cv->libName cv->cellName cv->viewName cdl_outForm~>CDLPath~>value cdl_value)

close(out_file)

transCdlOutGetProps("output.il")

);let

);procedure

string_v = nil

InputField=hiCreateStringField(

?name 'CDLPath

?prompt "CDL Path :"

?value ""

?defValue ""

?callback ""

)

hiCreateAppForm( ?name 'cdl_outForm

?formTitle "CDL Path"

?callback "assignment_cdl()"

?fields list( InputField )

)

status = hiDisplayForm( cdl_outForm )

procedure(assignment_cdl()

string_v=cdl_outForm~>CDLPath~>value

if( string_v != nil

then

CDLOutData()

)

)

 

  • Cancel
  • theopaone
    theopaone over 12 years ago

     I don't have access to test your program but you are opening and closing the same file output.il in the subroutine CdlOut_Assign. Each time you open the file with outfile(...) it creates a new version of the file, overwriting the existing one. You need to open the file in append mode or open the file once in the calling function and pass the file handle in as an argument.

     

    Ted

    • 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