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.
This commit is contained in:
David Lindley 2025-02-06 20:28:18 -05:00 committed by GitHub
commit 1179387306
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -66,6 +66,7 @@
import os import os
import sys import sys
import re import re
import glob
import subprocess import subprocess
def usage(): def usage():
@ -213,6 +214,12 @@ if __name__ == '__main__':
cellsused = [None] * 38 cellsused = [None] * 38
# Remove pre-existing versions of mag and verilog files because they may be out-of-date.
for old_mag_file in glob.glob(magpath + '/gpio_defaults_block_*.mag'):
os.remove(old_mag_file)
for old_verilog_file in glob.glob(glpath + '/gpio_defaults_block_*.v'):
os.remove(old_verilog_file)
for i in range(0, 38): for i in range(0, 38):
config_name = '`USER_CONFIG_GPIO_' + str(i) + '_INIT' config_name = '`USER_CONFIG_GPIO_' + str(i) + '_INIT'
try: try: