XSPICE Digital Library and Example Projects #1155
tomhajjar
started this conversation in
Show and tell
Replies: 3 comments
-
I have moved this to the discussions and marked with examples label. This autoamtically adds this thread to the examples list in this pinned discussion: #788 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the contribution! Now it is added in the examples list. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The XSPICE PLL project was missing from above so I attached the latest update. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Updated 1/10/25
Major update. The new capabilities of the "SPICE netlist" device which now allows the "Create Library..." Utility to create Libraries with Parameter Passing. All subcircuits have been converted from Spice Library to Spice netlist.
I have created five XSPICE Digital/Analog mixed-signal projects and the subcircuits for new Digital/Analog XSPICE Libraries. The library(s) have the basic Digital gates, Flip Flops, ADC/DAC Bridges, pull-up/dn and multiple Digital and Analog Clock sources and will be expanded over time to add more devices. Also done were some "X-Analog" subcircuits like OpAmps used in mixed-mode simulations. The XSPICE models are "bare-bones" to speed simulation times.
The projects will be a good primer for using XSPICE to simulated mixed digital-analog circuits. XSPICE ADC/DAC Bridges allow XSPICE Digital devices to be embedded in almost any simulation. For example the ngspice XSPICE VCO d_osc is very useful in analog simulations.
Included are the projects to create the Library, XSPICE PLL and Delta Sigma Converter examples, XSPICE PLL Clock Recovery project using a Hogge Phase Detector, XSPICE mixed-signal example C3 and an XSPICE PRBS15 source done by @clyde73 who did an XSPICE 555 timer for us.
XSPICE digital components default to vcc=1 unless a .Param vcc=xx is used. All nodes are "digital" unless a DAC bridge is used or a connection is made to a "analog" device or resistor which initiates an "Auto-Bridge". I made 1/4/8 ADC-DAC Bridges and resistor packs to speed making schematics and add "digital" and "analog" interfaces between component types.
Plotting of voltages at "Digital" nodes requires using the "Plot Vs." option. Both "Digital "and "Analog" data can be plotted on the same Graph.
Simulations are faster if minimal Auto-Bridges are initiated but for typical circuits speed isn't an issue. I haven't tried making subcircuits to implement the "LTspice" method of plotting digital timing diagrams. Just using equations as shown in the examples.
XSPICE_Mixed-Signal_Projects.zip
Beta Was this translation helpful? Give feedback.
All reactions