Skip to content

Commit

Permalink
testing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
marwaneltoukhy committed Nov 12, 2023
1 parent 03e1e52 commit b0ce4f3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/scripts/get_designs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import argparse
import json


def parse_lvs_config(file_path):
"""Parses the LVS config file at the specified path."""
with open(file_path) as f:
data = json.load(f)
return data['LVS_VERILOG_FILES']


def main():
parser = argparse.ArgumentParser()
parser.add_argument("--design", help="The path to the design.")
args = parser.parse_args()

config_file = f"{args.design}/lvs/user_project_wrapper/lvs_config.json"
data = parse_lvs_config(config_file)
f = open("harden_sequence.txt", "w")
for d in data:
macro_name = d.split('/')[-1].split('.v')[0]
if macro_name.startswith('$'):
macro_name = 'user_project_wrapper'
f.write(f"{macro_name} ")
f.close()


if __name__ == "__main__":
main()

0 comments on commit b0ce4f3

Please sign in to comment.