When trying to run I got the following errorr
Line 50: Index value <0> is out of range [1:2147483647] of array <string>

http://forums.xilinx.com/t5/Synthesis/Importing-a-file-and-using-its-values-in-XILINX/td-p/216503
sushantm posed

Re: Importing a file and using its values in XILINX
Options

‎03-12-2012 05:07 AM

Actually you should modify variable s: string(y'range);  variable s : string(1 to 6);
Based on the data file sim.dat
00010

00011

11100

1UXZW

HL111

11111
chg'ed Line 50 variable s: string(y'range)
 to variable s: string(1 to 5);