mif file is generated by coregen. you can convert hex file into coe file (add header, you can find coe file format from xilinx implmentation documentation), which is loaded by coregen as an initialization file. after coregen is done, you will get the mif file.