• 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. analog digital output average mean value

Stats

  • Locked Locked
  • Replies 21
  • Subscribers 125
  • Views 17909
  • 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

analog digital output average mean value

abdurrahman0234
abdurrahman0234 over 3 years ago

Hello,

I have 4 bit analog digital output. By averaging output, I can not precise result because tools take analog signal. and since analog signal have changes since temperature and little edge distortions, tool dont give me precise average mean value. I want to take precise average value without using verilogA model. How can I achieve this? 

   

  • Cancel
  • abdurrahman0234
    abdurrahman0234 over 3 years ago

    helllo,

    Hello,

    I have 4 bit analog digital output. By averaging output, I can not precise result because tools take analog signal. and since analog signal have changes since temperature and little edge distortions, tool dont give me precise average mean value. I want to take precise average value without using verilogA model. How can I achieve this?

     

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

    sorry, I attached right figure as seeen in the below

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

    I combined your duplicate posts.

    You'd need to use the sample() function in the calculator to sample at the points where it is flat, and then use the average function with the fairly new continuous option set to "no". This was added in IC6.1.8/ICADVM20.1 ISR19 and means that the average is computed by summing the y values at all points (this is why you want to sample it first) and dividing by the number of points. The default (continuous=yes, which was the old behaviour) works by integrating the area under the curve (including the transitions) and dividing by the x-range - so that's going to be slightly different.

    Andrew

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

    Thank you andrew.

    How Can I set the new cont. option set??Also, I can get  digital decimal values as seen in the figure for average? I think that signed decimals bits which I converted, cadence tool get  as a analog signal?Is it right? 

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

    How Can I set the new cont. option set?

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

    Your last two questions are slightly garbled so I'm not entirely sure what you mean. If you have a waveform such as the red-pink signal you showed in a graph before, that is suitable for feeding to the average function, although as I said you'd probably want to sample it first to ensure you only have one point per period, and then use average with ?continuous "no" - which can be chosen from the calculator (assuming you're using a recent enough version):

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 3 years ago in reply to Andrew Beckett

    Dear abdurrahman0234,

    I was about to respond to "attempt" to save Andrew some time, when as usual, Andrew responded sooner than I could! To expand on his response, Figures1 and 2 show the Calculator expressions that are invoked when the ?continuous argument is set to "no" and "yes" respectively. This is further detailed in the Help GUI for the average function. From the Help GUI, the definitions for the two ?continuous argument is shown in Figure 3.

    Shawn

    Figure 1

    Figure 2

    Figure 3

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

    I experienced this, tool can not be y axis values precisely, especially at the edges. Have a another way to get average for 4 bit analog output?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to abdurrahman0234
    abdurrahman0234 said:
    I experienced this, tool can not be y axis values precisely, especially at the edges. Have a another way to get average for 4 bit analog output?

    I have no idea what you're saying here. We've given you a way of getting the average, but I don't know what you mean by "tool can not be y axis value precisely" (I recognise that English is not your first language, but this statement doesn't mean anything). What is wrong with the method we have suggested?

    Andrew

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

    I apologize Andrew,

    for example digital analog value '840 mv' for  +1 bit, cadence takes it as a 838 mV so average value is calculated wrongly. (Average is fluctuated) 

    • 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