Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: VerilogA model Monte Carlo Simulation - Histogram Curve

$
0
0
Vijay, I first misread what you wanted and so did some screengrabs on how to plot a histogram of the statistical parameters monteres . So I'll show that in case it's useful, then explain how to get a histogram of r_effective . Histogram of monteres So, first of all you need to save the mismatch parameters (since you're doing a mismatch simulation). Click the "gear" icon next to the Monte Carlo sampling mode (i.e. where you set the number of samples) and turn on saving of mismatch parameters: Then run the simulation. After running the simulation, you can use the histogram icon in the results pane: Then on the resulting form, pick statistical parameters and choose the instance and parameter: Histogram of r_effective This is probably simpler. Any real variable you have in your VerilogA model gets saved as an operating point parameter. However, in your model you had r_effective defined as a localparam : localparam real r_effective = r + monteres; // nominal resistance plus So, I suggest removing the word localparam (it's not really needed): real r_effective = r + monteres; // nominal resistance plus For convenience to set up the outputs, try running a single run sweeps and corners - and then you can use the calculator and pick the OP button to click on the resistor instance, and choose "r_effective" from the list of available parameters. You can add this as an output expression: OP("/I0" "r_effective") Where /I0 is the instance name of the component in question. Then you'll get a histogram plotted just as you do with your VDC expression. Hope that helps! Regards, Andrew.

Viewing all articles
Browse latest Browse all 33813

Trending Articles