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

7.1i EDK - "ERROR:Data2MEM:59 - Expected a 'tag' or 'tag' keyword in -bd option."

Description

Keywords: Tilde, Data2Mem, simgen, folder, path

Urgency: Standard

General Description:
While calling the simgen with the following parameters:

simgen -p xc2vp40fg676-6 -lang vhdl -toplevel no -ti system_top
-lp ..\..\ip_cores\ip_edk -lp ..\..\edk_ppc405 -pe PPC405_i
.\sim_c_code\ppc_c_code.elf -mixed yes -s mti -X C:/vhdl_libs/ -E
C:/vhdl_libs/edklib -m behavioral system.mhs

I receive the following error message during the runtime:

"ERROR:Data2MEM:59 - Expected a 'tag' or 'tag' keyword in -bd option. Instead,
encountered 'as'."

The problem seems to be the "~" symbol within the folder name, but I cannot rename the folder so as to remove the "~" symbol. How can I continue without renaming the folder containing the "~" symbol?

Solution

Use (2) and (3) below to get the proper outputs. Using (1) will result in the error. Replace the file names below with appropriate names according to your design.

(1) simgen -p xc2vp40fg676-6 -lang vhdl -toplevel no -ti system_top -lp ..\..\ip_cores\ip_edk -lp ..\..\edk_ppc405 -pe PPC405_i .\code\executable.elf -mixed yes -s mti -X C:/vhdl_libs/ -E C:/vhdl_libs/edklib -m behavioral system.mhs

(2) simgen -p xc2vp40fg676-6 -lang vhdl -toplevel no -ti system_top -lp ..\..\ip_cores\ip_edk -lp ..\..\edk_ppc405 -mixed yes -s mti -X C:/vhdl_libs/ -E C:/vhdl_libs/edklib -m behavioral system.mhs

(3) data2mem -bm system_sim.bmm -bd ..\..\code\executable.elf tag bram1 -u -o u tmpucf.ucf ucf2vhdl.pl tmpucf.ucf system_init.vhd system system_conf beh

The first (1) call hangs because of the "-pe" option and the problem that the path to the executable.elf has the "~" symbol in it.

The second call then runs without the option "-pe" to generate all the other files you need which could not be generated by the first command (1) as it flags the error during runtime.

With the third (3) step it will generate the "system_init.vhd" file which holds the configuration for the block RAM.
AR# 21545
Date Created 06/03/2005
Last Updated 04/13/2007
Status Archive
Type General Article