P
py
Guest
Hi,
For my test bench design, I coded an input procedure that loops continuously. In each iteration, it opens a vector file and load the content as test stimulus.
What I'm trying to do is pipe in the filenames as generic parameters. At the moment, I can only do something ugly like this:
for ii in 0 to G_NUM_TEST_CYCLE-1 loop
if ii=0 then
readline_nospace(f_data_ref, rline);
elsif ii = 1 then
readline_nospace(f_data_ref_1, rline);
elsif ii = 2 then
readline_nospace(f_data_ref_2, rline);
....
Is there a way to create an array string (if so what's the syntax? I am using vhdl2008) to specify a set of index-able filenames?
Thanks
For my test bench design, I coded an input procedure that loops continuously. In each iteration, it opens a vector file and load the content as test stimulus.
What I'm trying to do is pipe in the filenames as generic parameters. At the moment, I can only do something ugly like this:
for ii in 0 to G_NUM_TEST_CYCLE-1 loop
if ii=0 then
readline_nospace(f_data_ref, rline);
elsif ii = 1 then
readline_nospace(f_data_ref_1, rline);
elsif ii = 2 then
readline_nospace(f_data_ref_2, rline);
....
Is there a way to create an array string (if so what's the syntax? I am using vhdl2008) to specify a set of index-able filenames?
Thanks