From e881878341d676471dc867265bbc406ecb777948 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 2 Dec 2013 12:18:07 +0100 Subject: [PATCH] Fixed submod for non-cleaned designs --- passes/submod/submod.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/passes/submod/submod.cc b/passes/submod/submod.cc index a92189142..b241f9d09 100644 --- a/passes/submod/submod.cc +++ b/passes/submod/submod.cc @@ -336,8 +336,11 @@ struct SubmodPass : public Pass { } if (module == NULL) log("Nothing selected -> do nothing.\n"); - else + else { + Pass::call_newsel(design, stringf("opt_clean %s", module->name.c_str())); + log_header("Continuing SUBMOD pass.\n"); SubmodWorker worker(design, module, opt_name); + } } log_pop(); -- 2.30.2