convolution and sort filter VHDL