• 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. Custom IC Design
  3. Question on Matlab-Maestro integration

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 125
  • Views 7089
  • 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

Question on Matlab-Maestro integration

YutaoLiu
YutaoLiu over 2 years ago

Hi all,

My Custom IC design Environment version is Version ICADVM20.1-64b.500.25, and my Matlab version is R2020a.

I am doing a transient simulation for a switching Track and hold switch and measuring its output amplitude through DFT on its transient output, and I swept the input frequency to get the amplitude-frequency plot.

I defined a function in Matlab to collect the amplitude result for each sweep point and interpolate the 3dB bandwidth.

Below is my Matlab script and how I use the function in Maestro.

function result = bw(gain_swo_diff,N)
adeInfo.loadResult();
rdb =adeInfo.adeRDB;
import cadence.Query.*
signal_db = rdb.where(Output()== gain_swo_diff).query().Result;
F3rd =rdb.where(Output()=='F3rd').query().Result;
Fin = F3rd/3;
dc_signal_db = signal_db(1);
signal_db_norm = signal_db - dc_signal_db;
result = interp1(signal_db_norm,Fin,-N, 'makima');
end

The function failed with following error message:

WARNING (ASSEMBLER-4041): Failed to evaluate the MATLAB expression ‘matEval("bw('gain_swo_diff',3)" "bw_3dB_gain_swo_diff" "dc_ac_tran" "maa")’ because of the following error:
MATLAB:undefinedVarOrClass::Unable to resolve the name rdb.where.
Error in <a href="matlab:matlab.internal.language.introspective.errorDocCallback('bw', '/nfs/site/disks/ad_wa_yutaoliu02/serdes/soswa/bw.m', 3)" style="font-weight:bold">bw</a> (<a href="matlab: opentoline('/nfs/site/disks/ad_wa_yutaoliu02/serdes/soswa/bw.m',3,0)">line 3</a>)
signal_db = rdb.where(Output()== gain_swo_diff).query().Result;
Resolve the error and re-evaluate the results.

It seems that there is something wrong with my definition of result database. However, I tested the script  (content in the function) and was able to get the expected result in Matlab.

Could you give me some suggestion how to debug this issue?

Regards,

Yutao

  • Cancel

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