I have a testbench for the cell of a multi-stage amplifier. I placed a dummy resistor between the stages, which allows me to disable it later in a config view of the testbench. This way I can access the corresponding nodes with deepprobes and use an sprobe to analyze the interstage matching without altering the actual schematic of the amplifier.
Is it possible to do this without editing the config view each time? I though of something similar to the deeprobe, where I can place a cell in the testbench and specify an instance name (eg. "DUT.AMP.RES1") or a net (eg. "DUT.AMP./netxy") which gets disabled or left open for the simulation. The "mind" in the analoglib is a another cell, which modifies the behaviour of two normal inductors. Maybe the same approach can be used here?
You could use the spt1switch (or spt2switch etc if you want 2 or more throws for the switch). These allow the switches to be in different positions for different analyses (see "spectre -h switch") but can be used as a general switch controlled by a parameter. The default behaviour of the analogLib components are to have cyclic choices for the positions, but you can pick Parameter type to be "string" which would then allow you to make it a variable that you could change in your test setup.
If you didn't want to put this switch in the actual circuit (down in the hierarchy) you could continue to have the dummy resistor, and then connect it up via deep probes to the ends of the dummy resistor, and have your config set to bind-to-open for that resistor. This way you could keep the config the same for everything, have something physical in the actual circuit, and have the flexibility of parameterising the connection as you asked for.
I think that does all you asked for?
BTW, "mind" is a very different thing - this is not controlling a connection - it's just controlling the coupling between different inductors, and so that's a specific type of component implemented in the simulator.
thanks for your answer. What you suggest is basically what I am already doing. I disable the resistor by binding it to open in the config of the testbench and use deepprobes and an sprobe to bypass it.
My problem is, that I dont want to edit the config, because my cells also have configs of their own, which I have to override to be able to disable the resistor. Another idea, instead of disabling the resistor, is to set its value to something large. Is this possible to achieve, maybe with a custom netlist procedure?