Brian Taylor
e533079954
Merge branch 'pre-master' into bt_dev
2022-11-06 10:14:06 -08:00
Holger Vogt
9bab229e7b
We are developing towards ngspice-39
2022-11-06 11:31:21 +01:00
Holger Vogt
5bf6894d58
Add info on new function ngCM_Input_Path
2022-11-06 11:30:00 +01:00
Brian Taylor
3037aa2838
Merge branch 'pre-master' into bt_dev
2022-10-26 19:34:42 -07:00
Holger Vogt
159e36d23b
Add function
...
char* ngCM_Input_Path(const char* path);
to shared ngspice API
to send file path for code model input files (e.g. dsource).
Such path cannot be extracted automatically when netlist has
been sent by ngSpice_Circ
2022-10-26 23:34:10 +02:00
Brian Taylor
9f740ea88a
Move f_logicexp, f_pindly calls to u_process_instance. Use u_add_instance to copy gate instances and models to the replacement cards.
2022-10-21 22:14:41 -07:00
Brian Taylor
4f128bb529
Initial logicexp parser and gate generator.
2022-10-21 15:21:18 -07:00
Holger Vogt
3864edb941
Typo
2022-10-19 12:25:00 +02:00
Holger Vogt
ce82fb22e2
prepare ngspice-38
2022-10-17 20:32:06 +02:00
Giles Atkinson
118b997642
Add two functions to the Code Model Library: cm_get_node_name()
...
makes circuit node names available to diagnostics, while
cm_probe_node() is needed for a bidirectional A/D bridge.
2022-09-23 13:15:07 +02:00
Holger Vogt
8dba70c7cc
add parameter description
2022-09-18 11:10:59 +02:00
Giles Atkinson
148cecf919
Insert XSPICE bridging devices automatically when an analogue node
...
has the same name as an XSPICE event node (including digital nodes).
The function Evtcheck_nodes() is replaced by a new version in its
own file.
2022-08-31 15:33:59 +02:00
Brian Taylor
15d987ad0f
Check for name collisions between nodes generated during translation from Pspice to Xspice and instance pin or subckt port names. These are reported as ERRRORs.
2022-08-06 10:42:43 +02:00
Holger Vogt
eee07be10d
Improve (a little) the plotting of digital data with plot option digiplot:
...
Repair scaling on MS Windows:
Suppress y axis lettering and unit:
Allow or dis-allow grid.
2022-07-20 15:11:51 +02:00
Holger Vogt
86dedbd1f5
Add a new function char* gettok_np(char** s)
...
which finds a token, while scanning over (), like
they were white spaces. It also proceeds with s while
still finding (), (which gettok_noparens does not do).
2022-07-06 18:43:48 +02:00
Brian Taylor
b64f684a62
Remove debug code.
2022-07-01 15:55:00 +02:00
Brian Taylor
a7b6cb9af7
Create pin and port lists only when variable ps_pins_and_ports is set != 0.
2022-07-01 15:54:08 +02:00
Brian Taylor
55a5c0cb0a
Generate lists of subckt ports indicating direction (in, out, inout.)
2022-07-01 15:52:01 +02:00
Brian Taylor
701ed7beb0
Replace Pspice U* and .model cards with their Xspice equivalent statements. There are still memory leaks which will be plugged next. The .subckts have only digital ports, which will need to addressed for mixed A/D designs.
2022-07-01 15:50:22 +02:00
Brian Taylor
4de648c8de
Trial run at scanning cards for Pspice U* devices and models. #define INTEGRATE_UDEVICES to turn it on. No new cards are created yet, just lots of debugging info.
2022-07-01 15:49:39 +02:00
Brian Taylor
5b332a1aba
Initial files for translating Pspice u.. instances and timing models into Xspice equivalents. Standard gates, tristate gates, dff, jkff, dlatch are supported. Compound gates and pullup/down are not done. Makefile and frontend/inpcom.c changes have not been finished. These modifications will be needed to complete integration.
2022-07-01 15:48:43 +02:00
holger
72d3f12ab5
add new header spardefs.h to noinst_HEADERS
2022-05-16 16:30:26 +02:00
Holger Vogt
1140af3e8b
Prepare ngspice-37
2022-05-16 16:30:09 +02:00
Holger Vogt
cf62c69aef
remove numerous unsigned int vs. int warnings
...
by setting all variables to type int.
Remove redundant function declarations by remmoving some includes
in span.c and vsrcdefs.h
In tmalloc convert int to size_t
2022-04-29 23:22:05 +02:00
Holger Vogt
7703c2d370
Add a function itoa10 and use it
...
instead of non-standard itoa.
2022-04-25 13:35:23 +02:00
Holger Vogt
ae221a70c2
Remove a typo: runable --> runnable
2022-04-15 10:52:56 +02:00
Alessio Cacciatori
abd5b5ea04
S-parameters in ngspice
...
With this commit the patch provided by Alessio Cacchiatori the S-parameter is completed:
Noise simulation added with C matrix output
Y and Z matrix output enabled
To allow compiling with gcc, the dense.h inline functions have been put into denseinlines.h
2022-03-29 09:06:10 +02: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
0eb272243f
Enable RKM notation also for inductors (e.g. 1u2 for 1.2u)
2022-02-07 16:00:29 +01:00
Holger Vogt
4f82a24df2
Add parameter 'isgrid' to plotting of arcs.
...
Smithgrid and polar plots could not discern between xgridwidth and
xbrushwidth. This is now available, similar to straight line plotting.
Tested also for PS and SVG.
2022-02-01 12:23:29 +01:00
Holger Vogt
64dba93b93
We are now developing ngspice-36+
2022-01-09 11:57:05 +01:00
Holger Vogt
f0e9a35eb6
Add 'esave' command to save only specific event nodes.
...
Add a prompt for esave/eprint/eprvcd.
2022-01-09 10:58:38 +01:00
Holger Vogt
cb0d8f18dc
Prepare for ngspice-36
2021-12-18 13:47:43 +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
e93a19e3e8
Allow math characters in node names
...
Add a function ft_getpnames_quotes()
It puts quotes " around tokens xxx, when these are enclosed as
V(xxx) and contain arithmetic characters. V(R*C) becomes
V("R*C"). After settig up the parse tree, the quotes are removed again.
Thus these math character remain part of the node name and are not
parsed as parts of an equation.
2021-12-13 21:41:16 +01:00
Holger Vogt
90377dcff9
struct TSKtask: group all single bit fields together
2021-12-13 21:40:38 +01:00
Brian Taylor
38848259e4
With the ngspice gnuplot command, enable x/y contour plots for 2d Cider save file data. Usage: gnuplot <file> xycontour <expr>. xycontour is a new flag which is ignored if the plot data is not from 2d Cider. For contours, only a single plotarg <expr> is allowed. With <expr1> vs <expr2>, only <expr1> is plotted and <expr2> is ignored.
2021-10-30 13:21:32 +02:00
Holger Vogt
7c38699cd7
Add missing function nghash_delete_special(),
...
developed for branch gc-local
2021-10-30 10:39:19 +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
5d116d1fb9
command listing: add option r (runable)
...
listing r > $inputdir/mycirc_runable.cir
will save the expanded netlist without line numbers,
ready to be sourced again and run in ngspice.
2021-09-29 20:29:26 +02:00
Holger Vogt
493cf73f7f
optran is only selected when the 'optran' command has been processed.
...
If not, the call to the OPtran() function returns the previous
'converged' value.
2021-09-29 20:12:52 +02:00
Holger Vogt
df0792818f
Transient op calculation added to the standard operating point code.
...
When standard iteration, gmin stepping and source stepping fail,
try a transient simulation (like tran with uic option) to
determine the op. Implemented for AC and Tran simulation.
2021-09-29 20:00:29 +02:00
Holger Vogt
9a2d968577
When transferring boolean data over the ABI, keep them as boolean types, not integer
...
Replace the type of all boolean variables around the ABI by NG_BOOL.
NG_BOOL is typedefed to _Bool, when compiling shared ngspice. When
sharedspice.h is use externally NG_BOOL is typdefed to bool
2021-08-03 15:57:58 +02:00
Holger Vogt
4feb43e067
Prepare ngspice-35
2021-07-22 20:38:08 +02:00
Holger Vogt
8eeb924460
CIDER: Enable printing either binary or ascii data output to file.
...
Patch provided by Brian Taylor, see
(https://sourceforge.net/p/ngspice/mailman/message/37309841/ )
2021-07-05 14:31:21 +02:00
Holger Vogt
03517ae86c
Define the function DevFinalize as used in the previous commit.
2021-07-05 14:22:55 +02:00
Holger Vogt
a6079781ea
Fix previous commit, enable name upgrade for Linux and other non-Win OSs
2021-07-05 14:22:10 +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
f8357dad88
Prepare Cshunt: add a cpacitor to each voltage node
...
Function inppas4() will add the extra caps, to be done.
2021-07-02 11:52:15 +02:00
Holger Vogt
4bee26b8b9
Remove unused prototype
2021-07-02 11:45:11 +02:00