• 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 18392
  • 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
Parents
  • 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
Reply
  • 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
Children
  • 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