CD4000 library for QSPICE

Anyone know or have a copy of the entire CD4000 ic library that will work in Qspice. The one made for LTspice doesn’t seems compatible and haven’t had any success.

I could possibly review how to build an equivalent library for that in Qspice. However, which library file are you referring to? Could you upload or point to the exact library file so that I can review the modeling concerns in that library? I assume that the reason you cannot transfer that library to Qspice is due to the LTspice A-device. But this can be easily resolved in Qspice with better logic devices (¥-Device).

I have worked on ideal logic for the 7400 series (now around 20 basic logics). ‘Ideal’ means having a 0s delay time, but my model includes the parameter TD and can easily modify the delay time. In reviewing the legacy logic library, even when they mention the 7400 or CD4000 series, what they did was to match the delay time. I don’t think it’s difficult to rebuild a library in Qspice. Qspice by default has all fundamental logic blocks as ¥-Devices; by default, they are ideal with TD=0.

Qspice/Symbols-KSKelvin/digital/7400 series at main · KSKelvin-Github/Qspice

For example, the CD4000.lib in LTspice@groups.io focuses on modeling with delays, rise and fall times to match datasheets. If you examine this library, it includes a number of native devices to assist in completing the work.

Taking the CD4050B (buffer) as an example, Qspice can handle the same level of modeling with just one native ¥-Device. Here we compare Qspice’s modeling of the CD4050 to that in CD4000.lib.

CD4050B in CD4000.lib with A-device

Qspice BUF with ¥-Device