no attribute 'parse' for '.vo' files
Adding '.vo' files (Verilog simulation models generated by Altera) to the design generates the error:
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/adrian/cern/hdl-make/hdlmake/__main__.py", line 237, in <module>
main()
File "/home/adrian/cern/hdl-make/hdlmake/__main__.py", line 181, in main
sim.run()
File "/home/adrian/cern/hdl-make/hdlmake/action/simulation.py", line 49, in run
self._generate_vsim_makefile()
File "/home/adrian/cern/hdl-make/hdlmake/action/simulation.py", line 68, in _generate_vsim_makefile
dep_solver.solve(dep_files)
File "/home/adrian/cern/hdl-make/hdlmake/new_dep_solver.py", line 98, in solve
if dep_file.satisfies(rel):
File "/home/adrian/cern/hdl-make/hdlmake/dep_file.py", line 183, in satisfies
self._parse_if_needed()
File "/home/adrian/cern/hdl-make/hdlmake/dep_file.py", line 166, in _parse_if_needed
parser.parse(self)
AttributeError: 'NoneType' object has no attribute 'parse'
I checked and apparently '.vo' files are properly recognised and
processed by SourceFileFactory in srcfile.py.
I have prepared test case in vo_bug branch under
tests/sim_test/sim/tests