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

Probe net across schematic hierarchy through vsource

$
0
0
Hi I generally have lot of current probes in schematics using 0V Voltage sources. I add a net probe with geAddNetProbe() and I would like to continue the probe(on the otherside of the 0V sources) passing through the voltage sources. I have written a following script which does the job partially. The following script looks for the currently probed net, runs across all the instances connected to the net. If there is a 0V vsource, I add another probe(with same color) on the other side of the 0V vsource. wId = hiGetCurrentWindow() pList = car(geGetAllProbe(wId)) pC = pList~>probeColor pNvdc = setof(x pList~>objectId~>instTerms~>inst x~>cellName == "vsource") foreach(p0vdc pNvdc figs=p0vdc~>conns~>net~>figs xy1=car(nth(0 nth(0 figs))~>points) xy2=car(nth(0 nth(1 figs))~>points) geAddNetProbe(wId pC xy1) geAddNetProbe(wId pC xy2) ) This works great at a particular schematic hierarchy. But doesn't work across hierarchies. For e.g. consider few lines of a netlist I 0 ( net1 netA) vsource type=dc dc=0 I1 ( net2 netB) vsource type=dc dc=0 I2 ( net3 netC) vsource type=dc dc=0 IX ( netA netB netC) myInst subckt myInst (netA netB netC) IY ( netA netA1) vsource type=dc dc=0 IZ ( netB netB1) vsource type=dc dc=0 . . . ends myInst If net1 is probed first and the aforementioned skill code is run, netA alone gets probed. But I would like to continue the probe on netA1 inside the hierarchy IX. How do I modify the code to achieve this. If there is totally a different line of thinking to achieve the same effect, that would also help! Thanks Shankar

Viewing all articles
Browse latest Browse all 33813

Trending Articles