Skip to content

Commit ff72cd4

Browse files
committed
Added clean scripts
1 parent de068b7 commit ff72cd4

File tree

3 files changed

+58
-2
lines changed

3 files changed

+58
-2
lines changed

scripts/clean_modelsim.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+

scripts/clean_vivado.bat

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ rem for Vivado/Vitis projects
1212
for /R %%f in (*.xpr) do (
1313
echo "Project name is %%~nf"
1414

15+
del /s /f /q .\.Xil\*
16+
rmdir /s /q .\.Xil\
17+
1518
del /s /f /q .\%%~nf.cache\*
1619
rmdir /s /q .\%%~nf.cache\
1720

21+
del /s /f /q .\%%~nf.gen\*
22+
rmdir /s /q .\%%~nf.gen\
23+
1824
del /s /f /q .\%%~nf.hw\*
1925
rmdir /s /q .\%%~nf.hw\
2026

@@ -27,8 +33,6 @@ for /R %%f in (*.xpr) do (
2733
del /s /f /q .\%%~nf.sim\*
2834
rmdir /s /q .\%%~nf.sim\
2935

30-
del /s /f /q .\.Xil\*
31-
rmdir /s /q .\.Xil\
3236

3337
del /s /f /q .\*.jou
3438
del /s /f /q .\*.log

scripts/clean_vivado.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+

0 commit comments

Comments
 (0)