• 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. How to export spice netlist?

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 19463
  • 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

How to export spice netlist?

DaveZhang
DaveZhang over 4 years ago

Hi all,

Is there have any command that can export a spice format netlist in Linux shell or CIW? 

Any help is appreciated! 

thanks. 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    If you need SPICE, and you have the license to allow access to the hspiceD interface in ADE, you would simply use these SKILL functions in the CIW:

    simulator('hspiceD)
    design(libName cellName viewName "r")
    createNetlist(?display nil)

    There's also the CDL netlist format which is SPICE-like. For that, create an si.env file similar to what you get from FIle->Export->CDL and then from UNIX you can use "si -batch -command netlist".

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DaveZhang
    DaveZhang over 4 years ago in reply to Andrew Beckett

    Hi Andrew,

    thank you for your reply.

    '''createNetlist' works fine, but the netlist exported by this command only shows the information for the top cell view. can we exoprt a hierarchical SPICE format netlist like the CDL format netlist? 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to DaveZhang

    It absolutely should be a hierarchical netlist - I can't see why that wouldn't be the case unless your switch and stop views are messed up.

    It doesn't (by default) include a subckt for the top level block - it just contains the top level components directly. Maybe that's what you meant? You'd need to add:

    envOption('setTopLevelAsSubckt t)

    before the createNetlist for that. Here's an example of what it produced (the input.ckt file):

    ** Generated for: hspiceD
    ** Generated on: Mar 23 06:37:51 2021
    ** Design library name: opamp090
    ** Design cell name: full_diff_opamp
    ** Design view name: schematic
    .GLOBAL vdd!
    
    
    .TEMP 25.0
    .OPTION
    +    ARTIST=2
    +    INGOLD=2
    +    PARHIER=LOCAL
    +    PSF=2
    
    ** Library name: opamp090
    ** Cell name: ampp
    ** View name: schematic
    .subckt ampp in nbias ncasc out pbias pcasc
    m8 net039 nbias 0 0 gpdk090_nmos1v L=1e-6 W=8.6e-6 AD=2.408e-12 AS=2.408e-12 PD=17.76e-6 PS=17.76e-6 M=1
    m7 net043 nbias 0 0 gpdk090_nmos1v L=1e-6 W=8.6e-6 AD=2.408e-12 AS=2.408e-12 PD=17.76e-6 PS=17.76e-6 M=1
    m6 out ncasc net039 0 gpdk090_nmos1v L=420e-9 W=8.6e-6 AD=2.408e-12 AS=2.408e-12 PD=17.76e-6 PS=17.76e-6 M=1
    m5 nbias ncasc net043 0 gpdk090_nmos1v L=420e-9 W=8.6e-6 AD=2.408e-12 AS=2.408e-12 PD=17.76e-6 PS=17.76e-6 M=1
    m4 out pcasc net23 vdd! gpdk090_pmos1v L=360e-9 W=25.4e-6 AD=7.112e-12 AS=7.112e-12 PD=25.96e-6 PS=25.96e-6 M=1
    m3 nbias pcasc in vdd! gpdk090_pmos1v L=360e-9 W=25.4e-6 AD=7.112e-12 AS=7.112e-12 PD=25.96e-6 PS=25.96e-6 M=1
    m2 net23 pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=7.112e-12 AS=7.112e-12 PD=25.96e-6 PS=25.96e-6 M=1
    m1 in pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=7.112e-12 AS=7.112e-12 PD=25.96e-6 PS=25.96e-6 M=1
    .ends ampp
    ** End of subcircuit definition.
    
    ** Library name: opamp090
    ** Cell name: ampn
    ** View name: schematic
    .subckt ampn in nbias ncasc out pbias pcasc
    m8 net039 nbias 0 0 gpdk090_nmos1v L=1e-6 W=10e-6 AD=3e-12 AS=3e-12 PD=10.6e-6 PS=10.6e-6 M=1
    m7 in nbias 0 0 gpdk090_nmos1v L=1e-6 W=10e-6 AD=3e-12 AS=3e-12 PD=10.6e-6 PS=10.6e-6 M=1
    m6 out ncasc net039 0 gpdk090_nmos1v L=1.5e-6 W=10e-6 AD=3e-12 AS=3e-12 PD=10.6e-6 PS=10.6e-6 M=1
    m5 nbias ncasc in 0 gpdk090_nmos1v L=1.5e-6 W=10e-6 AD=3e-12 AS=3e-12 PD=10.6e-6 PS=10.6e-6 M=1
    m4 out pcasc net23 vdd! gpdk090_pmos1v L=820e-9 W=24e-6 AD=7.2e-12 AS=7.2e-12 PD=24.6e-6 PS=24.6e-6 M=1
    m3 nbias pcasc net041 vdd! gpdk090_pmos1v L=820e-9 W=24e-6 AD=7.2e-12 AS=7.2e-12 PD=24.6e-6 PS=24.6e-6 M=1
    m2 net23 pbias vdd! vdd! gpdk090_pmos1v L=1e-6 W=24e-6 AD=7.2e-12 AS=7.2e-12 PD=24.6e-6 PS=24.6e-6 M=1
    m1 net041 pbias vdd! vdd! gpdk090_pmos1v L=1e-6 W=24e-6 AD=7.2e-12 AS=7.2e-12 PD=24.6e-6 PS=24.6e-6 M=1
    .ends ampn
    ** End of subcircuit definition.
    
    ** Library name: gpdk090
    ** Cell name: ressppoly
    ** View name: schematic
    .subckt ressppoly_pcell_0 b minus plus
    r8 n8 minus b gpdk090_ressppoly segr L=segl W=segw
    r7 n7 n8 b gpdk090_ressppoly segr L=segl W=segw
    r6 n6 n7 b gpdk090_ressppoly segr L=segl W=segw
    r5 n5 n6 b gpdk090_ressppoly segr L=segl W=segw
    r4 n4 n5 b gpdk090_ressppoly segr L=segl W=segw
    r3 n3 n4 b gpdk090_ressppoly segr L=segl W=segw
    r2 n2 n3 b gpdk090_ressppoly segr L=segl W=segw
    r1 n1 n2 b gpdk090_ressppoly segr L=segl W=segw
    r0 plus n1 b gpdk090_ressppoly segr L=segl W=segw
    .ends ressppoly_pcell_0
    ** End of subcircuit definition.
    
    ** Library name: opamp090
    ** Cell name: full_diff_opamp
    ** View name: schematic
    .subckt full_diff_opamp nvcm ibias inn inp outn outp
    m4a net_76 pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=4.29846e-12 AS=4.29846e-12 PD=2.29231e-6 PS=2.29231e-6 M=13
    m5a outp net_1 net_76 vdd! gpdk090_pmos1v L=1.42e-6 W=25.4e-6 AD=4.24329e-12 AS=4.24329e-12 PD=1.82824e-6 PS=1.82824e-6 M=17
    m6a net_64 pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=4.064e-12 AS=4.445e-12 PD=320e-9 PS=3.525e-6 M=16
    m6b net_64 pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=4.064e-12 AS=4.445e-12 PD=320e-9 PS=3.525e-6 M=16
    m1a net_17 inn net_64 vdd! gpdk090_pmos1v L=320e-9 W=29e-6 AD=4.64e-12 AS=8.12e-12 PD=320e-9 PS=29.56e-6 M=2
    m1b net_57 inp net_64 vdd! gpdk090_pmos1v L=320e-9 W=29e-6 AD=4.64e-12 AS=8.12e-12 PD=320e-9 PS=29.56e-6 M=2
    m4b net_41 pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=4.29846e-12 AS=4.29846e-12 PD=2.29231e-6 PS=2.29231e-6 M=13
    m5b outn net_4 net_41 vdd! gpdk090_pmos1v L=1.42e-6 W=25.4e-6 AD=4.24329e-12 AS=4.24329e-12 PD=1.82824e-6 PS=1.82824e-6 M=17
    m8a cmfb_control net_0149 net_0208 vdd! gpdk090_pmos1v L=460e-9 W=13.4e-6 AD=2.68e-12 AS=2.68e-12 PD=4.86667e-6 PS=4.86667e-6 M=3
    m10b net_0208 pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=4.064e-12 AS=5.588e-12 PD=320e-9 PS=13.14e-6 M=4
    m8b net_0139 net_200 net_0208 vdd! gpdk090_pmos1v L=460e-9 W=13.4e-6 AD=2.68e-12 AS=2.68e-12 PD=4.86667e-6 PS=4.86667e-6 M=3
    m10a net_0208 pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=4.064e-12 AS=5.588e-12 PD=320e-9 PS=13.14e-6 M=4
    m24 pcasc pcasc vdd! vdd! gpdk090_pmos1v L=360e-9 W=7.2e-6 AD=2.016e-12 AS=2.016e-12 PD=14.96e-6 PS=14.96e-6 M=1
    m21 pbias pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=7.112e-12 AS=7.112e-12 PD=25.96e-6 PS=25.96e-6 M=1
    m22 nbias pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=7.112e-12 AS=7.112e-12 PD=25.96e-6 PS=25.96e-6 M=1
    m23 ncasc pbias vdd! vdd! gpdk090_pmos1v L=920e-9 W=25.4e-6 AD=7.112e-12 AS=7.112e-12 PD=25.96e-6 PS=25.96e-6 M=1
    xi4 net_41 nbias ncasc net_4 pbias pcasc ampp
    xi3 net_76 nbias ncasc net_1 pbias pcasc ampp
    xi2 net_57 nbias ncasc net_3 pbias pcasc ampn
    xi1 net_17 nbias ncasc net_2 pbias pcasc ampn
    c1a net_0133 net_200 gpdk090_mimcap area=27.9e-12 perim=21.3e-6 m=2
    c1b net_200 net_0116 gpdk090_mimcap area=27.9e-12 perim=21.3e-6 m=2
    c2a outp net_17 gpdk090_mimcap area=47.268e-12 perim=27.53e-6 m=6
    c2b outn net_57 gpdk090_mimcap area=47.268e-12 perim=27.53e-6 m=6
    xr1b 0 net_0116 net_200 ressppoly_pcell_0 segr=116.667 segl=22.765e-6 segw=2e-6
    xr1a 0 net_200 net_0133 ressppoly_pcell_0 segr=116.667 segl=22.765e-6 segw=2e-6
    m3a outp net_2 net_17 0 gpdk090_nmos1v L=1.34e-6 W=8.6e-6 AD=1.43671e-12 AS=1.43671e-12 PD=9.44e-6 PS=9.44e-6 M=68
    m2a net_17 nbias 0 0 gpdk090_nmos1v L=1e-6 W=8.6e-6 AD=1.376e-12 AS=1.4792e-12 PD=8.92e-6 PS=9.804e-6 M=20
    m7a net_17 cmfb_control 0 0 gpdk090_nmos1v L=6.8e-6 W=12e-6 AD=1.92e-12 AS=2.208e-12 PD=320e-9 PS=2.768e-6 M=40
    m3b outn net_3 net_57 0 gpdk090_nmos1v L=1.34e-6 W=8.6e-6 AD=1.43671e-12 AS=1.43671e-12 PD=9.44e-6 PS=9.44e-6 M=68
    m2b net_57 nbias 0 0 gpdk090_nmos1v L=1e-6 W=8.6e-6 AD=1.376e-12 AS=1.4792e-12 PD=8.92e-6 PS=9.804e-6 M=20
    m7b net_57 cmfb_control 0 0 gpdk090_nmos1v L=6.8e-6 W=12e-6 AD=1.92e-12 AS=2.208e-12 PD=320e-9 PS=2.768e-6 M=40
    m29 ncasc ncasc 0 0 gpdk090_nmos1v L=420e-9 W=3.3e-6 AD=924e-15 AS=924e-15 PD=3.86e-6 PS=3.86e-6 M=1
    m11b vdd! outn net_0116 0 gpdk090_nmos1v L=440e-9 W=21.8e-6 AD=3.488e-12 AS=6.104e-12 PD=22.12e-6 PS=44.16e-6 M=2
    m13a net_0133 nbias 0 0 gpdk090_nmos1v L=1e-6 W=8.6e-6 AD=1.376e-12 AS=2.408e-12 PD=8.92e-6 PS=17.76e-6 M=2
    m26 net131 nbias 0 0 gpdk090_nmos1v L=1e-6 W=8.6e-6 AD=2.408e-12 AS=2.408e-12 PD=17.76e-6 PS=17.76e-6 M=1
    m11a vdd! outp net_0133 0 gpdk090_nmos1v L=440e-9 W=21.8e-6 AD=3.488e-12 AS=6.104e-12 PD=22.12e-6 PS=44.16e-6 M=2
    m25 nbias ncasc net131 0 gpdk090_nmos1v L=420e-9 W=8.6e-6 AD=2.408e-12 AS=2.408e-12 PD=17.76e-6 PS=17.76e-6 M=1
    m7c cmfb_control cmfb_control 0 0 gpdk090_nmos1v L=6.8e-6 W=12e-6 AD=2.208e-12 AS=2.208e-12 PD=2.768e-6 PS=2.768e-6 M=10
    m7d net_0139 net_0139 0 0 gpdk090_nmos1v L=6.8e-6 W=12e-6 AD=2.208e-12 AS=2.208e-12 PD=2.768e-6 PS=2.768e-6 M=10
    m27 pcasc ncasc net135 0 gpdk090_nmos1v L=420e-9 W=8.6e-6 AD=2.408e-12 AS=2.408e-12 PD=17.76e-6 PS=17.76e-6 M=1
    m13b net_0116 nbias 0 0 gpdk090_nmos1v L=1e-6 W=8.6e-6 AD=1.376e-12 AS=2.408e-12 PD=8.92e-6 PS=17.76e-6 M=2
    m28 net135 nbias 0 0 gpdk090_nmos1v L=1e-6 W=8.6e-6 AD=2.408e-12 AS=2.408e-12 PD=17.76e-6 PS=17.76e-6 M=1
    m13c net_0149 nbias 0 0 gpdk090_nmos1v L=1e-6 W=8.6e-6 AD=1.376e-12 AS=2.408e-12 PD=8.92e-6 PS=17.76e-6 M=4
    m11c vdd! nvcm net_0149 0 gpdk090_nmos1v L=440e-9 W=21.8e-6 AD=3.488e-12 AS=6.104e-12 PD=22.12e-6 PS=44.16e-6 M=4
    m31 ibias ibias 0 0 gpdk090_nmos1v L=300e-9 W=5.5e-6 AD=1.54e-12 AS=1.54e-12 PD=11.56e-6 PS=11.56e-6 M=1
    m30 pbias ibias 0 0 gpdk090_nmos1v L=300e-9 W=5.5e-6 AD=1.54e-12 AS=1.54e-12 PD=11.56e-6 PS=11.56e-6 M=1
    .ends full_diff_opamp
    ** End of subcircuit definition.
    .END
    • 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