Changed RAM implementation to BRAM-based.