Parsing VHDL with python, where to start.

Svenn Are Bjerkem svenn.bjerkem at googlemail.com
Mon Jul 21 07:09:33 EDT 2008


Hi,
I am in the need to write an application for PyQt to visualise the
structure of a VHDL project I am working on. Looking for a sensible
way to parse VHDL files and putting them into a data structure that
PyQt can represent as a tree (or whatever the MVC is supporting)
through search engines does not give me many hints. From what I know,
VHDL is not a very easy language to parse. There seems to be a parser
for perl available, but I do not know if it is wise to use a perl
module as a template for writing something similar in python.

My initial idea is to start simple and extend features in my
application, but I fear that I may start off with wrong ideas how to
parse and then code myself into a dead-end requiring myself to rewrite
the whole application in order to get any further. I would start
finding definitions of entities and the instantiations of these and
build a tree from a set of external vhdl files stored in a file
hierarchy. If somebody have a starting point where to get going with a
task like this, I would be happy to know.

--
kind regards,
Svenn



More information about the Python-list mailing list