• 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. passing string values to TRAN as dynamic parameter

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 125
  • Views 3100
  • 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

passing string values to TRAN as dynamic parameter

MikeA
MikeA over 1 year ago

Hi,

I have seen something related in https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1O3w000009TM2nEAG&pageName=ArticleContent about Spectre accepting strings as dynamic parameters but since there an enhancement is mentioned about GUI implementation - and I'm planning on using a GUI for this - I thought I better ask directly here.

Maybe my use case is different though and there are other reasons why I'm not succeeding.

I have a verilog-A model that takes in a file to read some settings (basically, bit bus values). There is a

parameter file_name;

statement in the verilog-A code, so that file_name pops up at CDF/Properties dialog level once I instantiate the block in a schematic. In the CDF I define that field to be "parse as CEL" (and also "parse as Number" , this one is probably useless) because there are instances in which I desire to instantiate this verilog-A block as part of a larger schematic and want to be able to refer to file_name from a top level, meaning I will use "pPar("my_new_field")" inside the properties field for file_name. I have found that I *have* to declare file_name to be parsed as CEL, otherwise the string "pPar..." is taken literally and the mechanism does not work.

If, instead, I desire to use a direct file name, all I need to do is to insert it in quotes. This way, the parameter is correctly taken up as a string and everything works fine.

Now, I would like to be able to change the file I'm reading dynamically during a simulation. I would have a "backup" solution where I just define a second parameter in my verilog-A file and based on certain conditions I will just read from this second file, for instance on a clock rise or after a certain simulation time.

However, what I'm trying to accomplish now is just changing it as I would change another dynamic parameter in the TRAN simulation. I found that this does not work, gives me kinds of errors I cannot really understand so first of all I'm wondering whether such use-case is foreseen at all?

Leaving aside verilog-A model implementation and imagining some variable is stored in ADE Explorer as a string, is it possible to change it and to have it properly handled by the TRAN dynamic parameter GUI? Is there some basic limitation I should be aware of? Maybe I'm just misusing the tool?

Thanks for any hints on this,

Michele

  • 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