Jeff Young
80340c607c
ADDED noise simulation GUI.
2 years ago
Jeff Young
03486443c7
Fix more SPICE case-insensitivity bugs.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14793
2 years ago
Jeff Young
5bda3b99f9
Handle single-token flag parameters.
Also fixes a bug where all VDMOS instance parameters weren't marked as
instance parameters.
Also fixes a bug where VDMOS thermal models weren't supported (they
have two extra pins: Tj and Tcase).
3 years ago
Jeff Young
9dc16eb014
Don't include non-overridden parameters in Sim.Params.
Fixes https://gitlab.com/kicad/code/kicad/issues/14369
3 years ago
Jeff Young
68fe146861
Remove most of SIM_VALUE in favour of good old wxString.
This allows us to save the user's intent, including units, formatting,
and crucially variable references.
3 years ago
Jeff Young
6bc89ee180
Don't disable run when there's no command: just ask for a command.
3 years ago
Jeff Young
d839f11d49
Rip out parsing of SPICE libraries for netlisting.
We only need to parse the libraries for the Sim Model Editor dialog
(so that we can determine the models to put in the popup). Doing it
for netlisting just opens us up to incorrectly parsing the SPICE, and
returns no value.
This also means that a SIM_LIB_MGR manages a single library, and
never multiple libraries.
This also allows the tidying-up of some error reporting structures to
better inform the user what went wrong.
Fixes https://gitlab.com/kicad/code/kicad/issues/13431
3 years ago
Jeff Young
4d7642a26c
Add number of pulses parameter to pulsed voltage/current sources.
Also don't suppress writing "0" valued parameters.
Fixes https://gitlab.com/kicad/code/kicad/issues/13401
Fixes https://gitlab.com/kicad/code/kicad/issues/13402
3 years ago
Jeff Young
7af718f1a5
Don't use std::string for things with wxString APIs.
It's too bug-prone.
Fixes https://gitlab.com/kicad/code/kicad/issues/13380
3 years ago
Jeff Young
e64852c833
Clearer naming.
3 years ago
jean-pierre charras
8e4911bba2
Simulation: make a few errors thrown from PEGTL a bit more understandable.
3 years ago
Jeff Young
50ccc4e6da
Fix issue converting legacy SPICE models.
1) if a legacy model references a library then we need to see if said
libraray exists and read model from it if so
2) legacy node ordering is by index, not pin name
3) we can't auto-generate a pin map when we don't know the pin names,
so don't try
3 years ago
Jeff Young
ca5c0e2ac5
Fix typo.
Fixes https://gitlab.com/kicad/code/kicad/issues/13137
3 years ago
Mikolaj Wielgus
e39c0b20ea
Sim: Universally initialize enum parameters with their default values
3 years ago
Mikolaj Wielgus
39cd9f8980
Sim: Fix Sim.Params field generation logic
Don't generate the first parameter (e.g. for KIBIS it was 'vcc=""') when
it is empty in models without primary value.
3 years ago
Mikolaj Wielgus
6d5cc9e606
Sim: Sort the generated Sim.Pins by symbol pin numbers
They were sorted by model pin numbers, which weren't the keys in the
key=value pairs generated into Sim.Pins.
3 years ago
Mikolaj Wielgus
a65b35107d
Sim: Make Sim.Pins have key-value pairs instead of a sequence
Moreover, upgrade models on schematic load instead of on model load
3 years ago
Mikolaj Wielgus
23480cdee3
Sim: Make empty Sim.Params mean storing primary value in Value
3 years ago
Mikolaj Wielgus
6969362813
Sim Model Editor: Don't provide library-only models as builtins
3 years ago
Mikolaj Wielgus
e7c43ca20a
Sim: Remove inference from Reference and Value
3 years ago
Mikolaj Wielgus
ce3362ee12
Sim: Don't write inherited model params to symbol fields
3 years ago
Mikolaj Wielgus
f33cd3e383
Sim: Remove vestiges of (de)serialization from SIM_MODEL
3 years ago
Mikolaj Wielgus
490069c5e6
Move (de)serialization of models into fields to new SIM_SERDE class
3 years ago