vhdl-package-file-name

vhdl-package-file-name is a variable defined in `vhdl-mode.el'.
Its value is
(".*" . "\\&")


Documentation:
Specifies how the package file name is obtained.
The package file name can be obtained by modifying the package name (e.g.
attaching or stripping off a substring). The file extension is automatically
taken from the file name of the current buffer. Package files can be created
in a different directory by prepending a relative or absolute path to the
file name.

FROM REGEXP is a regular expression matching the original name:
".*" matches the entire string
"\(...\)" matches a substring
TO STRING specifies the string to be inserted as new name:
"\&" means substitute entire matched text
"\N" means substitute what matched the Nth "\(...\)"
Examples:
".*" "\&" inserts original string
".*" "\&_i" attaches "_i" to original string
"\(.*\)_[io]$" "\1" strips off "_i" or "_o" from original string
".*" "foo" inserts constant string "foo"
".*" "" inserts empty string

You can customize this variable.