Dear All!
I guess all of you have encountered this kind of situation. When you use Virtuoso schematic edit the circuit and use spectre or Hspice to do the simulation. Sometimes you make a small modification to the circuit then you don't want some transistors to work or in order to test you idea you want to make some part of the circuit don't work but you don't want to move the circuit of the whole circuit in case you want to use it next time. Just like write a C language, you just want to make some line of you program don't take effect. How can achieve this goal in the circuit simulation.
Each time you make a new major modification to your circuit you should consider having a new version of the schematic.
The only way to disable a circuit is to turn off the voltage supply to it. That means you could have separate circuits with their own voltage supplies and then turn them on/off as needed. Anyway, there is not anything equivalent to what you compared to with C language. You need to make a new file for the modified circuit or just disable it when you run your simulation.
Thank you for your reply. Yes, I know this method. but I think it's a little troublesome in this way. So I was wondering if any of you have some smart way.
analogLow, Much obligation!!!
I have only been using cadence for about 4 years ... so maybe there is some way but I never heard or seen of it. I think the best practice is anyway to have seperate files for different versions of your circuit.
Ok I thought about this more ... if you like coding style than I highly recommend you first generate the circuit netlist in Eldo (or Hspice) language. You can reference (i.e. "include" statement) that code from a new file (I use .cmd files and reference the .cir circuit netlist file). That way you can write your code for simulation in Eldo (or Hspice) code and turn things on/off much easier. I use Eldo to simulate everything because it is fast once you get used to it. Hope that helps.
analogLow
The nearest workaround you can have is using configs. However, that doesnt help in any way if you just want to disable some transistors.
If you are using Eldo, it has a .IGNORE command.