I am trying to simulate a CD4093 NAND schmitt trigger. To this end, I have created a symbol with pin names (and numbers) A B Y VCC and AGND. These are the designations I found in the pspice model I downloaded from https://www.ti.com/product/CD4093B#design-development.
In the symbol’s definition, I have:
In the spice model, I have
The simple schematic I use to test the simulation looks like this:
When I run the simulation, I do get an output that lets me suspect that the model is assigned to wrong pins:
The voltage at the supposed input of the schmitt trigger (blue line) is near 8V, the supply of the schmitt trigger, although it should closely follow the green line. This looks like the input of the schmitt trigger actually is its output (Y instead of A or B). So there is a problem with the mapping of the symbol pins to the model.
What is wrong here? I thought given that I use the same names for model and pins, the assignment would be correct.