mpw_precheck
mpw_precheck copied to clipboard
Comments in user_analog_project_wrapper.spice break precheck
The precheck consistency check checks the top level instances in netgen/user_analog_project_wrapper.spice
against the top level cells in gds/user_analog_project_wrapper.gds
.
Comments in the top level of the user_analog_project_wrapper.spice
cause the following error.
Traceback (most recent call last):
File "mpw_precheck.py", line 141, in <module>
default_content='_default_content')
File "mpw_precheck.py", line 102, in main
run_precheck_sequence(precheck_config=precheck_config, project_config=project_config)
File "mpw_precheck.py", line 68, in run_precheck_sequence
results[check.__surname__] = check.run()
File "/home/kanobailey/mpw_precheck/check_manager/__init__.py", line 67, in run
defines_file_path=self.precheck_config['caravel_root'] / 'verilog/rtl/defines.v')
File "/home/kanobailey/mpw_precheck/checks/consistency_check/consistency_check.py", line 85, in main
user_netlist_parser = get_netlist_parser(project_config['user_netlist'], project_config['user_module'], project_config['netlist_type'], include_files=include_files, preprocess_define=PREPROCESS_DEFINES)
File "/home/kanobailey/mpw_precheck/checks/consistency_check/parsers/netlist_parser/__init__.py", line 420, in get_netlist_parser
return SpiceParser(netlist, top_module)
File "/home/kanobailey/mpw_precheck/checks/consistency_check/parsers/netlist_parser/__init__.py", line 180, in __init__
self.instances = [instance.name for instance in subcircuit]
File "/home/kanobailey/mpw_precheck/checks/consistency_check/parsers/netlist_parser/__init__.py", line 180, in <listcomp>
self.instances = [instance.name for instance in subcircuit]
AttributeError: 'Comment' object has no attribute 'name'