Dear Community
I want to calculate the relative output current error of a circuit due to mismatch using a Monte Carlo simulation. The value of the output current depends on a parameter Vref. Therefore, I want to use the simulated output current at nominal conditions (for each Vref value) to evaluate the error. So I want the tool to:
for each Vref value:
- Make a single run at nominal conditions and store the simulated value of the output current.
- Perform a Monte Carlo sampling and compute the relative current error using the reference value from (1) and the simulated value of the current sample.
In a Corner analysis, I can achieve the above by using the calcVal function from the calculator, i.e. I use something like
calcVal("nameOfMyOutput" "nameOfTest" ?cornerName "Nominal")
where "Nominal" is the name of my corner at nominal conditions. Then I simply define Vref as Global Variable and run the simulation. This approach works fine in Corner analyses but fails for Monte Carlo simulations. The problem is that the "Nominal" corner fails when I select Monte Carlo Sampling in ADE Assembler (because it has no MC parameters), thereby failing to provide the reference value. How can I achieve that the tool performs a single run at nominal condition first before doing a MC analysis, automatically for each Vref value?
Thank you for your response.