• 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. ViVA Customization using .cdsinit

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 125
  • Views 21663
  • 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

ViVA Customization using .cdsinit

hoodskier
hoodskier over 10 years ago

Hello,

I'm attempting to modify the default settings in ViVA and some lines do not work as expected.  The commands I'm adding to .cdsinit that don't work (probably user error :D) are:

; Set graph marker font and size
envSetVal("viva.pointMarker" "font" 'string "Fixed [Misc],12,-1,5,50,0,0,0,0,0")

; Set line thickness to thick
envSetVal("viva.trace" "lineThickness" 'string "thick")

; Set line type to solid
envSetVal("viva.trace" "lineStyle" 'string "solid")

I have changed the default background and foreground colors successfully but the line thickness and line style modifications don't work at all.  I still get the default thickness of fine and default style of dot every time I run a simulation.

Also, I'm not sure exactly what I should modify in the graph marker line, I'm using a vertical data marker and I want the font size of the data to be larger.

  • Cancel
  • hoodskier
    hoodskier over 10 years ago
    OK I figured out that viva.pointMarker was not for the type of marker I was using, I wanted viva.vertMarker instead. I still don't know why the line thickness and style lines don't work though.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 10 years ago

    Hi Kevin,

    > I still don't know why the line thickness and style lines don't work though.

    Have you looked at solution ID 11806952? This solution addresses the methodology to change the  default style/color/thickness of waveform/trace in Viva in IC615. The solution walk you through how to modify your techfile or display.drf file.

    In addition, if you are trying to set font related variables in your .cdsinit file, there is an API that needs to be called as I found out in a recent support issue. The syntax follows:

    ; Added from Wayne Ingram's note on 7/24/2013
    ;
    ; If customer is setting font related cdsenv variables in .cdsinit (via envSetVal API),
    ; there's a requirement to load the 'viva' context _before_ any envSetVal call is made.
    ; This can be achieved by the following in the .cdsinit file:

    loadContext(strcat(prependInstallPath("etc/context/") "viva.cxt"))
    callInitProc("viva")

    ; Now you can set font related variables...

    envSetVal("viva.graph" "titleFont" 'string "Clean,12,-1,5,55,0,0,0,0,0")
    envSetVal("viva.axis" "font" 'string "Clean,12,-1,5,50,0,0,0,0,0")

    Hope this helps Kevin!

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • hoodskier
    hoodskier over 10 years ago
    Thanks for the reply Shawn, I did read this article as well as a few others before posting and I have the loadContext and callInitProc lines included in my cdsinit file but it's still not working. I copy and pasted the text from my web browser along with the other commands so I'm pretty confused as to why I'm not getting the expected result.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 10 years ago

    Hi Kevin (again),

    I noticed that the later suggestion is now covered as Solution ID 20138670.

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 10 years ago

    Hi Kevin,

    One other point...I also found that some environmental variable settings are not implemented yet depending on the version of Cadence you are using. Those that were not implemented were commented out in the sample .cdsenv file found in the respective install directory. As an example of its location for one version of the Cadence tools, the sample .cdsenv file is at:

    /tools/cds-6.1.6.7/tools.lnx86/dfII/samples/viva (./tools.lnx86/dfII/samples/viva/.cdsenv)

     

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • hoodskier
    hoodskier over 10 years ago
    Sorry but I can't figure out how to search the forum by Solution ID, when I enter the number in search it just shows this thread.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Kevin,

    When plotting signals from ADE, the lineThickness and style aren't used - this is because you want the colours and line styles to match how the net is probed on the schematic, so instead the layers y0-y9 are used and you have to control their appearance using the display.drf . This is in the first solution that Shawn mentioned:

    For things that aren't signals (i.e. expressions from the calculator, or plots via the results browser) it should use the cdsenv settings.
    Regards,
    Andrew.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Danielrayray
    Danielrayray over 4 years ago in reply to Andrew Beckett

    Hi Andrew,

    I have run into the same problem that I want to use the solid and thick line to display in result browser.

    But, I try to add

    envSetVal("viva.trace" "lineThickness" 'string "thick") and envSetVal("viva.trace" "lineStyle" 'string "solid") in .cdsinit, but it fails

    and I also try to

    modify the y0-y9 in CIW -> Display Resource Manager, it also fails.

    Please tell me how can I do it in .cdsenv.

    Thanks in advance

    Sincerely

    Daniel

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Danielrayray
    Danielrayray over 4 years ago in reply to Danielrayray

    Hi Andrew,

    I find that while I set the outputs and that the results automatically plotted after simulation.

    And the setting I do in the .cdsinit works though.

    Could you please tell me what is the difference between these two operation?

    How can I change the setting as for the "Direct plot" do as similar to "automatic plot" do?

    Appreciate

    Daniel

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to Danielrayray

    Daniel.

    Signals are plotted using the line style for y0-y9 drawing. You've modified the flight purpose which is not the right purpose (unless in that technology they use the same packet for both, but it seems unlikely if it hasn't changed).

    The cdsenv settings in the .cdsinit are affecting any expressions plotted. The idea (I may have said this above, I didn't check) is that signals use a layer-purpose so that the schematic can be probed in the same colour/line style as the waveform. For an expression output there's no schematic correspondence, so that doesn't need to try to match it up to the schematic and hence it will use the viva environment variables to determine the line style.

    Regards,

    Andrew.

    • 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