add bulk of VHDL generation and parsing code