3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 17:15:33 +00:00

Added Viz to yosys.js

This commit is contained in:
Clifford Wolf 2015-02-15 22:53:41 +01:00
parent 549d56bd21
commit 0283703f9e
4 changed files with 87 additions and 8 deletions

View file

@ -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;