Hi,
for a testbench I need a procedure loading arbitrary files with stimuli data. Now my problem is vhdl wants me to define the string length of the file name+path in advance. But since this TB is used for huge amount of testcases run in several different environments I cannot tell the length of the file name strings before the procedure is called...
Further a quite similar problem arises when I read the stimuli files, since they contain signal names and their values, I cannot tell in advance how big the string read from a line will be...how can I just read a string of arbitrary length from a file with an arbitrary name?
Anyone having an idea how to solve this?
Thanks!
for a testbench I need a procedure loading arbitrary files with stimuli data. Now my problem is vhdl wants me to define the string length of the file name+path in advance. But since this TB is used for huge amount of testcases run in several different environments I cannot tell the length of the file name strings before the procedure is called...
Further a quite similar problem arises when I read the stimuli files, since they contain signal names and their values, I cannot tell in advance how big the string read from a line will be...how can I just read a string of arbitrary length from a file with an arbitrary name?
Anyone having an idea how to solve this?
Thanks!
Last edited: