I downloaded several analog switch models and tried on the cadance capture 16.3, none of them works (ADG749/ADG741/ADG723/ADG721....), the error message is "ERROR -- Subcircuit HIGHONSWITCH used by X_U6.X1 is undefined"
How can I fix this? I found them all developed by a same person and seems to be missing the same subcircuit, is there any other file I have to include in my own library?
Thanks Harry, maybe I need to use a newer version to recognize it. I found a ADG406B could work.
I continued to dig on this question and found it might be a dependency issue or missing subcircuit problem for the single files. Look at this post:
pspice error(Subcircuit LOWONSWITCH used by X_U8.X1 is undefined) - PCB Design - Cadence Technology Forums - Cadence Com…
And I found on the ADG1211 file it's like this:
* Logic Low On Switch
* 101 = S
* 102 = D
* 103 = VIN
* 104 = VDD
* 105 = GND
* 106 = VSS
.SUBCKT LOWONSWITCH 101 102 103 104 105 106
x1 103 104 105 107 NOTGATE
X2 107 108 104 106 105 VSENSE
X3 108 105 109 ENABLEDELAY
X4 101 102 109 104 105 106 SWITCH
while in these files, only the comment are preserved as below. No .subckt are included.
* Logic High On Switch
And the ADG1211 has the definition of LOWONSWITCH, while I still didn't find the prototype of HIGHONSWITCH subcircuit.
For some mysterious reason, those file could not be properly load into the pspice as whole file, but I can read them with wordpad.
I'm wondering it's a character issue.
I found the solution, ADG1213 has all the subcircuit these files need. The way to import the .cir file to the cadance capture is using the model editor. This editor could only load one subcircuit into the library. The way to fix this problem is to rename the corresponding .cir file (which in this case, the ADG1213 has all the definition these files need) to .lib and include it in the working library. Then it will work