• 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. calculator numconv function

Stats

  • Locked Locked
  • Replies 50
  • Subscribers 143
  • Views 26298
  • 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

calculator numconv function

abdurrahman0234
abdurrahman0234 over 4 years ago

When ı plot to calculator, I get error as below. I want to convert binary signal to decimal.Please can help me. 

ERROR (VIVA-3002):expression evaluation failed: val is not legal.
ERROR (VIVA-3002):expression evaluation failed: numConv(VT("/out<0:2>") "dec" t)

  • Cancel
Parents
  • abdurrahman0234
    abdurrahman0234 over 4 years ago

    sorry, when ı send my plot to calculator

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

    I think you should use the analog to digital functions that were referenced in the other thread you posted in after this. The numConv is really for single valued text numbers and will convert them into a different number base. I don't think it's the right solution here.

    Andrew

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

    but, I get these warning all of time.When I use zero-t  or analog plot, too, ı get these warning. 

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

    Ok, Sır, I will change clk rate and I will test again. Thank u

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to abdurrahman0234
    abdurrahman0234 said:
    but, I get these warning all of time.When I use zero-t  or analog plot, too, ı get these warning

    Yes, as I said, this will not remove the warning, but it will stop it interpolating which is what the message is primarily alerting you to. In general, if the input waveform does not contain regularly spaced time points (and those time points coincide with the sample points for the PSD/FFT) then there will need to be interpolation to re-sample at the points needed for the PSD/FFT. This warning is a fairly generic warning that gets triggered when it's clear there is sampling/interpolation needed (there are conditional parts of the warning depending on what has to happen). With an analog waveform you can do things like use strobeperiod in the transient analysis to only have an output at a regular timestep which improves accuracy and removes the need to interpolate. In your case however, this wouldn't help - the irregular x points are coming from the fact that the bus only has a time point when the bus value changes, and hence the bus converted to analog is similar.

    As I said, if you've used Zero T, you can ignore the warning - you are sampling at discrete values and so it doesn't really matter that the time steps are not regular.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to abdurrahman0234
    abdurrahman0234 said:
    Ok, Sır, I will change clk rate and I will test again. Thank u

    I didn't say you needed to change the clock rate. I was merely saying that you need to ensure in the psd function or dft that the number of samples and the time interval you are running over results in a sample interval that corresponds to the same data rate as your bus is changing at. That data rate is presumably related to your clock frequency - it is unlikely to make sense to sample at some interval completely unrelated to the clock period. That's all I was saying.

    Andrew

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

     out<2> is here MSB bit?

    program  rank from msb to lsb at the top of the bit

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

    out2 is msb bit?

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

    ok. I found it

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

    I'm glad you found it. Hitting help on the form makes it pretty clear, and to be honest you could experiment in less time than it took you to post the question.

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

    Sır, my psd graph have infinity noise at the minimum level. İ can not get power spectrum density as in the like Matlab simulation. İ think that it is because of number of sample. İnput is 32 bit with 100 MHz clk frequency. But i can simulate it short time about 10u. İ don't have chance to run it long because of server. U have any idea about this problem

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

    Please don't ask this new question on the end of the old thread (the forum guidelines ask you not to do this).

    So please post a new question, with sufficient information that others can help you (I don't know where to start from your question above, since there's absolutely not enough information to understand what you're doing or what might be wrong, if anything). Perhaps somebody else will be able to figure out what you meant.

    Andrew

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

    Please don't ask this new question on the end of the old thread (the forum guidelines ask you not to do this).

    So please post a new question, with sufficient information that others can help you (I don't know where to start from your question above, since there's absolutely not enough information to understand what you're doing or what might be wrong, if anything). Perhaps somebody else will be able to figure out what you meant.

    Andrew

    • 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