-
Notifications
You must be signed in to change notification settings - Fork 2
/
Wrapper.vbs
57 lines (40 loc) · 1.44 KB
/
Wrapper.vbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
' Create WScript Shell Object to access filesystem.
Set WshShell = WScript.CreateObject("WScript.Shell")
' Start / Run YOSYS.EXE
WshShell.Run "yosys.exe"
' Select, or bring Focus to a window named `TESTABILITY MEARSUREMENT TOOL`
WshShell.AppActivate "YOSYS"
' Wait for 1 second(s)
WScript.Sleep 1000
WshShell.SendKeys "read_verilog uart.v u_rec.v u_xmit.v"
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "hierarchy -check -top uart"
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "proc; opt; fsm; opt; memory; opt"
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "techmap; opt"
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "write_json Jsonscript.txt"
WshShell.SendKeys "{ENTER}"
' Wait for 5 second(s)
WScript.Sleep 5000
' Start / Run PythonScript
WshShell.Run "Draftfull.py"
' Select, or bring Focus to a window named `PYTHON SCRIPTING`
WshShell.AppActivate "PYTHON"
' Wait for 3 second(s)
WScript.Sleep 3000
' Start / Run ScoapTool.EXE
WshShell.Run "scoaptool.exe"
' Select, or bring Focus to a window named `TESTABILITY MEARSUREMENT TOOL`
WshShell.AppActivate "Testability Measurement Tool"
' Wait for 1 second(s)
WScript.Sleep 1000
WshShell.SendKeys "^o"
WshShell.SendKeys "OutToScoap.txt"
WshShell.SendKeys "{ENTER}"
' Wait for 5 second(s) for the tool to compute the testability values
WScript.Sleep 5000
WshShell.SendKeys "+^s"
WshShell.SendKeys "output_values.txt"
WshShell.SendKeys "{ENTER}"