So over in another thread I asked about getting a model for the CD4011 (quad NAND chip), which was gracioiusly answered (here) by RonV. So now I can add this part (and all of the CD4xxx series) to my schematics.
But here's the problem: when I try to run a simulation using this part, I get this error message:
**broken link removed**
I think the problem is that the .lib file that contains the subcircuit or model descriptions for these parts isn't being found by the program, even though I put it where I though it should go ( .../lib/sub).
So here's what I'd like, if possible: to find out how to set up LTspice so that I don't have to add any include directives or whatever to my simulations in order to find all the definitions needed for these parts. It should be as easy to add a CD4011B as it is to plop down a NPN or "polecap" or resistor or whatever. I really don't want to have to add these directives in order to use these parts.
So where do I put the various pieces to make this work? The .asy files are already where they belong, and I can access them. I think everything that LTspice needs is in the CD4000.lib file. Can I just put this file in the appropriate folder? or do I need to extract the .subckt definitions from here and put them somewhere else? I don't mind editing a few files, if it's just a one-time setup thing.
+++++++++++++++++++++++++++++++++++++
So I tried copying this .subckt to a new file (CD4011B.sub) that I put in my ../lib/sub folder, but no joy:
But here's the problem: when I try to run a simulation using this part, I get this error message:
**broken link removed**
I think the problem is that the .lib file that contains the subcircuit or model descriptions for these parts isn't being found by the program, even though I put it where I though it should go ( .../lib/sub).
So here's what I'd like, if possible: to find out how to set up LTspice so that I don't have to add any include directives or whatever to my simulations in order to find all the definitions needed for these parts. It should be as easy to add a CD4011B as it is to plop down a NPN or "polecap" or resistor or whatever. I really don't want to have to add these directives in order to use these parts.
So where do I put the various pieces to make this work? The .asy files are already where they belong, and I can access them. I think everything that LTspice needs is in the CD4000.lib file. Can I just put this file in the appropriate folder? or do I need to extract the .subckt definitions from here and put them somewhere else? I don't mind editing a few files, if it's just a one-time setup thing.
+++++++++++++++++++++++++++++++++++++
So I tried copying this .subckt to a new file (CD4011B.sub) that I put in my ../lib/sub folder, but no joy:
Code:
*
*
* 2-input NAND gate
* tpd 125n
* tr 100n
.SUBCKT CD4011B A B Y VDD VGND vdd1={vdd} speed1={speed} tripdt1={tripdt}
.param td1=1e-9*(125-40-10)*5/{vdd1}*{speed1}
*
XIN1 A Ai VDD VGND CD40_IN_1 vdd2={vdd1} speed2={speed1} tripdt2={tripdt1}
XIN2 B Bi VDD VGND CD40_IN_1 vdd2={vdd1} speed2={speed1} tripdt2={tripdt1}
*
A1 Ai Bi 0 0 0 Yi 0 0 AND tripdt={tripdt1} td={td1}
*
XOUT Yi Y VDD VGND CD40_OUT_1X vdd2={vdd1} speed2={speed1} tripdt2={tripdt1}
.ends
Last edited: