Altera's RAM initialization file format is MIF and hex. Quartusii's own RAM initialization tool facilitates the generation of initialization files.
Xilinx's RAM initialization file format is the Coe, and in Vivado the software turns the Coe file into a MIF file. Xilinx and Altera MIF file formats are not the same. The Xilinx MIF file is the final valid initialization file. You can use the Memory Editor editing tool to generate a Coe file, located in tools > MemoryEditor. reference files can also be found in the $XILINX/coregen/data directory.
The initial file format for Beijing micro-Jagger's RAM (also known as EMB) is dat. The format is relatively simple.
The first line is the reputation data width
Width=16
The second line starts with your reputation for a bit of data, one line to write a data (all 16 binary data), a newline character is considered, the address plus 1.
991c
8600
Reference documents:
COE File Syntax.
Http://www.xilinx.com/itp/xilinx10/isehelp/cgn_r_coe_file_syntax.htm
Creating a Memory
Http://www.xilinx.com/itp/xilinx10/isehelp/cgn_p_memed_single_block.htm
Creating hexadecimal (Intel-format) and Memory initialization Files
Http://quartushelp.altera.com/14.0/mergedProjects/design/med/med_pro_med_files.htm
Initialization of internal RAM in FPGA