mirror of https://github.com/YosysHQ/yosys.git
Update tcl doc, yosys does not return data to tcl
This pull request is to address YosysHQ/yosys#2980. The documentation, as originally written, does not make it clear that yosys commands, when used within a tcl script, do not return any value to the tcl script. This pull request notes this and offers a workaround via tee as noted in the issue.
This commit is contained in:
parent
b2408df313
commit
ec2f8796bd
|
@ -773,6 +773,12 @@ struct TclPass : public Pass {
|
|||
log("\n");
|
||||
log("If any arguments are specified, these arguments are provided to the script via\n");
|
||||
log("the standard $argc and $argv variables.\n");
|
||||
log("\n");
|
||||
log("Note, tcl will not recieve the output of any yosys command. If the output\n");
|
||||
log("of the tcl commands are needed, use the yosys command 'tee' to redirect yosys's\n");
|
||||
log("output to a temporary file.\n");
|
||||
|
||||
|
||||
log("\n");
|
||||
}
|
||||
void execute(std::vector<std::string> args, RTLIL::Design *) override {
|
||||
|
|
Loading…
Reference in New Issue