Skip to content

Commit

Permalink
Merge pull request #102 from d-m-bailey/remove_old
Browse files Browse the repository at this point in the history
Remove pre-existing magic and gate level verilog because they may be.  Testing on branch.
  • Loading branch information
DavidRLindley authored Feb 7, 2025
2 parents e60ad32 + 22f2e9c commit 1179387
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/gen_gpio_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
import os
import sys
import re
import glob
import subprocess

def usage():
Expand Down Expand Up @@ -213,6 +214,12 @@ def usage():

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):
config_name = '`USER_CONFIG_GPIO_' + str(i) + '_INIT'
try:
Expand Down

0 comments on commit 1179387

Please sign in to comment.