• 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. How to insert file containing Design Variables in Analog...

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 126
  • Views 18389
  • 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 insert file containing Design Variables in Analog Design Enviroiment

vdavi81
vdavi81 over 13 years ago

 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!

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

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

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • vdavi81
    vdavi81 over 13 years ago

     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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • vdavi81
    vdavi81 over 13 years ago

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

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Nick Martin
    Nick Martin over 11 years ago

     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 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • eric06
    eric06 over 6 years ago in reply to Andrew Beckett

    Hi Andrew, I came across to this useful post and I've tried to use the procedure but I get the following error:

    *Error* asiSedDisgnVarList: no applicable method for the class - list

    My designVars.txt file is a simple 3 raws:

    a 1

    b 2

    c 3

    prior to issue the command I selected the ADE windows and I' am using cadence icfb 5.10. Any idea what's wrong? 

    Thanks a lot

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to eric06

    This happens if the Analog Design Environment window is not the current window. To make sure of that, first select a menu in the ADE window (e.g. Setup->Design and then cancel the form). The bar above the menus should go a dark grey/blue colour when it's current. 

    I've just tested it in IC5141 and I see the error if the schematic window is current, but if the ADE window is current then it works with no error.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • eric06
    eric06 over 6 years ago in reply to Andrew Beckett

    thanks Andrew it works like a charm! 

    • 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