Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lavin <[email protected]>
  • Loading branch information
clavin-xlnx committed Jan 13, 2025
1 parent 44ffb31 commit 52f7687
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/com/xilinx/rapidwright/util/VivadoTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import java.io.File;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -113,8 +114,17 @@ public static List<String> runTcl(Path outputLog, Path tclScript, boolean verbos
}
final String vivadoCmd = FileTools.getVivadoPath() + " -log " + outputLog.toString() + " -nojournal -mode batch -source "
+ tclScript.toString();
System.out.println("Running VivadoTools.runTcl() at " + FileTools.getTimeStamp());
Integer exitCode = FileTools.runCommand(vivadoCmd, verbose, environ, runDir);
if (exitCode != 0) {
System.out.flush();
System.err.flush();
if (Files.exists(outputLog)) {
for (String l : FileTools.getLinesFromTextFile(outputLog.toString())) {
System.out.println("FAILED OUTPUT> " + l);
}
}

throw new RuntimeException("Vivado exited with code: " + exitCode);
}
return FileTools.getLinesFromTextFile(outputLog.toString());
Expand Down

0 comments on commit 52f7687

Please sign in to comment.