rundef.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // Vivado(TM)
  3. // rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6
  4. // Copyright 1986-2022 Xilinx, Inc. All Rights Reserved.
  5. // Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.
  6. //
  7. var WshShell = new ActiveXObject( "WScript.Shell" );
  8. var ProcEnv = WshShell.Environment( "Process" );
  9. var PathVal = ProcEnv("PATH");
  10. if ( PathVal.length == 0 ) {
  11. PathVal = "C:/Xilinx/Vivado/2023.1/ids_lite/ISE/bin/nt64;C:/Xilinx/Vivado/2023.1/ids_lite/ISE/lib/nt64;C:/Xilinx/Vivado/2023.1/bin;";
  12. } else {
  13. PathVal = "C:/Xilinx/Vivado/2023.1/ids_lite/ISE/bin/nt64;C:/Xilinx/Vivado/2023.1/ids_lite/ISE/lib/nt64;C:/Xilinx/Vivado/2023.1/bin;" + PathVal;
  14. }
  15. ProcEnv("PATH") = PathVal;
  16. var RDScrFP = WScript.ScriptFullName;
  17. var RDScrN = WScript.ScriptName;
  18. var RDScrDir = RDScrFP.substr( 0, RDScrFP.length - RDScrN.length - 1 );
  19. var ISEJScriptLib = RDScrDir + "/ISEWrap.js";
  20. eval( EAInclude(ISEJScriptLib) );
  21. // pre-commands:
  22. ISETouchFile( "init_design", "begin" );
  23. ISEStep( "vivado",
  24. "-log basys3top.vdi -applog -m64 -product Vivado -messageDb vivado.pb -mode batch -source basys3top.tcl -notrace" );
  25. function EAInclude( EAInclFilename ) {
  26. var EAFso = new ActiveXObject( "Scripting.FileSystemObject" );
  27. var EAInclFile = EAFso.OpenTextFile( EAInclFilename );
  28. var EAIFContents = EAInclFile.ReadAll();
  29. EAInclFile.Close();
  30. return EAIFContents;
  31. }