Home > Community > Forums > Custom IC Design > How to insert file containing Design Variables in Analog Design Enviroiment

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

 How to insert file containing Design Variables in Analog Design Enviroiment  

Last post Tue, Jan 28 2014 10:47 AM by Andrew Beckett. 6 replies.
Started by vdavi81 28 Nov 2011 02:41 AM. Topic has 6 replies and 4389 views
Page 1 of 1 (7 items)
Sort Posts:
  • Mon, Nov 28 2011 2:41 AM

    • vdavi81
    • Not Ranked
    • Joined on Sun, Aug 7 2011
    • Posts 3
    • Points 45
    How to insert file containing Design Variables in Analog Design Enviroiment Reply

     Hi,

    I'm attending a stage in STMicroelettronics. I have to realize a digital filter IIR, for thr firts simulation I can't use any HDL. Then, I have to realize a filter using a LUT, when I'm using the flip flop to store my variable. I calculated the value of moltiplication with matlab script.

    I have 100 value. The question is....

    How to insert a file conteining this value from a text file? Or better, how to insert Design Variable containedin a file in Analog Design Enviroiment tool?

     Thanks!

     

    • Post Points: 20
  • Mon, Nov 28 2011 7:58 AM

    Re: How to insert file containing Design Variables in Analog Design Enviroiment Reply

    Your question is rather unclear as to what you actually want to do. Please read the Forum Guidelines.

    Andrew.

    • Post Points: 20
  • Mon, Nov 28 2011 8:59 AM

    • vdavi81
    • Not Ranked
    • Joined on Sun, Aug 7 2011
    • Posts 3
    • Points 45
    Re: How to insert file containing Design Variables in Analog Design Enviroiment Reply

     I didn't found any document in google and in this forum.

    I have 24 variable calculated with matlab.... for example Vo1, Vo1, Vo3, ...Vo24. And I have 100 ideal voltage source in cadence schematic.

    I wolud like to set the value of DC voltage for every voltage source at value Vo1...Vo24.... Then in the analog enviroiment I would like to import a text file created with Matlab. the contenent of this file is similar

    Vo1 3.3

     Vo2 0

    ..

    ..

    ..

    Vo24 3.3

    My scope is to import aDesign Variable from text file.

     Somebody Can help me.

    • Post Points: 5
  • Tue, Nov 29 2011 2:00 AM

    • vdavi81
    • Not Ranked
    • Joined on Sun, Aug 7 2011
    • Posts 3
    • Points 45
    Re: How to insert file containing Design Variables in Analog Design Enviroiment Reply

     This time the question is clear? I need help because I don't find an appropriate documentation...

    • Post Points: 20
  • Tue, Nov 29 2011 5:49 AM

    Re: How to insert file containing Design Variables in Analog Design Enviroiment Reply

    Please remember that these forums are community forums, in which volunteers (including folks from Cadence) respond in their spare time. If you needed an urgent answer, you should go to Customer Support.

    Your question was clear. The following SKILL code can be used:

     procedure(abImportDesignVars(fileName  
        @optional (session asiGetCurrentSession()) "tg")
      let((prt data designVars)
        prt=infile(fileName)
        unless(prt
          error("Cannot read design variable file %s\n" fileName)
        )
        while(gets(data prt)
          data=parseString(data)
          when(listp(data) && length(data)>=2
        designVars=tconc(designVars data)
          )
        )
        close(prt)
        asiSetDesignVarList(session car(designVars))
      )
    )

     

    This can be pasted in the CIW, or stored in a file, and then loaded using:

    load("/path/to/abImportDesignVars.il")

    Then, with the ADE session as the current window (make sure you've interacted with it somehow to make it current), use:

    abImportDesignVars("/path/to/your/designVars.txt")

    and it should then import the variables into ADE.

    Regards,

    Andrew.

    • Post Points: 20
  • Tue, Jan 28 2014 10:17 AM

    Re: How to insert file containing Design Variables in Analog Design Enviroiment Reply

     Hi Andrew,

     Can you post an example of a text file? Specifically, what would the format of the text file be for five capacitors {C1,C2,C3,C4,C5} whose value I'm importing.

     Best,

    Nick 

    • Post Points: 20
  • Tue, Jan 28 2014 10:47 AM

    Re: How to insert file containing Design Variables in Analog Design Enviroiment Reply

    Nick,

    Assuming you have design variables for those capacitors, where the variables are called C1, C2 etc, then the file would contain:

    C1 1.2p
    C2 3p
    C3 0.9p
    C4 10p
    C5 3.14p

    or whatever.

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (7 items)
Sort Posts:
Started by vdavi81 at 28 Nov 2011 02:41 AM. Topic has 6 replies.