Commit Graph

512 Commits

Author SHA1 Message Date
Holger Vogt b06275f045 Update example 2026-08-14 18:20:53 +02:00
Holger Vogt 300d01e0f8 Use 'arrowplot', and plot mag(vector) 2026-08-14 14:30:12 +02:00
Holger Vogt c93b0ec179 Use arrowplot (vertical lines or arrows at frequency of interest). 2026-08-14 11:40:05 +02:00
Holger Vogt e7fb53f6fc Add an arrowplot flag to plot, gnuplot commands for plotting
signal strenth versus frequency with vertical arrows.
An internal flag PLOT_ARROWS is set.
With command 'plot' this is the same as the combplot flag.
With 'gnuplot' this adds an extra drawing style using vectors.
2026-08-14 00:45:29 +02:00
Holger Vogt 2d6ca92a7e Examples: nport instance and command 'sp' are not compatible.
files.cir uses sp, the others the given 137mhz_bpf.s2p
2026-08-12 18:10:23 +02:00
Holger Vogt 38a33e25d6 A simple amplifier as example for Harmonic Balance. 2026-08-12 18:10:22 +02:00
Holger Vogt 0d4bbaeed8 Read and fit S-parameters, then run a transient analysis and compare. 2026-08-12 18:10:22 +02:00
Holger Vogt ca23679123 Remove snp2va.cpp from the repositotry, as it is copied diring the
MSVC build.

Add examples using pre_snp for reading and converting an S parameter file
for use with the nport instance.
2026-08-12 18:10:22 +02:00
Holger Vogt e097145414 reduce stabilisation time 2026-08-12 18:10:18 +02:00
Holger Vogt 563fe5fd6c no pwl source, so no driven circuit 2026-08-12 18:10:18 +02:00
Holger Vogt 49674ad93e better visibility of standard plot 2026-08-03 17:06:26 +02:00
Holger Vogt 929020f01f mix spice and plain numbers 2026-08-03 17:06:13 +02:00
Holger Vogt 40078850f4 Enable spice notations like 2n or 5m in filesource inputs
Tests that spaces or tabs are o.k.
2026-08-03 17:05:28 +02:00
Holger 4ad9c8a70b get independent outputs 2026-08-03 17:04:53 +02:00
Holger Vogt 7900238bfc Examples for comparing of plotting with ngspice, gnuplot and pyplot 2026-07-19 17:37:26 +02:00
Holger Vogt 12bb48cf41 Add examples for the IHP Open Source PDK 2026-07-08 22:47:31 +02:00
Giles Atkinson 1123808aec Correct three comments. 2026-07-08 22:46:54 +02:00
Holger Vogt 62d70a242e A digital NAND gate 9-stage ring oscillator (less than 30ms simulation time) 2026-07-08 22:42:44 +02:00
Holger Vogt 037b6578f8 gain cell as an example for the declarative small signal noise approach 2026-05-24 09:58:53 +02:00
Holger Vogt b03f3cc8fe title update 2026-05-23 15:03:12 +02:00
Holger Vogt 7911d0870d Correct paths in example file 2026-05-15 01:00:56 +02:00
Holger Vogt 0638e6ab35 Update to the README. 2026-04-30 13:40:39 +02:00
Holger Vogt db8cbb5c6e Remove result file 2026-04-30 13:06:31 +02:00
Holger Vogt a40e283ddc provide correct path info 2026-04-30 13:06:30 +02:00
Holger Vogt d774f5cf7c Examples for wav audio simulation. 2026-04-30 13:06:29 +02:00
Holger Vogt 62440272a4 Add non-nqs PSP model as well. 2026-04-30 11:22:08 +02:00
Holger Vogt a0af7065a8 Add internal plotting via command
plot  n_one clk n_zero msb lsb digitop
2026-04-29 13:03:12 +02:00
Holger Vogt 7e2056462c Example for small signal noise in code model OTA 2026-04-25 17:16:50 +02:00
Holger Vogt bc7eb4fdd4 Show equal x axes 2026-04-24 20:49:14 +02:00
Holger Vogt a3102a7041 Some tiny updates for pss examples 2026-04-20 17:02:10 +02:00
Holger Vogt 1a621eb08e load both standard and nqs PSP models 2026-04-12 11:53:52 +02:00
Holger Vogt e1bc444380 Update van der Pol oscillator
Add oscillators with .control section
2026-04-12 11:47:14 +02:00
Brian Taylor 14b94b5f15 Corrections to voltage pulses. 2026-04-04 13:37:32 +02:00
Brian Taylor 38c49fee73 Fix the voltage pulse statements. 2026-04-04 13:37:16 +02:00
Giles Atkinson fe8193cdfb Improve S-parameter example: change node names to make plot clearer,
add port impedance parameters to subcircuit and simply string parameter.
2026-04-01 07:35:20 +01:00
Holger Vogt ab03cc94c0 Using mtimeavg 2026-02-03 14:23:41 +01:00
Holger Vogt 86ca3948eb Better graphics 2026-02-03 14:23:07 +01:00
Holger Vogt 4fd68ba901 enable simulation with 'option newtrunc' 2026-02-03 14:22:12 +01:00
dwarning d3b0dc1b31 Adapt VDMOS Vth temperature coefficient to usual notation with - for nch and + for pch. 2026-02-03 14:21:50 +01:00
Holger Vogt 343319a1ed F5 example removed, obsolete or needs to be improved. 2026-02-03 14:21:38 +01:00
Holger Vogt c12ad7ba27 Update the reference to the manual 2026-02-03 14:20:19 +01:00
Holger Vogt f6fc256569 Measure transient analysis time. 2026-02-03 14:19:06 +01:00
Holger Vogt ac9ac548d6 Update test description 2026-02-03 14:16:23 +01:00
Holger Vogt 59a64f57d6 Update: add frequency measurement and temperature dependency. 2026-02-03 14:14:18 +01:00
Holger Vogt 65fc0ad8a6 Add analog code model astate.
It reports the previous state (delayed by 1 to 3 time steps)
of the input node. Single or differential voltage or current.
2026-02-03 13:57:57 +01:00
Brian Taylor 7af862af3d Enable CIDER with KLU for DC, OP, and TRAN analyses. Small signal AC analysis is not yet supported for CIDER complex valued device KLU matrices. The examples/cider testcases produce printed simulation result values which have slight differences between Sparse and KLU. Differences are probably expected and in a few cases are ~1-2%, sometimes a little more. This should be good enough for most CIDER analyses. Francesco did a good piece of work. Runtimes are significantly shorter with KLU. 2026-02-03 13:55:12 +01:00
Brian Taylor 0e50efc1fa Add missing value in the last line.
FIXME: we need to check the input for having adequate columns
2025-08-28 12:14:50 +02:00
Holger Vogt 481e3e567b Update to filesource
Move tprev out of the loop to enable storing the previous time value.
Add some general warning message that an error might have occurred during
reading the time or data values from the data input file.
Allow empty lines in the data input file.
Guard early data values (TIME < time offset) against false reading.
Add some simple examples.
2025-08-11 18:45:21 +02:00
Brian Taylor cc101495a5 Fix the xspice transmission_line examples.
Also, cherry pick:
commit 87d09def9c (origin/bt_dev)
Author: Brian Taylor <lbwnet@comcast.net>
Date:   Sun May 18 14:01:47 2025 -0700

    Fix memory leak in xspice oneshot.
2025-07-29 10:57:55 +02:00
Vadim Kuznetsov 70ee0f8ef5 Add examples 2025-07-29 10:54:37 +02:00