To avoid this problem, implement the memory as a black box in your top-level source file. Then create a design file in the MAX PLUS II software that includes the desired memory function from the max2lib\mega_lpm library and save this file into your project directory. In the black box design file, set the ports and parameters with the same settings you made in the genmem utility, and connect input and output signal names to match those in your top-level design file. Because the genmem filenames instantiate functions from the mega_lpm library, your design has the same functionality.
The MAX PLUS II software versions 9.1 and above supports genmem filenames with widths up to 160 bits.