diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-09-02 03:28:46 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-09-02 03:28:46 +0200 |
commit | 9f00a0cd2d972a5fc4a75f8c1bdba723a5f66b7d (patch) | |
tree | 638bcf562c3b8c8ede8c93b324e4930382e02d86 /passes/cmds | |
parent | 630befdf6d58ab5f7c4ca1ea77c86df7b88ee259 (diff) | |
download | yosys-9f00a0cd2d972a5fc4a75f8c1bdba723a5f66b7d.tar.gz yosys-9f00a0cd2d972a5fc4a75f8c1bdba723a5f66b7d.tar.bz2 yosys-9f00a0cd2d972a5fc4a75f8c1bdba723a5f66b7d.zip |
Using "xdot" instead of "yosys-svgviewer" in show command
Diffstat (limited to 'passes/cmds')
-rw-r--r-- | passes/cmds/show.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc index 3468eae78..6ab0e1ba1 100644 --- a/passes/cmds/show.cc +++ b/passes/cmds/show.cc @@ -751,8 +751,8 @@ struct ShowPass : public Pass { if (worker.page_counter == 0) log_cmd_error("Nothing there to show.\n"); - if (format != "dot") { - std::string cmd = stringf("dot -T%s -o '%s' '%s'", format.empty() ? "svg" : format.c_str(), out_file.c_str(), dot_file.c_str()); + if (format != "dot" && !format.empty()) { + std::string cmd = stringf("dot -T%s -o '%s' '%s'", format.c_str(), out_file.c_str(), dot_file.c_str()); log("Exec: %s\n", cmd.c_str()); if (system(cmd.c_str()) != 0) log_cmd_error("Shell command failed!\n"); @@ -765,8 +765,7 @@ struct ShowPass : public Pass { log_cmd_error("Shell command failed!\n"); } else if (format.empty()) { - std::string svgviewer = proc_self_dirname() + "yosys-svgviewer"; - std::string cmd = stringf("fuser -s '%s' || '%s' '%s' &", out_file.c_str(), svgviewer.c_str(), out_file.c_str()); + std::string cmd = stringf("fuser -s '%s' || xdot '%s' < '%s' &", dot_file.c_str(), dot_file.c_str(), dot_file.c_str()); log("Exec: %s\n", cmd.c_str()); if (system(cmd.c_str()) != 0) log_cmd_error("Shell command failed!\n"); |