Hardware::Vhdl::Parser is a Perl module that defines the complete grammar needed to parse any VHDL code. By overloading this grammar, it is possible to easily create perl scripts which run through VHDL code and perform specific functions.
For example, a Hierarchy.pm uses Hardware::Vhdl::Parser to overload the grammar rule for component instantiations. This single modification will print out all instance names that occur in the file being parsed. This might be useful for creating an automatic build script, or a graphical hierarchical browser of a VHDL design.
This module is currently in Beta release. All code is subject to change. Bug reports are welcome.
$parser = new Hardware::Vhdl::Parser;