• 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. Blogs
  2. Analog/Custom Design
  3. Start Your Engines: Use Tcl to Save Signals More Efficiently…
Qingyu Lin
Qingyu Lin

Community Member

Blog Activity
Options
  • Subscribe by email
  • More
  • Cancel
CDNS - RequestDemo

Have a question? Need more information?

Contact Us
save statement
AMS
AMS Designer
AMSD
Start Your Engines
Spectre AMS Designer
Mixed-Signal
probe
xcelium

Start Your Engines: Use Tcl to Save Signals More Efficiently in AMS Simulations

12 Sep 2023 • 3 minute read

Cadence Spectre AMS Designer is a high-performance mixed-signal simulation system. The ability to use multiple engines and drive from a variety of platforms enables you to "rev up" your mixed-signal design verification and take the checkered flag in the race to the market. The Start Your Engines! blog series will provide you with tips and insights to help you tune your simulation performance and accelerate down the road to productivity.

Saving signal waveforms during a simulation is one of the basic ways to check the simulation results. However, with large SoC designs, it’s not always practical to save all signals during simulation, and the simulation performance might also be impacted by the number of signals being saved. Therefore, a crucial part of the simulation setup is to specify the expected and essential signals to save.

Here are some examples of using TCL commands to save signals more efficiently:

  • Saving a single signal

Save the voltage of net3 in the hierarchy i1.i2.
probe -create top.i1.i2.net3

Save the current through port portA in the hierarchy i1.i2.
probe -create -flow top.i1.i2.portA

  • Saving multiple signals in an instance

Save the voltages of all ports and nets in instance i2 in hierarchy i1.
probe -create -noaicms top.i1.i2

Save the currents of all ports of instance i2 in the hierarchy i1.
probe -create -noaicms -flow -ports top.i1.i2

  • Saving selected signals in an instance

Using the -depth option, save the voltages of all ports and nets in instance i1, one level down the hierarchy.
probe -create -noaicms -depth 2 top.i1

Using the -ports option, save all currents through the ports of instance i1, one level down the hierarchy.
probe -create -noaicms -depth 2 -flow -ports top.i1

  • Saving selected signals in a module with multiple instances (applicable for analog scope in Verilog-AMS format)

Using with find command, save the voltages of all ports with the suffix out in the scope i1, one level down the hierarchy.
probe -create -noaicms [find -rec 1 -scope top.i1 -ports *out]

For more advanced usage, save the voltages of all ports with the suffix out that exist in instances whose names begin with i, in the current scope, one level down the hierarchy.
set inst_scope [find -instances -rec 1 -absolute -newline i*]
foreach {inst} $inst_scope { catch {probe -create -noaicms [find -scope $inst -ports *out]}}

As shown in the later examples, by combining probe and find commands, you will be able to precisely select the signals you need to save so that there is no redundant data in your waveform database and minimal impact on simulation performance.

Related Resources

Product
Manuals

Xcelium Simulator Tcl Command Reference

Spectre AMS Designer and Xcelium Mixed-Signal User Guide

Troubleshooting
Information

Spectre AMS Designer

For more information on Cadence circuit design products and services, visit www.cadence.com. 

About Start Your Engines

The Start Your Engines series brings you blog posts from several analog/mixed-signal subject matter experts on a variety of topics, such as introduction to the new features in AMS Designer, tips for enhanced working with existing features, and much more. To receive notifications about new blogs in this series, click Subscribe and submit your email ID in the Subscriptions box.


CDNS - RequestDemo

Try Cadence Software for your next design!

Free Trials

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information