analog_ant
Newbie
I am running a trimming simulation in Cadence ADE to find the optimum trim bits for my oscillator. For the simulation I am varying the 2 trim bits during transient simulation and finding the frequency of the clock for each trim bit. What I now want to do is to find the trim bit configuration which gives me the frequency closest to the desired frequency. I was planning to write an if else kind of function in ADE calculator to achieve the same. Does anyone know how I can write an expression in Cadence ADE calculator for this ?