• 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. Functional Verification
  3. fixed-point in simvision

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 64
  • Views 6599
  • 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

fixed-point in simvision

wangyunxin
wangyunxin over 1 year ago

  Delta_ V1 delta_ V2 delta_ V3 are all 20 bit signals, but in my Verilog code, they are processed as signed fixed-point numbers, with 1 sign bit, 4 integer bits, and 15 decimal bits. So he is actually a real number between -10 and+10, but simvision's radius can only be set to binary decimal, as shown in the above figure. I can only see its decimal value now. How can I set the form of its fixed-point number to facilitate my debugging? My simvision version is also in the picture

  • Cancel
  • StephenH
    StephenH over 1 year ago

    Yes this can be done in SimVision by creating an "expression" from the original signal. You can either do it manually, or load the attached Tcl widget in order to get a helper GUI.

    Also please note in regard to your follow-up posts - this forum is NOT intended for official customer support processes and there is no gaurantee that you will get an answer here. If you need timely help you should login to https://support.cadence.com/ and use the search facility in the first instance - the majority of support questions are answered that way. If you still can't find what you need, please use the support page to file a support request.

    https://community.cadence.com/cfs-file/__key/communityserver-discussions-components-files/30/fixed_5F00_point.tcl

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • wangyunxin
    wangyunxin over 1 year ago in reply to StephenH

    Hi StephenH ,after I click the website https://support.cadence.com/.It prompts me that I need to fill in the host id.And after I filled in the host id.it prompts me that University users cannot self-register. Please contact your University Program Representative or Customer Support for registration assistance. Can university users use this website?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • wangyunxin
    wangyunxin over 1 year ago in reply to StephenH

    Hi StephenH, I'm having some problems using the script you gave me. For example, I now want to convert the variable fix_target_vload4_signed into a fixed-point decimal. It is a 20-bit number. If it is an unsigned decimal number, its value is 39320, and its decimal places are from 14 bits to 0 bits, totaling 15 bits. So in fact its value is 39320/2^15 which is approximately equal to 1.2

    When I use the script you gave me, I set the MSB to 19, the LSB to 0, and the Fraction Bits to 14. The result he returned is indeed 3.9e-10, which is obviously very different from 1.2. What is the correct way to use it?
    Many thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 1 year ago in reply to wangyunxin

    Please can you email me from your university email address so that I can put you in touch with the local university programme coordinator (and get you signed up for the support site). My email is my forum name @cadence.com.

    • 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