• 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. Mixed-Signal Design
  3. Cross function

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 64
  • Views 20426
  • 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

Cross function

Charanraj Mohan
Charanraj Mohan over 8 years ago

Hey,

I am doing a simple DC sweep & using the cross function in the calculator, i am finding the x-axis in my sweep range for a particular y-axis value. I am also aware that cross function used here gives the user the choice for rising edge or falling edge.

My queries-

1. Is it possible to implement the same using veriloga code?

2. Actually I am changing the value of gate input of the circuit & doing the sweep to find the particular Value in x-axis & calibrate something. If I change the Value of gate in 2 decimals, for example 2.57 (say), I have no problem. But when I use a 3rd integer for example   2.575 (say), the cross function gives me a wrong result. If I calibrate for 2.58, it works. But I am unable to calibrate in between 2.57 & 2.58. Seems cross function is rounding the integer. Is it possible to have facility for the user to set this limit in veriloga code??

3. When I use 10mV step in my DC sweep, i get x (say)

   When I use 5mV step , i get x/2.

   When I use 2.5mV, i get x/4. Why is this changing ? What is the default step of limit of cross function in CADENCE IC6 calculator?? If we write this code in veriloga, can we have a provision to set this too ??

Thanks in advance

  • Cancel
Parents
  • Charanraj Mohan
    Charanraj Mohan over 8 years ago
    Thanks Andrew.
    I understand, for
    1. I think no cross function in veriloga in DC sweep
    2. I am using the expression (vg -cross(VDC(“/out”) 2.4 1 “either” nil nil) to find a result. Say, i am sweeping my DC from 0 to VDD in step size of 10mV. I am converting signal /out to scalar first & then finding the x-axis (DC sweep) value exactly when my y-axis (or output) is 2.4 using cross function & then subtracting it from vg. There is no problem when vg is 2.4 or 2.45 or 2.46. I am pretty sure that the result when vg is 2.455 should be in between the results of vg=2.45 & vg=2.46. But it gives me very less results. For example, if I get in mV range for vg=2.45 & vg=2.46, i get microvolt results in vg=2.455. Then I have to tune the step size of DC sweep to make it fall in between these results.

    For example, the above expression gives me --> 2.35mV if vg=2.45 V & 2.4mV if vg=2.46 V when I sweep DC in 10mV step size, i need to tune the step size for vg=2.455 & finally, I see the result for vg=2.455 settles in between 2.35mV & 2.4mV when step size is 12.3345mV (say).

    To put it very short--> why do we need to tune the step size for cross function when the input has 3 decimals ??

    3. Seems that there is a relation between step size of DC sweep & cross function. For every half of step size the result using cross function expression also gets halved.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Charanraj Mohan
    Charanraj Mohan over 8 years ago
    Thanks Andrew.
    I understand, for
    1. I think no cross function in veriloga in DC sweep
    2. I am using the expression (vg -cross(VDC(“/out”) 2.4 1 “either” nil nil) to find a result. Say, i am sweeping my DC from 0 to VDD in step size of 10mV. I am converting signal /out to scalar first & then finding the x-axis (DC sweep) value exactly when my y-axis (or output) is 2.4 using cross function & then subtracting it from vg. There is no problem when vg is 2.4 or 2.45 or 2.46. I am pretty sure that the result when vg is 2.455 should be in between the results of vg=2.45 & vg=2.46. But it gives me very less results. For example, if I get in mV range for vg=2.45 & vg=2.46, i get microvolt results in vg=2.455. Then I have to tune the step size of DC sweep to make it fall in between these results.

    For example, the above expression gives me --> 2.35mV if vg=2.45 V & 2.4mV if vg=2.46 V when I sweep DC in 10mV step size, i need to tune the step size for vg=2.455 & finally, I see the result for vg=2.455 settles in between 2.35mV & 2.4mV when step size is 12.3345mV (say).

    To put it very short--> why do we need to tune the step size for cross function when the input has 3 decimals ??

    3. Seems that there is a relation between step size of DC sweep & cross function. For every half of step size the result using cross function expression also gets halved.
    • 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