You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rundef.js 1.2KB

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