code dump of miscellaneous vhdl code