kicad/eeschema/sim
Seth Hillbrand 00f93db2ff Convert wide chars before reading model
The PEGTL parser used by KiCad for SPICE models only handles ASCII
characters.  Despite the docs stating that you can, in theory, parse a
UTF-8 character by reading the base string, in pratice this does not
work as the UTF-8 string is represented by unsigned chars and the PEGTL
string is based on signed char.

To work around this, we need to convert micro and mu to the ASCII 'u'
equivalent

Fixes https://gitlab.com/kicad/code/kicad/issues/13642
2023-01-23 15:23:41 -08:00
..
kibis Update simulator with NUMERIC_EVAL, decimal separator processing, etc. 2022-12-05 12:40:29 +00:00
ngspice.cpp Add "all" mode to HSPICE emulation. 2023-01-21 19:32:25 +00:00
ngspice.h Formatting. 2022-12-05 20:03:42 +00:00
ngspice_circuit_model.cpp Support for simulation options in workbook and simulation command dlg. 2023-01-14 00:21:45 +00:00
ngspice_circuit_model.h Correctly parent simulator netlist error dialogs. 2023-01-19 07:59:30 -05:00
sim_lib_mgr.cpp Hold off on one-library-per-SIM_LIB_MGR. It's too risky for 7.0. 2023-01-12 16:29:51 +00:00
sim_lib_mgr.h Hold off on one-library-per-SIM_LIB_MGR. It's too risky for 7.0. 2023-01-12 16:29:51 +00:00
sim_library.cpp Reduce reliance on exception processing -- it's waay too bugy at present. 2023-01-03 17:20:23 +00:00
sim_library.h Reduce reliance on exception processing -- it's waay too bugy at present. 2023-01-03 17:20:23 +00:00
sim_library_kibis.cpp Reduce reliance on exception processing -- it's waay too bugy at present. 2023-01-03 17:20:23 +00:00
sim_library_kibis.h Reduce reliance on exception processing -- it's waay too bugy at present. 2023-01-03 17:20:23 +00:00
sim_library_spice.cpp Reduce reliance on exception processing -- it's waay too bugy at present. 2023-01-03 17:20:23 +00:00
sim_library_spice.h Reduce reliance on exception processing -- it's waay too bugy at present. 2023-01-03 17:20:23 +00:00
sim_model.cpp Convert wide chars before reading model 2023-01-23 15:23:41 -08:00
sim_model.h A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_behavioral.cpp Clearer naming. 2022-12-21 17:03:46 +00:00
sim_model_behavioral.h A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_ideal.cpp Move model inference to SIM_MODEL so it can also be used for behavioral models. 2022-12-09 20:24:25 +00:00
sim_model_ideal.h A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_kibis.cpp Implement fallback models for SPICE .lib models that we can't parse. 2022-12-22 22:35:09 +00:00
sim_model_kibis.h Implement fallback models for SPICE .lib models that we can't parse. 2022-12-22 22:35:09 +00:00
sim_model_l_mutual.cpp Sim: s/SIM_MODEL_MUTUAL_INDUCTOR/SIM_MODEL_L_MUTUAL/ 2022-11-21 05:01:12 +01:00
sim_model_l_mutual.h Sim: s/SIM_MODEL_MUTUAL_INDUCTOR/SIM_MODEL_L_MUTUAL/ 2022-11-21 05:01:12 +01:00
sim_model_ngspice.cpp A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_ngspice.h A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_ngspice_data.cpp Sim: Remove duplicate parameters 2022-11-29 15:02:45 +01:00
sim_model_r_pot.cpp Sim: Remove inference from Reference and Value 2022-11-18 08:39:15 +01:00
sim_model_r_pot.h A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_raw_spice.cpp Allow editing of raw SPICE models through code tab. 2023-01-14 02:43:34 +00:00
sim_model_raw_spice.h Gracefully fall back to raw spice when we can't parse the data. 2022-12-31 18:52:26 +00:00
sim_model_serializer.cpp Rip out parsing of SPICE libraries for netlisting. 2023-01-12 14:51:03 +00:00
sim_model_serializer.h Add number of pulses parameter to pulsed voltage/current sources. 2023-01-06 13:45:56 +00:00
sim_model_source.cpp Add number of pulses parameter to pulsed voltage/current sources. 2023-01-06 13:45:56 +00:00
sim_model_source.h A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_spice.cpp Implement fallback models for SPICE .lib models that we can't parse. 2022-12-22 22:35:09 +00:00
sim_model_spice.h Implement fallback models for SPICE .lib models that we can't parse. 2022-12-22 22:35:09 +00:00
sim_model_spice_fallback.cpp A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_spice_fallback.h A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_subckt.cpp Add reference material to SPICE model pin assignment tab. 2022-12-31 18:52:26 +00:00
sim_model_subckt.h Add reference material to SPICE model pin assignment tab. 2022-12-31 18:52:26 +00:00
sim_model_switch.cpp Sim: Universally initialize enum parameters with their default values 2022-11-30 12:45:59 +01:00
sim_model_switch.h A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_tline.cpp Sim: Remove inference from Reference and Value 2022-11-18 08:39:15 +01:00
sim_model_tline.h A fall-back model for FOO should supply FOO's pin names. 2023-01-19 12:14:50 +00:00
sim_model_xspice.cpp Sim: Spice netlist exporter rewrite 2022-07-30 02:25:34 +00:00
sim_model_xspice.h Sim: Spice netlist exporter rewrite 2022-07-30 02:25:34 +00:00
sim_panel_base.cpp Support for simulation options in workbook and simulation command dlg. 2023-01-14 00:21:45 +00:00
sim_panel_base.h Support for simulation options in workbook and simulation command dlg. 2023-01-14 00:21:45 +00:00
sim_plot_colors.cpp Eeschema,sim: extract plot colors to new class 2021-03-01 18:50:37 +00:00
sim_plot_colors.h Eeschema,sim: extract plot colors to new class 2021-03-01 18:50:37 +00:00
sim_plot_frame.cpp Remove unused var and cleanup 2023-01-20 13:26:11 -08:00
sim_plot_frame.h Add context menu for simulation cursors. 2023-01-19 12:50:21 +00:00
sim_plot_frame_base.cpp Add context menu for simulation cursors. 2023-01-19 12:50:21 +00:00
sim_plot_frame_base.fbp Add context menu for simulation cursors. 2023-01-19 12:50:21 +00:00
sim_plot_frame_base.h Add context menu for simulation cursors. 2023-01-19 12:50:21 +00:00
sim_plot_panel.cpp Support for simulation options in workbook and simulation command dlg. 2023-01-14 00:21:45 +00:00
sim_plot_panel.h Support for simulation options in workbook and simulation command dlg. 2023-01-14 00:21:45 +00:00
sim_property.cpp If we don't recognize a var then it's an error, not 0.0. 2022-12-27 13:50:44 +00:00
sim_property.h Only eval numeric properties. 2022-12-27 13:50:44 +00:00
sim_types.h Fix more broken Doxygen comment specifiers. 2021-01-26 12:17:52 -05:00
sim_value.cpp Simulation bug fixes. 2022-12-19 18:14:13 +00:00
sim_value.h Formatting and CLang-Tidy warning reduction. 2022-12-19 13:51:49 +00:00
sim_workbook.cpp Don't run simulation twice when the sim command is overridden. 2022-12-07 01:34:56 +00:00
sim_workbook.h Support for simulation options in workbook and simulation command dlg. 2023-01-14 00:21:45 +00:00
simulator.h Remove GUI calls from netlisting. 2022-11-18 15:29:16 +00:00
spice_generator.cpp Gracefully fall back to raw spice when we can't parse the data. 2022-12-31 18:52:26 +00:00
spice_generator.h Update simulator with NUMERIC_EVAL, decimal separator processing, etc. 2022-12-05 12:40:29 +00:00
spice_grammar.h Allow vector param values. 2023-01-13 21:59:06 +00:00
spice_library_parser.cpp Reduce reliance on exception processing -- it's waay too bugy at present. 2023-01-03 17:20:23 +00:00
spice_library_parser.h Reduce reliance on exception processing -- it's waay too bugy at present. 2023-01-03 17:20:23 +00:00
spice_model_parser.cpp Sim: Fix crash when a field tries to set an inexistent parameter 2022-10-12 04:27:48 +02:00
spice_model_parser.h Sim: LTspice model compat: Ignore spurious values 2022-10-04 22:44:26 +02:00
spice_reporter.h
spice_settings.cpp sim GUI: remove "Adjust value" checkbox. 2022-12-03 08:28:43 +00:00
spice_settings.h sim GUI: remove "Adjust value" checkbox. 2022-12-03 08:28:43 +00:00
spice_simulator.cpp simulator: remove unused includes, and reorder a few includes to fix conflicts 2022-11-16 10:09:54 +01:00
spice_simulator.h eeschema,sim: add SIMULATOR and SIM_MODEL interface 2022-04-01 19:28:31 +00:00
spice_value.cpp Revert "Reorder includes is some simulator files to fix issues on msys2 (no code change)" 2022-11-12 20:47:36 +01:00
spice_value.h Fix more broken Doxygen comment specifiers. 2021-01-26 12:17:52 -05:00