diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-02-15 22:53:41 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-02-15 22:53:41 +0100 |
commit | 0283703f9e6855226bece8d36567d292bd69b188 (patch) | |
tree | d10b8d214330b77916f5746b548625eb0237117f /passes | |
parent | 549d56bd213b95774cd625abfadf411c6561eea8 (diff) | |
download | yosys-0283703f9e6855226bece8d36567d292bd69b188.tar.gz yosys-0283703f9e6855226bece8d36567d292bd69b188.tar.bz2 yosys-0283703f9e6855226bece8d36567d292bd69b188.zip |
Added Viz to yosys.js
Diffstat (limited to 'passes')
-rw-r--r-- | passes/cmds/show.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc index 63da29b94..4d6095e55 100644 --- a/passes/cmds/show.cc +++ b/passes/cmds/show.cc @@ -650,9 +650,14 @@ struct ShowPass : public Pass { std::vector<std::pair<std::string, RTLIL::Selection>> color_selections; std::vector<std::pair<std::string, RTLIL::Selection>> label_selections; +#ifdef EMSCRIPTEN + std::string format = "dot"; + std::string prefix = "show"; +#else std::string format; - std::string viewer_exe; std::string prefix = stringf("%s/.yosys_show", getenv("HOME") ? getenv("HOME") : "."); +#endif + std::string viewer_exe; std::vector<std::string> libfiles; std::vector<RTLIL::Design*> libs; uint32_t colorSeed = 0; |