-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from efabless/gf180mcuD_CI
Gf180mcuD CI
- Loading branch information
Showing
2 changed files
with
351 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Oops, something went wrong.