Is there a way in spectre of AMS-designer to debug current flow? Currently I'm using AMS interactive with simvision to debug from the top level. If I see an unexpected current value from a top port, I would like to follow down the hierarchy to see what the major contributor up the hierarchy. Are there any ways to do this? Currently I pause the simvision, probe port flows down the hierarchy. It's a bit cumbersome and I'd like to see a way to do it more elegantly. Thanks!
I would also like to know. if this is possible with voltages, like so:
set measvoltage #$TB_NAME.Portname
then how can you access currents using a similar approach and assigning it to a variable.
adding -flow does not work in the same way it works for probe.
To the original poster's question, I don't think you can do this any way other than what you've done.
For Paul's question, you need to use the value command rather than the # shortcut. So:
set meascurrent [value -flow PLL_160MHZ_sim.I3.IEXT_25u]
The "-flow" is important here.
Thank you Andrew for the quick reponse,
I will give that a try.