diff options
author | 2020-07-05 15:49:59 +0200 | |
---|---|---|
committer | 2020-07-05 15:49:59 +0200 | |
commit | e339a280f4292aa3dc74baffb0c8a22018a14711 (patch) | |
tree | f0b33f8fe51a18ab96d213d166af7b66acbf4ebc /src/lib/netlist/prg/nltool.cpp | |
parent | 9e86f5e86612c4f61b27e5ada86ac9bdebcbc272 (diff) |
netlist: remove soft reset support.
* Electronic circuits and base components like resistors or capacitors
do not have a reset line. You can use them to create reset circuits.
There is thus no point to support soft reset, the equivalent to pressing
the reset button.
* Fixed some bugs around reset and start up logic.
* This also fixes the "scramble F3" crash.
Diffstat (limited to 'src/lib/netlist/prg/nltool.cpp')
-rw-r--r-- | src/lib/netlist/prg/nltool.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp index d849e15c755..a4946c00d3e 100644 --- a/src/lib/netlist/prg/nltool.cpp +++ b/src/lib/netlist/prg/nltool.cpp @@ -478,6 +478,7 @@ void tool_app_t::run() // Inputs must be read before reset -> will clear setup and parser inps = read_input(nt.setup(), opt_inp()); + nt.free_setup_resources(); nt.exec().reset(); ttr = netlist::netlist_time_ext::from_fp(opt_ttr()); @@ -608,6 +609,7 @@ void tool_app_t::compile_one_and_add_to_map(const pstring &file, // need to reset ... + nt.free_setup_resources(); nt.exec().reset(); auto mp(nt.exec().solver()->create_solver_code(target)); |