File tree Expand file tree Collapse file tree 3 files changed +58
-2
lines changed Expand file tree Collapse file tree 3 files changed +58
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # ------------------------------------------------------------------------------
4
+ # clean_modelsim.sh
5
+ # published as part of https://github.com/pConst/basic_verilog
6
+ # Konstantin Pavlov, pavlovconst@gmail.com
7
+ # ------------------------------------------------------------------------------
8
+ #
9
+ # Use this file as a boilerplate for your custom clean script
10
+ # for Modelsim projects
11
+
12
+
13
+ rm -rf work
14
+
15
+ rm transcript
16
+ rm modelsim.ini
17
+ rm start_time.txt
18
+ rm vsim.wlf
19
+ rm vish_stacktrace.vstf
20
+
Original file line number Diff line number Diff line change @@ -12,9 +12,15 @@ rem for Vivado/Vitis projects
12
12
for /R %%f in (*.xpr) do (
13
13
echo " Project name is %%~nf "
14
14
15
+ del /s /f /q .\.Xil\*
16
+ rmdir /s /q .\.Xil\
17
+
15
18
del /s /f /q .\%%~nf .cache\*
16
19
rmdir /s /q .\%%~nf .cache\
17
20
21
+ del /s /f /q .\%%~nf .gen\*
22
+ rmdir /s /q .\%%~nf .gen\
23
+
18
24
del /s /f /q .\%%~nf .hw\*
19
25
rmdir /s /q .\%%~nf .hw\
20
26
@@ -27,8 +33,6 @@ for /R %%f in (*.xpr) do (
27
33
del /s /f /q .\%%~nf .sim\*
28
34
rmdir /s /q .\%%~nf .sim\
29
35
30
- del /s /f /q .\.Xil\*
31
- rmdir /s /q .\.Xil\
32
36
33
37
del /s /f /q .\*.jou
34
38
del /s /f /q .\*.log
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # ------------------------------------------------------------------------------
4
+ # clean_vivado.sh
5
+ # published as part of https://github.com/pConst/basic_verilog
6
+ # Konstantin Pavlov, pavlovconst@gmail.com
7
+ # ------------------------------------------------------------------------------
8
+ #
9
+ # Use this file as a boilerplate for your custom clean script
10
+ # for Xilinx Vivado projects
11
+
12
+
13
+ rm -rf .Xil
14
+ rm -rf * .cache
15
+ rm -rf * .hw
16
+ rm -rf * .gen
17
+ rm -rf * .ip_user_files
18
+ rm -rf * .runs
19
+ rm -rf * .sim
20
+
21
+ find /* .srcs/sources* /bd/ -type f -not -name ' *.xci' -delete
22
+ find /* .srcs/sources* /ip/ -type f -not -name ' *.xci' -delete
23
+
24
+ rm -f .ioplanning
25
+ rm -f * .jou
26
+ rm -f * .log
27
+ rm -f * .str
28
+ rm -f * .tmp
29
+ rm -f usage_statistics_webtalk.*
30
+
31
+ rm -f * .xsa
32
+
You can’t perform that action at this time.
0 commit comments