Main Content

ade2metric

Extract metric data from Cadence simulation run

Since R2025a

Description

ade2metric(name,testName='maestroTestName') extracts the metric data from an expression in the Outputs Setup of Cadence® ADE simulation results for the test maestroTestName.

Note

The function only works in the Cadence environment or if you launch MATLAB® from Cadence.

Examples

collapse all

Launch MATLAB from Cadence.You can extract the metric data from a specific expression defined in the Cadence Outputs Setup in MATLAB.

Consider expression named delay in the Outputs Setup.

Cadence outputs setup for expression

To extract the metric data for all data points from delay, first load the results from the adeInfo object.

adeInfo.loadResult('DataPoint',-1)
ans = 

  AdeInfoManager with properties:

               adeSession: 'fnxSession0'
               adeHistory: 'Interactive.177'
          adeSkillSession: 'ade:SKILLPI_FOR_MATLAB_2039927:v1.0:virtuoso2039927:rfams-rh8-1'
                  adeTest: 'Bash_Test'
    adeCurrentResultsPath: '/local/ptiwary/Lab_DataAnalytics/simulation/Bash/Clock_Buffer/maestro/results/maestro/Interactive.177/psf/Bash_Test/psf'
           adeRDBLocation: '/local/ptiwary/Lab_DataAnalytics/Bash/Clock_Buffer/maestro/results/maestro/Interactive.177.rdb'
                   adeRDB: [1×1 cadence.DBManager]
             adeDataPoint: -1

Extract the metric data.

x = ade2metric('delay')
x =

   1.0e-08 *

    0.1674
    0.1677
    0.1676
    0.1678
    0.1717
    0.1720
    0.1717
    0.1720

To extract the metric data for a single data point 1, load the data from case 1.

adeInfo.loadResult('DataPoint',1)
ans = 

  AdeInfoManager with properties:

               adeSession: 'fnxSession0'
               adeHistory: 'Interactive.177'
          adeSkillSession: 'ade:SKILLPI_FOR_MATLAB_2039927:v1.0:virtuoso2039927:rfams-rh8-1'
                  adeTest: 'Bash_Test'
    adeCurrentResultsPath: '/local/ptiwary/Lab_DataAnalytics/simulation/Bash/Clock_Buffer/maestro/results/maestro/Interactive.177/1/Bash_Test/psf'
           adeRDBLocation: '/local/ptiwary/Lab_DataAnalytics/Bash/Clock_Buffer/maestro/results/maestro/Interactive.177.rdb'
                   adeRDB: [1×1 cadence.DBManager]
             adeDataPoint: 1

Extract the metric data for data point 1.

x = ade2metric('delay')
x =

   1.6742e-09

You can measure the speed delay product (SDP) metric for an analog circuit in the Cadence® environment using a MATLAB® expression. To calculate SDP, multiply the slew rate of the waveform signal with the delay. For example, you can find the speed delay product of the /o1 signal using the MATLAB expression speedDelayProduct('/o1','delay'). As you can see, the expression calculates the speed delay product for all eight corners.

sdp_output_setup.png

The MATLAB expression uses a MATLAB script (speedDelayProduct.m) that calls the ade2wave and ade2metric functions to extract the Cadence simulation data. The script is attached with this example as a supporting file.

% Use ade2wave to extract the waveform data for 'netname'
[x,y]=ade2wave(netname);

% Use slewrate function from Signal Processing Toolbox 
slewRate=abs(mean(slewrate(y,x)));

% Use ade2metric to extract the metric data from Cadence simulation
delay=ade2metric(metric);

% Evaluate speed delay product
sdp=slewRate*delay;

Once you run the simulation, you can see the SDP for all eight corners.

sdp_result.png

You can calculate the mean of delay for an analog signal /o1 in the Cadence® environment using a MATLAB® expression. As you can see, the expression calculates the mean delay after the simulation is run and has only one value.

delay_output_setup.png

The MATLAB expression uses a MATLAB script (metricAvg.m) that calls the ade2metric function to extract the Cadence simulation data. The script is attached with this example as a supporting file.

%Extract metric data from Cadence simulation
delayData=ade2metric(metric);

%Compute mean of delay
meanMetric=mean(delayData);

Once you run the simulation, the result show the mean delay as a scalar.

delay_result.png

Input Arguments

collapse all

Name of the expression used in the Outputs Setup from Cadence ADE simulation results, whose metric data you want to extract, specified as a string.

If you do not specify a name for the expression in the Outputs Setup, you can use the complete expression as defined in Details to point to the expression.

Version History

Introduced in R2025a

See Also