Updated speechrec module for FPGA (works in ModelSim)