From b8abf143767c2f8c635de1352bb43ed37e781f96 Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 9 Mar 2020 14:34:22 +0000 Subject: Add ScriptPass::run_nocheck and use for abc9 Signed-off-by: David Shah --- kernel/register.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'kernel/register.cc') diff --git a/kernel/register.cc b/kernel/register.cc index e59d59654..af8c1b8e8 100644 --- a/kernel/register.cc +++ b/kernel/register.cc @@ -400,6 +400,18 @@ void ScriptPass::run(std::string command, std::string info) } } +void ScriptPass::run_nocheck(std::string command, std::string info) +{ + if (active_design == nullptr) { + if (info.empty()) + log(" %s\n", command.c_str()); + else + log(" %s %s\n", command.c_str(), info.c_str()); + } else { + Pass::call(active_design, command); + } +} + void ScriptPass::run_script(RTLIL::Design *design, std::string run_from, std::string run_to) { help_mode = false; -- cgit v1.2.3