RTL cleanup and upgrade to Quartus 14.0