Home > Community > Forums > Hardware/Software Co-Development, Verification and Integration > Generate spectre netlist from command line/script

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Generate spectre netlist from command line/script 

Last post Sat, Nov 23 2013 1:23 PM by crazysarik. 7 replies.
Started by coco009 02 Oct 2008 08:40 AM. Topic has 7 replies and 15230 views
Page 1 of 1 (8 items)
Sort Posts:
  • Thu, Oct 2 2008 8:40 AM

    • coco009
    • Top 500 Contributor
    • Joined on Thu, Oct 2 2008
    • Posts 17
    • Points 250
    Generate spectre netlist from command line/script Reply
    Hi, I would like to find a method of generating spectre netlists using a script, preferably an Ocean script. At present, I have a pile of schematics, which do not have netlists. I can create netlists by running up the ADE GUI (which automatically creates a netlist), but ideally I want to avoid running up ADE at all and do all my work from the command line, i.e. within Ocean Does anybody know if this is possible and if so, how? Thanks very much in advance! Regards coco009
    • Post Points: 5
  • Thu, Oct 2 2008 8:50 AM

    • coco009
    • Top 500 Contributor
    • Joined on Thu, Oct 2 2008
    • Posts 17
    • Points 250
    Generate spectre netlist from command line/script - formatted Reply
    (Sorry, just re-posting as I appeared to lose all "\n" s) 
    Hi,
    I would like to find a method of generating spectre netlists using a script, preferably an Ocean script.
    At present, I have a pile of schematics, which do not have netlists. I can create netlists by running up the ADE GUI (which automatically creates a netlist on startup), but ideally I want to avoid running up ADE at all and do all my work from the command line, i.e. within Ocean
    Does anybody know if this is possible and if so, how?
    Thanks very much in advance!
    Regards coco009
    • Post Points: 35
  • Thu, Oct 2 2008 9:01 AM

    • aplumb
    • Top 75 Contributor
    • Joined on Thu, Jul 17 2008
    • Ottawa, Ontario
    • Posts 80
    • Points 1,230
    Re: Generate spectre netlist from command line/script - formatted Reply

     You'll probably have better luck getting this answered in the 'Custom IC' section of the forums, but the quick answer is to use the 'design( lib cell view )' form of the command in OCEAN.

     See OCEAN Reference.

     Andrew.

    • Post Points: 20
  • Thu, Oct 2 2008 9:32 AM

    • coco009
    • Top 500 Contributor
    • Joined on Thu, Oct 2 2008
    • Posts 17
    • Points 250
    Re: Generate spectre netlist from command line/script - formatted Reply

    Hi Andrew,

     

    Thanks for your prompt reply. I did have a try using the design() command, e.g, design( "myLib" "mydesign" "schematic" ), but I kept getting an error stating that "currently you cannot specificy a lib-cell-view with the design() command in ocean". This obviously contradicts the information provided in the Ocean reference document. This is exactly what I would like to be able to do though, just define the cell in the library rather than the netlist itself.

     

    If you have any further thoughts, I would be very grateful. In the meantime, I will re-post this question in the Custom IC section as you suggest.

     

    Thanks again!

     

    coco009

    • Post Points: 20
  • Tue, Jul 17 2012 7:07 AM

    Re: Generate spectre netlist from command line/script - formatted Reply

    I'm guessing you've already solved your issue by now. For anyone else looking through these threads and are hung up on this issue maybe this can shed some light on the subject.

    make a simple script to run the non graphical icfb then give it lines of commands followed by "exit" and it will spit out a spectre netlist ".scs" file.

     icfb -nograph < filewithcommands

     

     heres what the "filewithcommands" looks like inside:

     

    simulator( 'spectre )

    design( "libname" "cellname" "viewname")

    createNetlist( ?recreateAll t)

    exit

    • Post Points: 5
  • Sun, Jul 22 2012 7:18 AM

    • sparesAir
    • Not Ranked
    • Joined on Sun, Jul 22 2012
    • <?xml version="1.0" encoding="utf-16"?><string>MUang, Tunisia</string>
    • Posts 1
    • Points 20
    Re: Generate spectre netlist from command line/script - formatted Reply
    I had no idea i want your idea. thank you
    • Post Points: 20
  • Thu, Jan 17 2013 10:47 PM

    • parvmanish
    • Not Ranked
    • Joined on Thu, Jan 17 2013
    • <?xml version="1.0" encoding="utf-16"?><string>FARIDABAD, Haryana</string>
    • Posts 1
    • Points 20
    Re: Generate spectre netlist from command line/script - formatted Reply
    here is my guess:

    modelPath = "/home/models.scs"
    modelPath_list = list( modelPath "nom")

    ; Start of an Analog Design Environment session
    sessionId = sevStartSession( ?lib libName ?cell cellName ?view viewName)

    ; Get databaseIDs
    o_sessionId = sevEnvironment( sessionId )
    o_formatterId = asiCreateFormatter( o_sessionId )
    o_netlisterId = nlGetNetlister( o_formatterId )
    netlistPath = nlGetNetlistDir( o_netlisterId )

    println( netlistPath )

    asiNetlist( o_sessionId )
    nlNetlist( o_netlisterId )

    ; Creation of input.scs
    simulator( 'spectre )
    design( strcat( netlistPath "/netlist" ) )
    modelFile( modelPath_list )
    saveOption()
    save( 'alli )
    saveOption( 'subcktprobelvl 6 'save "all" 'currents "all" )
    option( 'maxwarns 500 )
    saveOption()
    analysis( 'tran ?start 0 ?stop 40n )
    input_scsPath = createNetlist()

    printf("\n input.scs createed \n")
    printf("\n input_scsPath : %s \n" input_scsPath)

    greetins,
    http://healthbenefitsoff.com
    http://www.iphonekart.com
    • Post Points: 20
  • Sat, Nov 23 2013 1:23 PM

    • crazysarik
    • Not Ranked
    • Joined on Fri, Mar 29 2013
    • Posts 2
    • Points 10
    Re: Generate spectre netlist from command line/script - formatted Reply

     Hi,

    I have a similar issue. I have an extracted .dspf file how can I simulate it from command line?

    If I have netlist of a circuit, is there any way I can generate/attach a cell symbol for this netlist?

     Thanks

    Sarik 

    • Post Points: 5
Page 1 of 1 (8 items)
Sort Posts:
Started by coco009 at 02 Oct 2008 08:40 AM. Topic has 7 replies.