diff options
author | 2020-08-01 18:25:37 +0200 | |
---|---|---|
committer | 2020-08-01 18:27:19 +0200 | |
commit | 15172f15ca9543611ee2e180ea0e492a0449d791 (patch) | |
tree | d5640a3c8881e76bb5a1d070257abbeace61a8f1 /src | |
parent | d876f4cd824ac7d2ad4419ec3a1a2e7bbe6919bc (diff) |
netlist: Disable dangerous optimization.
* This was an over-aggressive optimization. Now prints an info and
recommends to comment out if appropriate.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/netlist/nl_errstr.h | 2 | ||||
-rw-r--r-- | src/lib/netlist/nl_setup.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/netlist/nl_errstr.h b/src/lib/netlist/nl_errstr.h index 52746d29b03..983c2972743 100644 --- a/src/lib/netlist/nl_errstr.h +++ b/src/lib/netlist/nl_errstr.h @@ -111,7 +111,7 @@ namespace netlist "but has been forced to act as a logic output. Parameter " " FORCE_TRISTATE_LOGIC for device {2} needs to be disabled!.") - PERRMSGV(MI_REMOVE_DEVICE_1_CONNECTED_ONLY_TO_RAILS_2_3, 3, "Found device {1} connected only to railterminals {2}/{3}. Will be removed") + PERRMSGV(MI_REMOVE_DEVICE_1_CONNECTED_ONLY_TO_RAILS_2_3, 3, "Found device {1} connected only to railterminals {2}/{3}. Please consider commenting those out.") PERRMSGV(MW_DATA_1_NOT_FOUND, 1, "unable to find data {1} in sources collection") diff --git a/src/lib/netlist/nl_setup.cpp b/src/lib/netlist/nl_setup.cpp index a83723e00d6..46b04d902dc 100644 --- a/src/lib/netlist/nl_setup.cpp +++ b/src/lib/netlist/nl_setup.cpp @@ -1593,9 +1593,12 @@ void setup_t::prepare_to_run() { log().info(MI_REMOVE_DEVICE_1_CONNECTED_ONLY_TO_RAILS_2_3( t->name(), t->N().net().name(), t->P().net().name())); + // The following would remove internal devices in e.g. MOSFETs as well. +#if 0 remove_terminal(t->setup_N().net(), t->setup_N()); remove_terminal(t->setup_P().net(), t->setup_P()); m_nlstate.remove_device(t); +#endif } } |