• 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. Manipulating a single Instance Iterations in Virtuoso

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 125
  • Views 18134
  • 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

Manipulating a single Instance Iterations in Virtuoso

Battosai
Battosai over 12 years ago

 

I am trying to manipulate the parameters of a single instance of an array (I1<1024:1>). The instances contain a simple RC network and a current source modelling a rather complex circuit. All the instances are connected in series using a bus-notation. Now I need to add a unique delay to every single one of the current sources in order to simulate a propagating signal through this chain of instances.

My idea was to use a skill function to deduce the number of the instance and use it as a multiplier for a constant delay and add it as a parameter of the internal current source. This way all 1024 instances should have a unique delay that is a function of its instance number.

I am fairly new to Skill and seem to be stuck..I managed to access a single instance using ilInst~>name but this returns me the complete name i.e. I1<x>. That's about as far as I came..

Does anyone have experience with this kind of problem or any hints that might help?
  • Cancel
Parents
  • Battosai
    Battosai over 12 years ago

     I have changed my approach a bit. I added the delay parameter i neet to change to the cell using pPar("delay"). In that way the netlister adds the parameter directly to the instance call instead of only the subcircuit. In that way all i need to manipulate is the value of the parameter for every instance. Since it's the first time doing netlist manipulations and the lack of good examples i wrote a custom PrintParameter function that simply overwrites the delay parameter with a fixed value to see if it works:

    (defun MYPrintParameters (formatterId cvId)
        cellview_params = cvId->parameters
        (foreach param cellview_params           
            (if param->name == "delay" then
                param->value = "2u"
                cellview_params = nil
            );; if
        );; foreach
        amsPrintParameters(formatterId cvId)   
    );; defun
    netId = amsGetNetlister()                  
    vlog = netId->vlog
    vlog->parametersProc = `MYPrintParameters

    I have made the according changes in the CDF editor (under Simulation Information in the spectre settings under netlistProcedures i added MYPrintParameters) for the cell and saved theMYPrintParameters function in the libInit.il file in the library folder and tried to generate the netlist. Unfortunatly it returns the error:

      *Error* MYPrintParameters: too few arguments (2 expected, 1 given) - (stdobj@0x15ecc170) 

     

    Do I have to add another parameter in the CDF editor or where did I go wrong?

     

    Thanks for the help,

    Samuel

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Battosai
    Battosai over 12 years ago

     I have changed my approach a bit. I added the delay parameter i neet to change to the cell using pPar("delay"). In that way the netlister adds the parameter directly to the instance call instead of only the subcircuit. In that way all i need to manipulate is the value of the parameter for every instance. Since it's the first time doing netlist manipulations and the lack of good examples i wrote a custom PrintParameter function that simply overwrites the delay parameter with a fixed value to see if it works:

    (defun MYPrintParameters (formatterId cvId)
        cellview_params = cvId->parameters
        (foreach param cellview_params           
            (if param->name == "delay" then
                param->value = "2u"
                cellview_params = nil
            );; if
        );; foreach
        amsPrintParameters(formatterId cvId)   
    );; defun
    netId = amsGetNetlister()                  
    vlog = netId->vlog
    vlog->parametersProc = `MYPrintParameters

    I have made the according changes in the CDF editor (under Simulation Information in the spectre settings under netlistProcedures i added MYPrintParameters) for the cell and saved theMYPrintParameters function in the libInit.il file in the library folder and tried to generate the netlist. Unfortunatly it returns the error:

      *Error* MYPrintParameters: too few arguments (2 expected, 1 given) - (stdobj@0x15ecc170) 

     

    Do I have to add another parameter in the CDF editor or where did I go wrong?

     

    Thanks for the help,

    Samuel

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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