• 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. sampling a digital bus

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 12682
  • 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

sampling a digital bus

maaz2020
maaz2020 over 4 years ago

Hi,

I've created a digital bus from an analog bus b<4:0> from VIVA Measurements -> Anaog to Digital menu. I would like to sample this bus at regular intervals, I've tried the sample and the value functions from calculator but none of them work

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    You seem to have removed the pictures of your expressions, but as far as I know, the value function works now (this was fixed in IC6.1.7 ISR15 from what I can tell from a quick search; it certainly worked for me in the latest IC6.1.8 hotfix version)

    I don't believe sample is supported with buses. A workaround would be to convert the bus back into a analog voltage (could be between 0 and 32) using Measurements->Digital to Analog (and choosing to convert the entire bus) and then sample that instead. This worked when I tried it.

    Andrew.

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

    Thanks for your reply, it seems to work actually (may have done something wrong along the way). I still have some weird results though:

    my analog bus is in A

    in B I have clipped it to some useful interval

    in C I have created the digital bus, from Measurements -> Digital to Analog, and also have plotted  the bus sampled at (t0 + T)  and (t1 + T), where t1 is one period after t0 and T is the period, 1ns

    in D I wanted to plot the difference of those two samples buses but I get odd results in volts (should expect the difference of the two decimals):

    this is the formula (the hidden bit is the model files definition)

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

    OK, what's happening is that if you subtract two digital buses (or two digital signals) there's an automatic conversion to analog, assuming 5V full-scale. Since this is a 5-bit bus, you'd get 5V for code 31. The difference here is 6, and so you're getting 5.0*6/31 = 0.9677419 (i.e. what you're seeing). 

    What you might want to do is rather than relying on this automatic conversion with the default values of 5V, you might instead want to use the digital to analog measurement to convert it to 31V full-scale, and then subtract those. The results will still be in volts, but at least the numbers would match the numbers on the bus.

    It would be nice of course if you could subtract one bus from another and get a bus output - but that's not available right now...

    Andrew.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • maaz2020
    maaz2020 over 4 years ago in reply to Andrew Beckett

    Yes it does make sense to convert back to analog for post-processing.

    Thank you very much for your help.

    M

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

    Yes it does make sense to convert back to analog for post-processing.

    Thank you very much for your help.

    M

    • 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