Giles Atkinson
c18447f9f5
Add the support files for co-simulation with Verilog code
...
compiled by Verilator. Also add script files to Visual Studio builds
that are already installed by the Makefile builds.
2023-11-27 20:55:59 +00:00
Giles Atkinson
f6f7319792
Add null-pointer checks to some code that crashed when trying
...
to .print results from a non-existent analysis. Also remove the
troublesome .plot and .print lines from two examples.
2023-11-09 12:07:31 +00:00
Brian Taylor
864ef7925c
Add notes on the structure and organization of an external d_process program.
2023-10-28 19:43:50 +02:00
Brian Taylor
5c6b9f03b5
Fix the zero count.
2023-10-28 19:43:41 +02:00
Brian Taylor
1f5f7ae439
Update d_process examples.
2023-10-28 19:43:36 +02:00
Brian Taylor
09f070f582
Error handling improvements in cfunc.mod. Ensure that d_process.h wiil always respond to version and interface checks sent from sendheader. This is needed so that the pipe reads in sendheader do not cause Windows to hang when the interface version and in/out counts do not match. This hang was the cause of errors not being reported and the Windows gui hanging. Startup and header checks are now detected in cm_d_process, and the simulator will run but with runtime errors since a d_process model cannot be completely instantiated after initial errors. It would be good to find a means of gracefully halting the simulation run.
2023-10-28 11:00:33 +02:00
Brian Taylor
4530cde8e2
Use Xspice cm_message_send to report errors rathen than printing to stderr and calling exit. When a d_process model has errors found in start(), sendheader(), and dprocess_exchangedata() these are reported, but if the model is run a SIGINT is raised. There must be a better way of stopping the simulator.
2023-10-28 11:00:18 +02:00
Brian Taylor
182764a894
Add examples/xspice/d_process.
2023-10-28 11:00:12 +02:00
Giles Atkinson
5114d6c2f4
Add an option to the iplot command: -d sets the number of simulation
...
steps before the window is shown. The value can be chosen to
limit rapid resizing when starting and that is used in the PLL examples.
2023-07-15 11:29:32 +02:00
Holger Vogt
a48cc44c7f
Example input file for 'iplot -w' option
2023-05-27 10:46:55 +02:00
Holger Vogt
af9f25e985
Various filter examples using Laplace expression x_fer
2023-01-20 15:07:37 +01:00
Holger Vogt
925dc55a73
rename example file
2022-12-11 15:28:23 +01:00
Holger Vogt
ca1974ff37
Examples moved to folder /various
2022-12-11 15:28:01 +01:00
Holger Vogt
751019b447
Examples for d_pwm and d_osc
2022-12-11 15:27:42 +01:00
Holger Vogt
ec6a902fb9
Fix a bug in simple diode, when ilimit is set, but not epsilon.
...
Make model more similar to LTSPICE
Add an example
2022-10-08 16:50:38 +02:00
Holger Vogt
cb42895dad
example for pwlts source code model
2022-10-07 13:39:33 +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
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
Holger Vogt
afde37c35d
add y-axis label
2022-02-01 12:21:08 +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
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
05624bedd3
move examples file to prpoer xspice folder
2021-08-03 15:53:11 +02:00
Holger Vogt
6c3b14e396
make simulation faster, allow batch mode
2020-03-15 08:50:57 +01:00
Holger Vogt
9dec5f5f1e
An example for non-convergence of the pll if the stepszelimit is removed.
...
Adding a somewhat relaxed limit by TMAX in the tran command will speed
up the simulation by a factor of 1.5 without compromising the result.
2019-03-21 20:26:24 +01:00
Holger Vogt
f46135cc03
script to start GTKWave
2018-10-13 22:47:53 +02:00
dwarning
bd5379d760
one tran analysis is sufficient
2018-09-14 20:34:27 +02:00
Holger Vogt
3138811acd
README for the table model and its table directory
2018-09-02 18:05:10 +02:00
Holger Vogt
925cb49ff2
Add some description, correct minor bugs.
2018-09-02 18:05:06 +02:00
Holger Vogt
800c9711f2
add a flag 'type of the union' to safely free model->param[i]->element,
...
if it contain a malloced string
2018-08-28 21:29:05 +02:00
Holger Vogt
f988dfad93
add plotting to the example
2018-08-27 12:20:30 +02:00
Holger Vogt
9becf1313a
complex model: a script loads two circuits with MOS and
...
bipolar table models, and run a sequence of dc simulations
with switching the circuit.
2018-08-18 11:28:13 +02:00
Holger Vogt
bb86b137a7
add 'reset' to fix a huge memory leak
2018-08-18 11:27:38 +02:00
Holger Vogt
e99985a156
add two commands 'reset' to avoid huge memory leak
2018-08-18 11:27:08 +02:00
Holger Vogt
b0883ffc5d
add the reset command to avoid huge memory leak
2018-08-18 11:26:55 +02:00
Holger Vogt
83db375fe8
add plotting with internal analog plot
...
and gtkwave for digital data
2018-08-10 19:55:52 +02:00
Holger Vogt
e8e5823955
add a hint to run the table generator before
...
simulation is possible
2018-08-10 19:41:02 +02:00
Holger Vogt
c8705147b0
Original examples fixed and moved to here
2018-07-28 13:45:41 +02:00
Holger Vogt
0de66ea3b8
XSPICE state machine example
2018-07-28 12:54:02 +02:00
Holger Vogt
a5e382d0ea
XSPICE d_source examples
2018-07-28 12:52:21 +02:00
Holger Vogt
6e452b1e7c
xspice filesource example
2018-07-28 11:45:33 +02:00
Tim Edwards
6ac19b03a3
examples/xspice/d_lut/mult4bit.spi, example for d_lut and d_genlut
2017-05-01 22:11:50 +02:00
h_vogt
30aa5ec0b7
examples/xspice/table, examples for the table2d and table3d code models
2017-04-30 17:01:07 +02:00
h_vogt
fb90bebcab
example for .options interp (reduces memory, speeds up plotting)
2014-02-01 14:31:38 +01:00
h_vogt
5ed51c2668
example input file as cited in manual
2012-10-21 11:50:23 +02:00
h_vogt
177964b4a6
XSPICE example: delta-sigma converter
2012-08-14 23:06:34 +02:00
h_vogt
5d0c3182d3
add BSIM3 model parameters for loop filer with transistor charge pump
2012-08-05 20:15:53 +02:00
dwarning
96dd397251
correct the plot output
2012-08-05 12:06:11 +02:00