D
dwerdna
Guest
Hi all
Im trying to create a selection of files for a testbench, but the
compiler is failing on the brackets. I tried the equivalent setup with
a loop statement previously and that failed as well. Is there an easy
way, or will I just need to define unique file names and create a
explicit case statement in my code instead of an indexing signal??
The other option would be to have one bigger 'ReadF.txt' file, but then
I lose flexibility for other tests...
Thanks
Andrew
OUTPUT_WORD : process (gsr, sys_clk)
variable VEC_WR_LINE : line;
variable VEC_RD_LINE : line;
file VEC_WR_FILE : text open write_mode is "WriteF.txt";
file VEC_RD_FILE(0) : text open read_mode is "ReadF.txt";
file VEC_RD_FILE(1) : text open read_mode is "ReadF.txt";
file VEC_RD_FILE(2) : text open read_mode is "ReadF.txt";
file VEC_RD_FILE(3) : text open read_mode is "ReadF.txt";
file VEC_RD_FILE(4) : text open read_mode is "ReadF.txt";
variable file_rd_bit_vec : bit_vector (15 downto 0);
begin
Im trying to create a selection of files for a testbench, but the
compiler is failing on the brackets. I tried the equivalent setup with
a loop statement previously and that failed as well. Is there an easy
way, or will I just need to define unique file names and create a
explicit case statement in my code instead of an indexing signal??
The other option would be to have one bigger 'ReadF.txt' file, but then
I lose flexibility for other tests...
Thanks
Andrew
OUTPUT_WORD : process (gsr, sys_clk)
variable VEC_WR_LINE : line;
variable VEC_RD_LINE : line;
file VEC_WR_FILE : text open write_mode is "WriteF.txt";
file VEC_RD_FILE(0) : text open read_mode is "ReadF.txt";
file VEC_RD_FILE(1) : text open read_mode is "ReadF.txt";
file VEC_RD_FILE(2) : text open read_mode is "ReadF.txt";
file VEC_RD_FILE(3) : text open read_mode is "ReadF.txt";
file VEC_RD_FILE(4) : text open read_mode is "ReadF.txt";
variable file_rd_bit_vec : bit_vector (15 downto 0);
begin