ngspice/paranoia_parallel/examples/xspice/pll
Brian Taylor d881158a41 Paranoia_Parallel: a test suite for more than 100 test circuits,
running in parallel on a multi-core machine (12 min execution time
on a i9 9900, ngspice compiled with gcc, debug mode enabled.
Linux with Valgrind and Parallel are required.
2026-06-29 17:35:00 +02:00
..
README Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00
f-p-det-d-sub.cir Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00
loop-filter-2.cir Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00
loop-filter.cir Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00
pll-xspice-fstep.cir Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00
pll-xspice.cir Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00
test-f-p-det.cir Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00
test_vco.cir Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00
vco_sub.cir Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00
vco_sub_new.cir Paranoia_Parallel: a test suite for more than 100 test circuits, 2026-06-29 17:35:00 +02:00

README

This directory contains a mixed mode pll, combining
ngspice and XSPICE circuit blocks.
The pll consists of the following blocks:

** voltage controlled oscillator:
vco_sub.cir
   7 stage ring oscillator with gain cells, CMOS devices
or
vco_sub_new.cir
   vco made from code model d_osc, cntl_array/freq_array data
   are gained by running test-vco.cir with vco_sub.cir

** digital divider and frequency reference:
pll-xspice.cir

** phase frequency detector:
f-p-det-d-sub.cir

** loop filter:
loop-filter.cir
   switched current sources as charge pump, 2nd order
   passive RC filter
or
loop-filter-2.cir
   transistors as switches for charge pump, 2nd or 3rd
   order passive RC filters

** main simulation control:
pll-xspice.cir

Two test files are included:
test-vco.cir simulates vco frequency versus control voltage
test-f-p-det.cir simulates the phase frequency detector and the loop filter.

The main building blocks are organised as subcircuits.

main simulation control with three reference frequencies:
pll-xspice-fstep.cir
   simulates two steps of the reference in one simulation run