Previously, sram_1r1w would instantiate the ALTSYNCRAM megafunction when synthesizing.
The problem was that there are quite a few small memories and quartus would run out of internal memory blocks while synthesizing.  I've changed it to infer memory as recommended in Altera's documentation. It can now just use flip flops for cases where memories are small enough that it makes more sense, or in this case where it runs out of memory blocks.