• 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 26244
  • 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
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to abdurrahman0234

    It's still rather unclear. Please show a plot of what the bus looks like when you plot it in ViVA. I assume you're running a simulation with the simulator being "ams"?

    Regards,

    Andrew

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

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

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

    it is my 3 bit output. I convert it to signed decimal.I will check them and look them of psd in a single psd

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

    OK, so the bus output are analog, not digital - the y-axis is in volts. So the approach you need to take is exactly as I described before - use Measurements->Analog to Digital to convert the analog bits into a digital bus (with your chosen radix). Then you probably want to convert that back into a voltage so that you can perform a PSD on it.

    Here's an example of an A2D converter output which has been driven with a sine wave input.

    I took the 8 digital bus signals shown at the top, and converted them to a bus using the form like this:

    This gave the bus in the middle (below it is the expansion into the individual logic bits). If you zoom in, you'll see the numbers on the bus (note I picked. Unsigned Decimal because that's what my ADC would have produced, but the Radix can be signed Decimal too).

    The bottom curve (in both plots) was the result of selecting "mybus" and using Measurements->Digital to Analog and converting it back into an analog waveform. That means you've now got an analog-like signal from your original digital bus (which was in volts rather than logic) and you can then do whatever signal processing you like on that.

    Regards,

    Andrew.

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

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

    Sır, why I get 0. U want to say that digital output is not ideal u should convert to bits?

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

    Well, with a centre value of 4, 800mV is always below 4, and so it's always zero. You probably want to enter a centre value of 400m or 0.4.

    Andrew

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

    In addition to this, we can create bus from the trace. But ı can not any signal in these section although selecting my signals before click trace-create-bus. It is since analog bits?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to abdurrahman0234
    abdurrahman0234 said:
    In addition to this, we can create bus from the trace. But ı can not any signal in these section although selecting my signals before click trace-create-bus. It is since analog bits?

    I have no idea what you mean by this question.

    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