Skip to content

Commit 1179387

Browse files
Merge pull request #102 from d-m-bailey/remove_old
Remove pre-existing magic and gate level verilog because they may be. Testing on branch.
2 parents e60ad32 + 22f2e9c commit 1179387

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/gen_gpio_defaults.py

+7
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
import os
6767
import sys
6868
import re
69+
import glob
6970
import subprocess
7071

7172
def usage():
@@ -213,6 +214,12 @@ def usage():
213214

214215
cellsused = [None] * 38
215216

217+
# Remove pre-existing versions of mag and verilog files because they may be out-of-date.
218+
for old_mag_file in glob.glob(magpath + '/gpio_defaults_block_*.mag'):
219+
os.remove(old_mag_file)
220+
for old_verilog_file in glob.glob(glpath + '/gpio_defaults_block_*.v'):
221+
os.remove(old_verilog_file)
222+
216223
for i in range(0, 38):
217224
config_name = '`USER_CONFIG_GPIO_' + str(i) + '_INIT'
218225
try:

0 commit comments

Comments
 (0)