• 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. Create symbol from schematic.

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 142
  • Views 7949
  • 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

Create symbol from schematic.

Serjik
Serjik over 7 years ago

Hi all,

1. I'm reading info from file.

2. The main part. Create library and schematic view. Insert mos device to schematic. After that i need to create symbol, but i stuck on this step. How can i do it ? Secondly how can i close the schematic editor window ?

Here is my cod:


x=infile("~/Desktop/Skill/input")
fscanf(x "%s %s %f %s %f %d %s %s %f %s %f %d" p w wp l lp mp n w1 wn l1 ln mn)
list(p wp lp mp n wn ln mn)

procedure( lib( name)
    dbCreateLib( name)
/*********************************/
    deNewCellView( name "p05" "schematic" "schematic" nil)
    cv=geGetEditCellView()
    dbCreateParamInstByMasterName(cv "Tech_lib" p "symbol" "i1" list(0 0) "R0" mp list(list("w_fing" "float" wp ) list("l" "float" lp)))
    schCheck(cv)
    dbSave(cv)
/*    hiCloseWindow( cv) */
/*********************************/
/*    deNewCellView( name "p05" "symbol" "schematicSymbol" nil)*/
schHiViewToView( name "p05" "schematic" "symbol" "schematicSymbol" )
hiFormDone(schSgForm)
);procedure

Best regards,

Sergey.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago
    Hi Sergey,
    First of all, there’s no need to open the schematic in a window in the first place - you can do something like this:
    procedure( CreateLibSchSym(libName cellName tranName mp wp lp)
      let((cv)
        dbCreateLib( libName) 
        cv=dbOpenCellViewByType( libName cellName "schematic" "schematic” “a”) ; could use “w” instead of “a” if you want to erase any previous schematic
        dbCreateParamInstByMasterName(cv "Tech_lib" tranName "symbol" "i1" list(0 0) "R0" mp list(list("w_fing" "float" wp ) list("l" "float" lp)))
        schCheck(cv)
        dbSave(cv)
        schPinListToSymbol(libName cellName “symbol” schSchemToPinList(libName cellName “schematic”))
    );procedure
    Something like that. I’ve tried to make your function a bit less dependent upon global variables by passing them into the function as arguments. Of course, the above is not going to be particularly good as there are no pins on the schematic you’re generating, so the symbol would have no pins either.
    Regards,
    Andrew.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Serjik
    Serjik over 7 years ago
    Thank you Andrew, this is exactly what I need.

    Best regards,

    Sergey.

    • 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