summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/prg/nltool.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2020-05-14 11:58:42 +0200
committer couriersud <couriersud@gmx.org>2020-05-15 13:09:22 +0200
commit88edd7c665358de5c23d42637e4c17f878c1e275 (patch)
tree836d3f2d3c71850019522f98341948e8de43e7f5 /src/lib/netlist/prg/nltool.cpp
parentd01c23cdc8f0291d7f65ca9f55c927d80836b313 (diff)
netlist: code cleanup and development stage tristate [Couriersud]
Code cleanup to better separate the following stages: - parsing - setup - run In addition preliminary native tristate support was added. Not yet production ready, please don't use it.
Diffstat (limited to 'src/lib/netlist/prg/nltool.cpp')
-rw-r--r--src/lib/netlist/prg/nltool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/netlist/prg/nltool.cpp b/src/lib/netlist/prg/nltool.cpp
index b88d3a41c73..0ac02df201c 100644
--- a/src/lib/netlist/prg/nltool.cpp
+++ b/src/lib/netlist/prg/nltool.cpp
@@ -446,9 +446,10 @@ void tool_app_t::run()
opt_logs(),
m_defines, opt_rfolders(), opt_includes());
+ // Inputs must be read before reset -> will clear setup and parser
+ inps = read_input(nt.setup(), opt_inp());
nt.exec().reset();
- inps = read_input(nt.setup(), opt_inp());
ttr = netlist::netlist_time_ext::from_fp(opt_ttr());
}