UPGRADE YOUR BROWSER

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# 58967

Vivado Synthesis - WARNING: [Synth 8-2898] ignoring could not open $readmem data file

Description

Using a Windows operating system, a data file is specified using the $readmem operation, however the following error is received.
 

WARNING: [Synth 8-2898] ignoring could not open $readmem data file [c:/users/name/documents/projects/file.v:137]

initial
 begin 
  $readmemh("C:\Users\name\Documents\Projects\v7_gtx_test\gt_rom_init_tx .dat",rom,0,511);
 end

Why is this happening?

Solution

To have Vivado Synthesis correctly find the path, forward slashes must be used for the relative or full path in both Windows and Linux:

initial
 begin
  $readmemh("C:/Users/name/Documents/Projects/v7_gtx_test/gt_rom_init_tx .dat",rom,0,511);
 end

AR# 58967
Date Created 12/30/2013
Last Updated 01/21/2015
Status Active
Type General Article
Tools
  • Vivado Design Suite