Useful VHDL logic elements