initial
[esdi.git] / esdi.runs / synth_1 / rundef.js
1 //
2 // Vivado(TM)
3 // rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6
4 // Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.
5 //
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 = "S:/vivado/SDK/2019.1/bin;S:/vivado/Vivado/2019.1/ids_lite/ISE/bin/nt64;S:/vivado/Vivado/2019.1/ids_lite/ISE/lib/nt64;S:/vivado/Vivado/2019.1/bin;";
12 } else {
13 PathVal = "S:/vivado/SDK/2019.1/bin;S:/vivado/Vivado/2019.1/ids_lite/ISE/bin/nt64;S:/vivado/Vivado/2019.1/ids_lite/ISE/lib/nt64;S:/vivado/Vivado/2019.1/bin;" + PathVal;
14 }
15
16 ProcEnv("PATH") = PathVal;
17
18 var RDScrFP = WScript.ScriptFullName;
19 var RDScrN = WScript.ScriptName;
20 var RDScrDir = RDScrFP.substr( 0, RDScrFP.length - RDScrN.length - 1 );
21 var ISEJScriptLib = RDScrDir + "/ISEWrap.js";
22 eval( EAInclude(ISEJScriptLib) );
23
24
25 ISEStep( "vivado",
26 "-log esdi_ctl_phy.vds -m64 -product Vivado -mode batch -messageDb vivado.pb -notrace -source esdi_ctl_phy.tcl" );
27
28
29
30 function EAInclude( EAInclFilename ) {
31 var EAFso = new ActiveXObject( "Scripting.FileSystemObject" );
32 var EAInclFile = EAFso.OpenTextFile( EAInclFilename );
33 var EAIFContents = EAInclFile.ReadAll();
34 EAInclFile.Close();
35 return EAIFContents;
36 }