netlist: Disable dangerous optimization.

* This was an over-aggressive optimization. Now prints an info and
recommends to comment out if appropriate.
This commit is contained in:
couriersud 2020-08-01 18:25:37 +02:00
parent d876f4cd82
commit 15172f15ca
2 changed files with 4 additions and 1 deletions

View File

@ -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")

View File

@ -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
}
}