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.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. // pre-commands:
  21. ISETouchFile( "write_bitstream", "begin" );
  22. ISEStep( "vivado",
  23. "-log fixedPointTest.vdi -applog -m64 -product Vivado -messageDb vivado.pb -mode batch -source fixedPointTest.tcl -notrace" );
  24. function EAInclude( EAInclFilename ) {
  25. var EAFso = new ActiveXObject( "Scripting.FileSystemObject" );
  26. var EAInclFile = EAFso.OpenTextFile( EAInclFilename );
  27. var EAIFContents = EAInclFile.ReadAll();
  28. EAInclFile.Close();
  29. return EAIFContents;
  30. }