• 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 SKILL
  3. ViVa waveform Radix control

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 16041
  • 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 waveform Radix control

DavidLou
DavidLou over 7 years ago

hello export,

we run simulation by Ocean script and picked specific signals to be plotted. what we noticed is when ViVa displays digital bus signals (e.g., by plot(getData("/cmd_ascii[31:0]") ?expr '("CMD_ASCII"))) , seems it always display Hex value until we manually pick the Radix to Decimal or Ascii, etc. is there a way for me to specify it to display in Decimal / Ascii directly instead of manual picking every time?

default display:

after manually pick the desired Radix:

thanks,

David

IC6.1.7-64b.500.9

  • Cancel
  • Dimitra Papazoglou
    Dimitra Papazoglou over 7 years ago

    Hi David,

     In your Ocean script you can use the awvCreateBus() to specify the radix of the digital waveform as below:

    For Ascii:

    plot( awvCreateBus("CMD_ASCII" list(getData("/cmd_ascii[31:0]")) "Ascii")  ?expr list("CMD_ASCII"))

     

    For Signed Decimal:

    plot( awvCreateBus("CMD_SDEC" list(getData("/cmd_ascii[31:0]")) "Signed Decimal")  ?expr list("CMD_SDEC"))

    For Unsigned Decimal:

    plot( awvCreateBus("CMD_UDEC" list(getData("/cmd_ascii[31:0]")) "Unsigned Decimal")  ?expr list("CMD_UDEC"))

    Other acceptable values for radix are: "Binary", "Octal", "Hex".

    Also, there is the following command that could be added to the .cdsinit to specify the default radix. However, I see that it works in IC616 but not in IC617. I shall file CCR...

    envSetVal("viva.digitalBusTrace" "radix" 'string "sdecimal")

    Regards,

    Dimitra

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DavidLou
    DavidLou over 7 years ago in reply to Dimitra Papazoglou

    Thanks Dimitra,

    I tried "plot( awvCreateBus("CMD_ASCII" list(getData("/cmd_ascii[31:0]")) "Ascii") " but it still displays as Hex value. is it really work at your side?

    thanks,

    David

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Dimitra Papazoglou
    Dimitra Papazoglou over 7 years ago in reply to DavidLou

    Hi David,

    Ok, I was using a different release than you where "plot( awvCreateBus("CMD_ASCII" list(getData("/cmd_ascii[31:0]")) "Ascii") " plots in Ascii. 

    I tried now with IC6.1.7-64b.500.8 - don't have IC6.1.7-64b.500.9 at my environment- and see the same results with you. 

    You can try to upgrade your release if possible. I tried for example with IC6.1.7-64b.500.12 and the latest IC6.1.7-64b.500.21 and the above plots in Ascii.

    If you insist to stay with your current version I just realized that "viva.digitalBusTrace" works as expected with IC6.1.7-64b.500.8 - I guess with yours as well. Don't see that it works with latest release though.

    So you can enable the following in the .cdsinit and then "plot(getData("/cmd_ascii[31:0]"))" will plot in Ascii by default. 

    envSetVal("viva.digitalBusTrace" "radix" 'string "ascii")

    Other values for radix can be : "binary" "octal"  "hex"  "sdecimal"  "udecimal"  

    Regards,

    Dimitra

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DavidLou
    DavidLou over 7 years ago in reply to Dimitra Papazoglou

    Thanks Dimitra,

    I'll wait until newer version becoming available then. I don't want to make Ascii as default because I do have other bus to display as hex values. 

    thanks,

    David

    • 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