abc9: add time as last script command
authorEddie Hung <eddie@fpgeh.com>
Wed, 8 Jan 2020 18:55:44 +0000 (10:55 -0800)
committerEddie Hung <eddie@fpgeh.com>
Wed, 8 Jan 2020 18:55:44 +0000 (10:55 -0800)
passes/techmap/abc9.cc

index d03c24fdbd5f272d79b46b4247218bde63107241..652ccafaf122976b58e8b45ce1f117159aecf33b 100644 (file)
@@ -302,7 +302,7 @@ void abc9_module(RTLIL::Design *design, RTLIL::Module *module, std::string scrip
                for (size_t pos = abc9_script.find("&mfs"); pos != std::string::npos; pos = abc9_script.find("&mfs", pos))
                        abc9_script = abc9_script.erase(pos, strlen("&mfs"));
 
-       abc9_script += stringf("&ps -l; &write -n %s/output.aig", tempdir_name.c_str());
+       abc9_script += stringf("&ps -l; &write -n %s/output.aig; time", tempdir_name.c_str());
        abc9_script = add_echos_to_abc9_cmd(abc9_script);
 
        for (size_t i = 0; i+1 < abc9_script.size(); i++)