Skip to content

Commit 9393094

Browse files
authored
Initial commit
0 parents  commit 9393094

File tree

206 files changed

+5316404
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+5316404
-0
lines changed

.github/scripts/get_designs.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import argparse
2+
import json
3+
4+
5+
def parse_lvs_config(file_path):
6+
"""Parses the LVS config file at the specified path."""
7+
with open(file_path) as f:
8+
data = json.load(f)
9+
return data['LVS_VERILOG_FILES']
10+
11+
12+
def main():
13+
parser = argparse.ArgumentParser()
14+
parser.add_argument("--design", help="The path to the design.")
15+
args = parser.parse_args()
16+
17+
config_file = f"{args.design}/lvs/user_project_wrapper/lvs_config.json"
18+
data = parse_lvs_config(config_file)
19+
f = open("harden_sequence.txt", "w")
20+
for d in data:
21+
macro_name = d.split('/')[-1].split('.v')[0]
22+
if macro_name.startswith('$'):
23+
macro_name = 'user_project_wrapper'
24+
f.write(f"{macro_name} ")
25+
f.close()
26+
27+
28+
if __name__ == "__main__":
29+
main()

0 commit comments

Comments
 (0)