Home > Community > Forums > Custom IC Design > save all device data in dc sweep

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: *

 save all device data in dc sweep 

Last post Tue, Nov 27 2012 4:31 AM by Andrew Beckett. 4 replies.
Started by Josef 26 Nov 2012 06:04 AM. Topic has 4 replies.
Page 1 of 1 (5 items)
Sort Posts:
  • Mon, Nov 26 2012 6:04 AM

    • Josef
    • Not Ranked
    • Joined on Thu, Apr 26 2012
    • Posts 5
    • Points 85
    save all device data in dc sweep Reply

     Hi *,

    i'd like to perform a dc sweep and with the opend results I need to access the device data directly, e.g. by typing something like vgs("M1") without using the netname connected to the gate and source port of the M1 device.  

     I should be a kind of save opPoint value but not a scalar but a vector.

     searched for a while in this forum but didn't get a proper answer, yet.

     thanks in advance

    josef

     

     

     

    Filed under:
    • Post Points: 20
  • Mon, Nov 26 2012 11:13 PM

    Re: save all device data in dc sweep Reply

     Hi Josef,

     Here we go:

     

    Create one additional file to include with your simulations and fill it with some lines like

     

    save DUT.MP0:oppoint

    save DUT.Q0:oppoint

     

    and so on ... of course you have to adjust the hierarchy information andthe devicenames

     

    If you enter "spectre -h save" you will get some extra info on whats possible with

    wildcards, filtering options and so on. However this scheme does not work for every PDK.

    I just had one case where the probing was broken :( I'm waiting for an updated PDK right now ...

     

    Best Regards

     

    Andi

     

    • Post Points: 20
  • Tue, Nov 27 2012 12:07 AM

    • Josef
    • Not Ranked
    • Joined on Thu, Apr 26 2012
    • Posts 5
    • Points 85
    Re: save all device data in dc sweep Reply

    Hi Andi,

     thanx a lot! It works.

    There is one final thing: do you know a possibility to enter these additional lines directly into an OCEAN script without using the additional include file?

    Br josef 

     

    • Post Points: 20
  • Tue, Nov 27 2012 12:35 AM

    Re: save all device data in dc sweep Reply

    Hi Josef,

    Sorry, I can't help you out at the OCEAN front as I don't use OCEAN that much.

    I just know that you can include the additional file by adding

    stimulusFile( ?xlate nil "path to new include file") to your existing ocean scripts

     

    Maybe some other guys can help out here

     

    Best Regards

     

    Andi

     

    • Post Points: 20
  • Tue, Nov 27 2012 4:31 AM

    Re: save all device data in dc sweep Reply

    Josef, 

    Andi is right. You have to do this by including a file with spectre syntax (which could use wildcards), and doing that via a stimulusFile or even a modelFile call in OCEAN.

    You could always wrap this up in a function which wrote it out to a temporary file, and then set the stimulusFile to it? Something like:

    procedure(MySaveOppoint(device)
      let((tmpFile port)
        tmpFile=makeTempFileName("/tmp/saveOppoint")
        port=outfile(tmpFile)
        fprintf(port "save %s:oppoint\n" device)
        close(port)
        stimulusFile(?xlate nil tmpFile)
        tmpFile
      )
    )

    Then you could do:

    file=MySaveOppoint("M1")
    run()
    deleteFile(file)

    Note - none of the above has been tested - it's just an idea.

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by Josef at 26 Nov 2012 06:04 AM. Topic has 4 replies.