We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 66984

Vivado IP Flows - BRAM memory initialization in a user IP gives the following: "Critical Warning: [Synth 8-4445] could not open $readmem data file '32x16_rom_init.mem' "


I have a Vivado project that has an XPM RTL Template. There is also a .mem file for memory initialization for the XPM. 

I package the project using IP Packager (Using the Package your Project option). 

I observe that the .mem file gets pulled into the Synthesis and the Simulation filesets correctly in the Packager Wizard.

I then instantiate the IP in a new project and run Synthesis. I check BRAM initialization and find that the BRAMs are Not Initialized.

Vivado cannot bind a dynamic memory init file '32x16_rom_init.mem' which is required by a packaged IP which used XPM_LIBRARIES.

This leads to the following warning:

CRITICAL WARNING: [Synth 8-4445] could not open $readmem data file '32x16_rom_init.mem'; please make sure the file is added to project and has read permission, ignoring [/proj/Vivado/2015.4/data/ip/xpm/xpm_memory/xpm_memory_base.sv:596]


The MEM file is being added to the project as a simple path to the .mem as in the following examples.

set_property -dict [list CONFIG.C_MEMORY_INIT_FILE {32x16_rom_init.mem}] [get_ips xpm_mem_gen_top_0]


set_property CONFIG.C_MEMORY_INIT_FILE {32x16_rom_init.mem} [get_ips xpm_mem_gen_top_0]

To make the property setting more robust, the use of the get_files command should be included in the command as follows.

set_property CONFIG.C_MEMORY_INIT_FILE [get_files 32x16_rom_init.mem] [get_ips xpm_mem_gen_top_0]

Alternatively, you can choose to replace the memory init file "32x16_rom_init.mem" with "32x16_rom_init.mif".

AR# 66984
Date 12/18/2017
Status Active
Type General Article
  • Vivado Design Suite - 2015.4
  • Vivado Design Suite - 2016.1
  • Vivado Design Suite - 2016.2
  • Vivado Design Suite - 2016.3
Page Bookmarked