Holger Vogt
c9eeb0ceea
Modify get_number_terminals() and make it non-static.
Use modified function to replace fixed node number.
5 years ago
Holger Vogt
b640e57c39
re-enable getting correct node numbers for bipolar
using TSMC cv018bcd
5 years ago
Holger Vogt
273b0fb4a3
fix a plotting bug with xlog axis and ylabels
5 years ago
Holger Vogt
822a63974f
Unused binning models are removed.
Flag 'nf', when given on the x lines, is
recognized.
Tested with TSMC, Skywater, and X-Fab model
files.
5 years ago
Holger Vogt
e601325149
Avoid any buffer overflow if user provides a large TABLE:
Replace fixed length strings and fcn 'cat' by dstrings.
5 years ago
Holger Vogt
059e869754
free the wordlist wle to avoid memory leaks
5 years ago
Holger Vogt
02630c0af2
fix a bug in printing the compatibility status
5 years ago
Holger Vogt
5af7f0ff78
sort instance list entries: RHS numbers (like nf=2) come first,
expression then follow.
5 years ago
Holger Vogt
4a6fff05b6
typo
5 years ago
Holger Vogt
0d4685f459
preliminarily turn off fcn nlist_model_find()
to avoid compiler warning
5 years ago
Holger Vogt
94eac89749
Remove 'comment out any unused models' for now, it
has been working, but led to spurious error messages.
Has to be checked more thoroughly.
Add a ngbehaviour setting 'mc', needed for running
'make check'. It will unset all other compatibility modes
and suppress the note on compatibility settings which
led to a 'make check' failure just due to its printout.
5 years ago
Holger Vogt
1234c3bdf8
Update to the compatibility mode:
Rename new_compat_mode() to set_compat_mode().
Add fcn print_compat_mode() to print out
the selected compatibility mode.
5 years ago
Holger Vogt
164d3dd20c
Enable models with parens by using gettok_parens() like
.model NP NPN(BF=125 Cje=.5p Cjc=.5p Rb=500)
5 years ago
Holger Vogt
9485a51928
Re-enable the 'hardcopy' command
Fixes support-requests #53 by Paolo M.
5 years ago
Holger Vogt
70d1647cfa
Update to ps .model selection for MOS,
add support for bipolar (Mextram, lateral pnp),
enable 'level = nn' (with spaces).
5 years ago
Holger Vogt
3c354092ff
Line endings from \r\n to \n
5 years ago
Holger Vogt
8602915942
level for ekv2.6 is 44
5 years ago
Holger Vogt
50ec89e284
PS compatibility: select appropriate level for MOS models
5 years ago
Holger Vogt
a147a3b190
If we encounter tc1= or tc2= (temp coeffs.) or m= (multiplier),
the expression is done, thus keeping the brackets as is.
Enables tcx={} or m={} with their own expressions, dealt with
by numparam.
5 years ago
Holger Vogt
98eb5bf475
bug #537 : remove memcopy with overlapping strings
Bug reported by Ronan BARZIC
5 years ago
Holger Vogt
86f5a9b819
Only print the devices that are really used in the circuit
(don't print the 0 occurencies).
5 years ago
Holger Vogt
e8aea4967c
Remove some compiler warnings
5 years ago
Holger Vogt
2359f28812
Remove compiler warning
cast between incompatible function types from
‘void (*)(int, int)’ to ‘void (*)(int)’
5 years ago
Holger Vogt
7bd12a60a6
Enable multiplier 'm' for behavioral resistor
(R using a B source).
5 years ago
Holger Vogt
014dfe1b7b
The old inp_deckcopy() is a safer way of copying, while retaining
the correct line numbers for parameter substitution.
5 years ago
Holger Vogt
b1d062668c
When there is no model found, and we have an m devices,
set the number of nodes to 4. This has to be fixed (find
a way to detect the number of nodes automatically).
5 years ago
Holger Vogt
b0a2ab5729
A FIXME: The number of nodes is fixed to 4!
Better make this flexible, but how to detect this number safely?
5 years ago
Holger Vogt
5366f946eb
Remove more compiler warnings
5 years ago
Holger Vogt
238f8d393a
Suppress some compiler warnings
5 years ago
Holger Vogt
3c2f6585e0
Add some comment.
5 years ago
Holger Vogt
e1eb851ec4
Add function rem_unused_mos_models()
Netlist is flat at this stage, all numbers expanded,
but not yet parsed into the circuit structure.
So again try to remove unused MOS models.
All binning models are still here when w or l have been
determined by an expression from within the PDK.
5 years ago
Holger Vogt
19fb3ec38f
make some functions non-ststic to support function
rem_unused_mos_models() in inps.c
5 years ago
Holger Vogt
5ee6a98e4b
Add a comment
5 years ago
Holger Vogt
043634b60e
Jump over the HSPICE-specific key words
5 years ago
Holger Vogt
8c253524af
With the new inp_deckcopy_ln treat the first line
in the deck equal to all other lines.
5 years ago
Holger Vogt
8b376b4581
Remove dot lines somewhat later.
5 years ago
Holger Vogt
777cfcf477
Reduce the memory requirements if there is a PDK with
a lot of binning models.
This is a hack and needs testing!
inpcom.c: If an x line, add w and l to the netlist card,
if available.
subckt.c: select a suitable model bin, discard the rest
for each subcircuit, depending on w and l from above.
inpgmod.c: less restrictive equal for real numbers,
allow both min and max boundaries (problem of equating
real numbers), when the selected device has w or l on
the boundary between two model bins.
5 years ago
Holger Vogt
79d6f27d74
fix a typo
5 years ago
Holger Vogt
9072f40b9a
bug 535: re-enale tc1, tc2 even if tokens tc1 or tc2
may be part of other tokens as well.
5 years ago
Holger Vogt
aee35e6ef3
No brackets around instance parameters dtemp, temp
5 years ago
Holger Vogt
fe24a4135c
spice2g6 poly(19 compat:
When counting token, count an expression {...} for the
gain as a single token, even if it contains spaces.
5 years ago
Holger Vogt
c43c6f6ca4
improve comment
5 years ago
Holger Vogt
d24aa7134c
E_constant Vconst 0 TABLE {Max(V(DP)-V(GN),0)}=((20,120))
Allow such strange construct, where a single pair x,y will
simplay return a constant y (120 in the above example).
This is used in external devices models and aknowledged
by other simulators.
5 years ago
Holger Vogt
025a9fe599
Partially undo commit [ab778d] :
revert to aswitch as vswitch replacement
5 years ago
Holger Vogt
87751ad073
Make the ngSpice_Circ(char** circa) more robust:
Error message when .end card is missing
Reset if .end card is missing, to allow loading
a netlist again.
NULL as last element is no longer required, but .end card
(this has been implicitedly assumed).
Remove a bug that skippoed the last line (the .end card).
5 years ago
Holger Vogt
2d34cbddf8
re-write and simplify the tc1, tc2 code for behavioral
R, L, C lines invoking the B source.
Enable parameterization of the TCs.
Create a tc string in an extra function, add this string
to the new R, L, C line.
5 years ago
Holger Vogt
1ef4115578
In a command 'meas tran teval when v(2)=1' the rhs
should be treated as a number '1', not as a vector v(1)
5 years ago
Holger Vogt
6055fda73d
spaces
5 years ago
Holger Vogt
5c4af54be1
Windows.h -> windows.h
5 years ago
Holger Vogt
44b8498d63
prevent a crash when e,g,f,h sources do not have enough paramaters.
5 years ago