Holger Vogt
3dbfc934bb
set colors for grids and data
2022-10-07 13:17:06 +02:00
Brian Taylor
4706c3dea5
Add 74xx283 4-bit adder example from the Micro Cap digital example circuits. Pspice primitives are translated to Xspice and a waveform is displayed using GTKWave. This is a digital-only test.
2022-10-07 13:15:23 +02:00
Holger Vogt
e9b5a9a957
aswitch needs two input nodes because gd has been selected for input.
2022-10-07 13:13:38 +02:00
Holger Vogt
c8ed9590b7
Handle the case when control voltages on and off are equal.
...
Update the linear switch: add the limits to resistance ron, roff
Update the log switch: correct the resistance calculation for
von < voff
Add some examples for the pswitch.
2022-10-07 13:12:56 +02:00
Holger Vogt
5b0b328186
If a node name to be plotted ends by ':power', its type is set to POWER.
...
Thus 'settype power nodename(s)' in the examples is no longer necessary.
2022-10-07 13:12:04 +02:00
Holger Vogt
2deefe1fbc
New tables for MOS devices
2022-10-07 13:11:18 +02:00
Holger Vogt
765d2e8a0e
Return data to input directory.
2022-10-07 13:10:51 +02:00
Holger Vogt
a69dd1bcde
Simplify the NMOS or PMOS selection by setting only one parameter
...
'mostype'
ngspice-37+ is required.
2022-10-07 13:10:06 +02:00
Brian Taylor
7f38ce4ebb
Remove debug code.
2022-10-07 12:55:42 +02:00
Brian Taylor
112e47d0d3
This test is equivalent to examples/xspice/xspice_c3.cir and uses Pspice subckts for the divider and nand gate.
2022-10-07 12:53:03 +02:00
Brian Taylor
e8dfd16cb2
Add counter test. Check for usage of $d_lo, $d_hi, $d_nc usage with dff, jkff, dltch which will not translate to Xspice.
2022-10-07 12:52:39 +02:00
Brian Taylor
f7c519f149
All-digital U* device examples. No a/d or d/a interfaces on the subcircuits.
2022-10-07 12:52:20 +02:00
Holger Vogt
c4efe2e3ac
Update, link on device models (public domain or TI)
...
Download adresses for TI models.
2022-05-15 18:36:35 +02:00
Giles Atkinson
2e329986b8
Fix filename case.
2022-05-10 15:29:51 +02:00
Holger Vogt
ac8f8ad65d
New example: S-parameters of a Tschebyschef Low Pass filter
2022-05-09 10:07:48 +02:00
Holger Vogt
07feb637b5
New example for power measurement with .probe
2022-05-09 10:07:41 +02:00
Holger Vogt
129893b399
S-parameters: Replace S11 by S_1_1 etc. to avoid ambiguity
...
when more than 10 ports are measured.
Update to S-parameter script and command wr2sp
2022-04-29 07:29:14 +02:00
Holger Vogt
aca85ec386
Add .probe p(...) commands (including plotting and averaging)
2022-04-26 10:37:10 +02:00
Holger Vogt
cd451bd5b3
Add measuring power of the VDMOS devices with .probe p(device)
2022-04-26 10:36:39 +02:00
Holger Vogt
a0ee275b08
Improve printout formatting
2022-04-26 10:33:01 +02:00
Holger Vogt
6b03aaa15f
examples for loops.
...
The syntax is listed in the ngspice manual,
chapter 17.6 Control Structures. Practical examples
using a simple voltage divider circuit are given here.
2022-04-26 10:32:53 +02:00
Holger Vogt
9882c3a24c
New examples: command 'sp' and three-port example
2022-04-25 21:31:58 +02:00
Holger Vogt
5fb19c41bc
Fix internet address
2022-04-25 21:30:07 +02:00
Holger Vogt
a3d55cdddb
Replace (all) by alli
2022-04-25 21:29:55 +02:00
Holger Vogt
82822eb260
replace (all) by alli
2022-04-25 21:29:47 +02:00
Holger Vogt
18a01244af
save only relevant digital data (command 'esave'
2022-04-25 21:27:11 +02:00
Holger Vogt
7f326b4fe1
remove options not needed
...
local behavior setting
2022-04-25 21:26:57 +02:00
Holger Vogt
48e0164cc4
Replace $ in instance and.model lines by ;
...
$ is not a valid end-of-line comment delimiter when PS
compatibility mode is chosen.
2022-04-25 21:26:42 +02:00
Holger Vogt
c8beb1e601
Replace $ by ; as a universally valid end-of-line-comment delimiter
2022-04-25 21:26:35 +02:00
Holger Vogt
63a4e44c2c
Add more parameters to the example
2022-04-25 21:26:23 +02:00
Holger Vogt
f2ba4a93fb
Update example for independent grid and line widths
...
in polar or Smith plots.
2022-02-17 15:50:27 +01:00
Holger Vogt
36da24e251
Add another RF example, drawn from fig. 13.2 of
...
https://qucs-help.readthedocs.io/en/spice4qucs/RF.html
2022-02-17 15:50:05 +01:00
Alessio Cacciatori
2c10c4aebd
S parameter simulation
...
Command '.sp'
arbitrary number of ports
ports made with modified VSRC
Patch provided by Alessio Cacciatori
https://sourceforge.net/p/ngspice/discussion/127605/thread/7a2655c86f/
2022-02-17 15:48:00 +01:00
Holger Vogt
afde37c35d
add y-axis label
2022-02-01 12:21:08 +01:00
Holger Vogt
a464ef47bc
meas example with output redirection
2022-01-15 16:03:19 +01:00
Holger Vogt
2981d0f56d
Use 'esave none' to reduce memory consumption.
...
Only analg nodes are to be saved.
2022-01-09 10:58:51 +01:00
Holger Vogt
738ac4863c
Obtain memory and simulation time
...
Add rusage information command
2022-01-03 22:11:15 +01:00
Carsten Schoenert
e373ca0e2f
tcl-testbench[x].sh: Use bash within shebang
...
These scripts using non Posix shell extensions which are provided by bash and
require the bash as shell to be fully functional.
2022-01-02 13:51:44 +01:00
Holger Vogt
8bf28b5aee
Comment out non-ngspice compatible commands
...
Otherwise error messages would have beeen generated
2021-12-16 08:12:29 +01:00
Holger Vogt
45ceeee509
small updates to example files
2021-12-13 21:50:10 +01:00
Holger Vogt
b714f0bea9
Add other integration methods to the example
...
We have: meas, integ, and code model INTEG
2021-12-13 21:50:00 +01:00
Holger Vogt
1605d293d0
Add function integ to control language
...
Trapezoidal rule for integrating a vector.
2021-12-13 21:49:45 +01:00
Holger Vogt
a68cfefb28
hcopywidth and hcopyheight failed with SVG plot
...
cp_getvar read CP_NUM, not CP_STRING
Patch #108 contributed by Giles Atkinson
Add hcopywidth and hcopyheight to example nmos_out_BSIM330_svg.sp
2021-12-13 21:49:01 +01:00
Holger Vogt
aaf586ae83
.probe: Add more safeguards to prevent crashes
...
in case of wrong user input
due to obtain empty lines in shared ngspice
2021-12-13 21:48:21 +01:00
Holger Vogt
d41379177f
.probe: various example netlists
2021-12-13 21:48:09 +01:00
Brian Taylor
f66573883f
Fix typo in the diode/README file.
2021-12-13 21:43:09 +01:00
Brian Taylor
a46b2041c2
Fix pz1.cir test so that the Cider OP data file is saved and the PZ analysis is run.
2021-12-13 21:42:53 +01:00
Holger Vogt
87b9df6681
CIDER: Examples for 2D plotting with gnuplot
2021-10-30 13:21:53 +02:00
Holger Vogt
69e2903bf6
Update to Garbage Collector for cpl
...
Update some comments
Insert the deleting functions
Reset pool_vi and ndn_btree
Add an example with 20 call to cpl in sequence
2021-10-30 10:44:29 +02:00
Holger Vogt
70e4d2157e
New names for the (experimental) ramp-time capacitor and inductor code models
2021-10-29 16:28:57 +02:00
Holger Vogt
eb7b1fc1e7
Some typos
2021-10-05 17:54:06 +02:00
Holger Vogt
34c227815d
RKM for C: Revert reading f, it is again femto
...
Examples files include expected results
2021-09-29 20:31:53 +02:00
Holger Vogt
7f981569d9
Update to RKM if ngbehavior=lt is set:
...
Reading C and R values follow the RKM convention with 2 exceptions:
Upper case and lower case letters are not distinguished.
Letters m, M denote milli (1e-3), letters Meg or meg denote 1e6.
2021-09-29 20:31:44 +02:00
Holger Vogt
daa3609e58
Enable RKM notation for R and C, when ngbehavior LT is selected.
...
Add 2 evaluation functions specific for R and C respectively.
R has code letters L, R, K, M, G, T enabled. M here is Meg!
C has code letters p, n, u or µ, m, F. F here is unity, femto is
not available, m is still milli!
Two examples files show all cases.
2021-09-29 20:31:14 +02:00
Holger Vogt
0817d86f33
No oscillation: Add a starting pulse
2021-09-29 20:23:43 +02:00
Brian Taylor
663a79dea8
Fix NAN error in numd2 area report and crashes when a doping file is missing. Update examples/cider so that the test circuits all run; add case sensitivity tests for rootfile and ic.file parameter strings enclosed in a single pair of double quotes.
2021-09-29 20:22:56 +02:00
Holger Vogt
4667a74389
Adapt gtkwave plotting to the various OSs.
...
macOS still needs some improvement.
2021-09-29 20:19:19 +02:00
Holger Vogt
aeafe4bd49
Update to the optran circuit examples:
...
TLV9002-test.cir: Rely on optran from spinit
TLV6001-test.cir: Override optran from spinit
2021-09-29 20:16:32 +02:00
Holger Vogt
00f530c9cb
Add MOS model cards
2021-09-29 20:15:55 +02:00
Holger Vogt
7c84e3f993
SOA for bipolar
...
Replace pow_max by pd_max
2021-09-29 20:15:41 +02:00
Holger Vogt
04080c2ab3
Add short description of the new examples
2021-09-29 20:14:26 +02:00
Holger Vogt
f40e6b9357
Linux line endings (LF only)
2021-09-29 20:14:17 +02:00
Holger Vogt
70ba37b149
Example OpAmp which converge for op only with optran:
...
TLV6001 and TLV9002
2021-09-29 20:14:05 +02:00
Holger Vogt
b20ac16093
remove old files
2021-09-29 20:13:53 +02:00
Holger Vogt
03d956cbfa
Example file with three dual opamp filters.
...
Different opamps: TL072, OPA1656, OPA1612
2021-09-29 20:13:35 +02:00
Holger Vogt
8dcb1f901a
Three OpAmp Example for optran
2021-09-29 20:13:18 +02:00
Holger Vogt
8c5c8da2a7
line endings LF (Linux)
2021-09-29 20:13:04 +02:00
Holger Vogt
4e03efacb7
Use InpEvaluate() instead of strtod to enable ngspice numbers
...
with scale factors Meg k m u n p f etc.
2021-09-29 20:09:22 +02:00
Holger Vogt
3be5926f2c
Reverse stepsize and finaltime in optran command,
...
stepsize first as in tran command.
2021-09-29 20:08:51 +02:00
Holger Vogt
6bdd6610f6
add tran simulation
2021-09-29 20:08:03 +02:00
Holger Vogt
89f78bfc6c
updates to optran description and example.
2021-09-29 20:06:53 +02:00
Holger Vogt
29dfa23465
Pass Labs F5 Turbo
...
example for optran
2021-09-29 20:04:48 +02:00
Holger Vogt
a08e6a0676
Add new SOA parameters (safe operating area) for BJT.
...
We now scan for max of Ic, Ib, power, taking into
account the max allowed temperature, using the thermal
resistance rth0 model parameter between juntion and ambient.
Two user options are there: If rth0 is given, we calculate
a derating of the max power allowed.
Without a constant max power according to model param pow_max
is assumed.
The new model parameters for the bipolar model are:
pow_max, ic_max, ib_max, te_max, and rth0, in addition
to the already existing vbe_max, vbc_max, adn vce_max.
2021-09-29 19:59:58 +02:00
Holger Vogt
cbb63215c4
Remove the old SOA examples
2021-09-29 19:59:03 +02:00
Holger Vogt
e9274d4b9c
New folder with SOA (safe operating area) examples
...
in the ngspice examples section
2021-09-29 19:58:50 +02:00
Holger Vogt
33571877dc
Some update to SOA for a diode:
...
Limit output to four digits
Add power and temperature limits.
Derating with self-heating, or with fixed temperature,
or no derating at all, selectable by setting model parameters.
Example file: SOA plotted as frame, with diode current.
2021-09-29 19:58:11 +02:00
Holger Vogt
7ebe17f32f
hicum plot has non-monotonic x values.
...
We thus need parametr 'retraceplot'.
Command 'run' not required.
2021-09-29 19:56:50 +02:00
Holger Vogt
05624bedd3
move examples file to prpoer xspice folder
2021-08-03 15:53:11 +02:00
Holger Vogt
5603c8cae7
Write some output to file with raw file or table format.
2021-07-23 14:54:25 +02:00
Holger Vogt
ce1ddd8623
Circuit (ring oscillator) with various current and voltage measurements
...
inside and outside of subcircuits
2021-07-23 14:43:20 +02:00
Holger Vogt
1a9ea82b97
new file name (transfer characteristics inside)
2021-07-18 12:03:37 +02:00
Holger Vogt
c7cd07e2e0
Update to psp model files and examples
...
NMOS, PMOS, inverter, ring oscillator
2021-07-18 11:57:51 +02:00
Holger Vogt
5083954fa1
Example input file for analog delay
2021-07-05 14:24:58 +02:00
Holger Vogt
1266225cdb
For C and R device enable value tokens like 4k7 or 1u2
...
in addition to 4.7k and 1.2u.
Valid for
R1 1 0 47k
C2 3 6 1u2
only. Does not interfere with other value tokens in params etc.
2021-07-05 14:17:31 +02:00
Holger Vogt
5619665106
Remove double defined xrcv
2021-07-05 14:15:48 +02:00
Holger Vogt
dca52aea3a
Remove double defined xrcv
2021-07-05 14:13:07 +02:00
Holger Vogt
897d4c598b
Upgrade due to recent ngspice enhancements
2021-07-05 14:03:55 +02:00
Holger Vogt
5b3007e06a
Plotting with feh in macOS failes with --magick-timeout,
...
so replace it by --conversion-timeout, which does not do
in Linux or Cygwin.
2021-03-19 15:07:13 +01:00
Holger Vogt
02b4f06f2d
variables like color1 may override thie svg_intopts and svg_stropts.
...
Unsetting the variables will reset to the default.
Malloced colors and cfg.strings will be freed again.
Examples do show more of the options.
2021-03-19 15:06:35 +01:00
Holger Vogt
4b6aa6df6e
more examples
2021-03-16 11:02:54 +01:00
Holger Vogt
bdf50382ac
Add a second call to svg_intopts
2021-03-16 11:02:44 +01:00
Holger Vogt
914604bfab
Update to plotfiles
...
Plotting with gnuplot, png, svg and PostScript files
2021-03-14 15:33:35 +01:00
Holger Vogt
9a82e5061a
Another SVG example input file
2021-03-14 15:33:02 +01:00
Holger Vogt
c7a3fc4401
PostScript example input file
2021-03-14 15:32:56 +01:00
Holger Vogt
2f2db20305
updates for Cygwin/Linux fonts and font size
2021-03-14 15:32:24 +01:00
Holger Vogt
dec865cb30
use feh for plotting *.svg in Cygwin
2021-03-14 15:31:34 +01:00
Holger Vogt
ddf8336bdb
examples for creating svg output and plotting
2021-03-14 15:31:21 +01:00
Holger Vogt
c24d68104f
svg hardcopy example
2021-03-14 15:30:41 +01:00
Holger Vogt
87b59d22a5
add generation of svg graphics file
...
based on patch no. 97 by Giles Atkinson
2021-03-14 15:29:53 +01:00
Holger Vogt
e927fe57af
remove obsolete parameter
2021-02-21 16:48:36 +01:00