Removes BRAM coregens and replaces them with open code