Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 63000

Forum Post: RE: Unwrap a waveform

$
0
0
Hi Debasish, [quote userid="358248" url="~/cadence_technology_forums/f/custom-ic-design/43835/unwrap-a-waveform/1366467"] I want to generate lower plot from the upper plot such that it removes the discontinuities and result in a continuous function.[/quote] I now understand. Thank you for clarifying your question! Hence, the function I pointed you to is not what you want. Sorry. Other than functions like "phaseDegUnwrapped()" or its radian equivalent, I am not familiar with a specific function that will accomplish exactly what you want. However, an ocean script that works something like the following might be an approach. 1. For a waveform y that is limited to some value YLIMIT and periodic with multiple values of YLIMIT, create a new waveform y_prime = y + DELTA where DELTA is some constant less than YLIMIT that causes y_prime to cross YLIMIT multiple times 2. Use the cross() function to find the crossing numbers of function y_prime of YLIMIT (use the cycle and time options of cross()). 3. For all times of the crossing points of y_prime that are returned, create your desired waveform y_desired as the sum of y and the crossing number*YLIMIT at each crossing time. 4. Plot the waveform y_desired and compare to the plot of y. I am sure this algorithm can be implemented in SKILL if you prefer. Hope this provides you some help even though it is not a defined function. Shawn

Viewing all articles
Browse latest Browse all 63000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>