Added flattening option to VHDL export