-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Digital Libraries for ngspice #1034
Comments
I found additional MicroCap Digital Libraries. The following are included above. dig000.lib |
Found a NXP 74HC component-level library. Might be useful for mixed-signal analysis, I used the 74HCU04. To make individual Spice models requires a lot of copy-paste. A device might have 6 sub-circuits throughout the files. |
Thanks! This would be the best library for analog mode simulations. |
LTspice uses sub-circuits called dviewX making calls to dview.lib to create Timing Diagrams. This is another option. |
Any digital libraries from your students you want me to review? Always best to catch issues early. ;-) |
There is no progress on this subject yet. |
Updated Digital_CD on 1/05/25 to add CD4066 and CD4069UB. Latest version of the Digital Libraries on 1/04/25. I added a dozen new devices. Digital_CD4000 -> Digital_CD |
I have uploaded the updated libraries by #1184. This issues may be closed. The additional devices may be uploaded later. The CD4066 device still be missing. It is often used in analog circuits. I will try to finish my transistor level model for this IC and upload the library. |
CD4066 from LTspice. One model shows "real-life" Ron versus supply. |
Updated all files: I modified the above CD4066 model slightly. Did a quick test and added it to the end of Digital_CD.lib. Built the following Oscillator with a single Vdd supply from link below. |
CD4066 model uploaded by #1187. Thanks! |
I decided to add the CD4069UB. Since it's "analog" like the CD4066 it was added to the end of the Library. Digital_CD.lib updated above. |
CD4069 model uploaded by #1190 |
Files updated 1/07/25
Issue #900 was getting too long...
@ra3xdh since you are assigning this task to a student I though this info might help.
ngspice supports multiple Digital Libraries but the ones one from "MicroCap" offer the most devices. These are XSPICE based models that support gate delays and I/O voltage levels.
MicroCap_dig000.lib has 74, AC, LS, HC...etc. Unfortunately there are many missing devices.
MicroCap_74lv.lib has a wide selection of 74LV devices.
MicroCap_cmos.lib has CD4000 devices.
MicroCap_ecl.lib has ECL devices.
There may be other MicroCap Digital Libraries. They would need to be tested to work in ngspice.
I have created projects containing 74HC, 74LV and CD4000 devices.
Digital_HC_prj to create and test sub-circuits for Digital_HC.lib
Digital_LV_prj to create and test sub-circuits for Digital_LV.lib
Digital_CD_prj to create and test sub-circuits for Digital_CD.lib
symbols_logic.sch contains some useful symbols.
One can convert devices from one family to another. You would need to alter all the delays, capacitances and voltages.
IMPORTANT: These are XSPICE based models. There are dozens of "support" devices like Clocks, ADC/DAC-Bridges..etc that haven't been made into a Library because they use Parameter Passing. They are in the dozen XSPICE Digital/Analog projects that are attached and in the discussion section. They speed understanding how to make subcircuits with Parameter Passing, make schematics and do XSPICE simulations. At some future date an XSPICE Support Library will be made.
Digital_device_projects.zip
Digital Libraries.zip
The text was updated successfully, but these errors were encountered: