initial
[esdi.git] / esdi.runs / impl_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 // pre-commands:
26 ISETouchFile( "init_design", "begin" );
27 ISEStep( "vivado",
28 "-log esdi_ctl_phy.vdi -applog -m64 -product Vivado -messageDb vivado.pb -mode batch -source esdi_ctl_phy.tcl -notrace" );
29
30
31
32
33
34 function EAInclude( EAInclFilename ) {
35 var EAFso = new ActiveXObject( "Scripting.FileSystemObject" );
36 var EAInclFile = EAFso.OpenTextFile( EAInclFilename );
37 var EAIFContents = EAInclFile.ReadAll();
38 EAInclFile.Close();
39 return EAIFContents;
40 }