From 857a567cff6d9a44c7d7635933a959cf83bf5fec Mon Sep 17 00:00:00 2001 From: joern274 Date: Fri, 1 Mar 2024 16:43:43 +0100 Subject: [PATCH] test output whether all simulated modules are found --- .../src/netlist_simulator_controller.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/simulator/netlist_simulator_controller/src/netlist_simulator_controller.cpp b/plugins/simulator/netlist_simulator_controller/src/netlist_simulator_controller.cpp index 124f45bf845..7f0ccfe5051 100644 --- a/plugins/simulator/netlist_simulator_controller/src/netlist_simulator_controller.cpp +++ b/plugins/simulator/netlist_simulator_controller/src/netlist_simulator_controller.cpp @@ -884,6 +884,7 @@ namespace hal for (const Gate* g: mSimulationInput->get_gates()) { Module* m = g->get_module(); + // test all parent modules whether gates are contained in simulation while (m) { auto it = containedModules.find(m); @@ -899,6 +900,11 @@ namespace hal m = m->get_parent_module(); } } + for (const auto &it : containedModules) + { + if (it.second.empty()) + std::cerr << it.first->get_id() << " mod simulated <" << it.first->get_name() << ">" << std::endl; + } } void NetlistSimulatorController::add_gates(const std::vector& gates)