• 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 Design
  3. Generate netlist with subckt statement for top level

Stats

  • Locked Locked
  • Replies 12
  • Subscribers 127
  • Views 18980
  • 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

Generate netlist with subckt statement for top level

Octavian
Octavian over 11 years ago

I'm generating a netlist from CIW using:

simulator('spectre)
design("libName" "cellName" "viewName")
createNetlist()

This works fine but I would like to enclose the top level cell in .subckt/ends statements, similar to other cells in the hierarchy. Is that possible using the skill/ocean interface?

 

Thanks,

--Tavi

  • Cancel
Parents
  • NcfC
    NcfC over 11 years ago

    Hi, Andrew. I placed your code, followed by Tavi's code, inside a procedure, but I got some problems.

    If I call the procedure from within CIW, I don't get any errors and the netlist is generated as it should be.

    But if I placed it as a sub menu item,

     procedure( AddItemSubHier( _args )

    let( ( fileMenu slider MenuItemSubCktNetlist )

    fileMenu = car( setof( menu hiGetBannerMenus( hiGetCurrentWindow() ) rexMatchp("^schFileMenu" menu ) ) )

    if( fileMenu 

    slider = eval( car( setof( item eval( fileMenu )->? rexMatchp( "^schHierSlider" item ) ) ) ) 

    )

    MenuItemSubCktNetlist = hiCreateMenuItem( ?name 'menu1 ?itemText "Netlist - Subcircuito" ?callback "Netlist_TopLevel_SubCkt()" )

    when( !slider->menu1 hiInsertMenuItem( slider MenuItemSubCktNetlist length( slider->? ) ) )

    ) ;let

    ) ;procedure

    deRegUserTriggers( "schematic" nil nil 'AddItemSubHier )

    and load it in the cdsinit.il file, I get the following error:

    *Error* _iliGetSlotSpecs: not a class object or class name - spectreFormatter

     

    What have I done wrong?

     

    Thanks in advance.

     

    Best regards,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • NcfC
    NcfC over 11 years ago

    Hi, Andrew. I placed your code, followed by Tavi's code, inside a procedure, but I got some problems.

    If I call the procedure from within CIW, I don't get any errors and the netlist is generated as it should be.

    But if I placed it as a sub menu item,

     procedure( AddItemSubHier( _args )

    let( ( fileMenu slider MenuItemSubCktNetlist )

    fileMenu = car( setof( menu hiGetBannerMenus( hiGetCurrentWindow() ) rexMatchp("^schFileMenu" menu ) ) )

    if( fileMenu 

    slider = eval( car( setof( item eval( fileMenu )->? rexMatchp( "^schHierSlider" item ) ) ) ) 

    )

    MenuItemSubCktNetlist = hiCreateMenuItem( ?name 'menu1 ?itemText "Netlist - Subcircuito" ?callback "Netlist_TopLevel_SubCkt()" )

    when( !slider->menu1 hiInsertMenuItem( slider MenuItemSubCktNetlist length( slider->? ) ) )

    ) ;let

    ) ;procedure

    deRegUserTriggers( "schematic" nil nil 'AddItemSubHier )

    and load it in the cdsinit.il file, I get the following error:

    *Error* _iliGetSlotSpecs: not a class object or class name - spectreFormatter

     

    What have I done wrong?

     

    Thanks in advance.

     

    Best regards,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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