wtr
Full Member level 5
Hello all,
Here is the scenario.
Some user pulls the design from the git repository.
They now have
$path/$user/known_filestructure/
In VHDL there is
Where in the past I have concatenated the writemode string by doing
What I want to know is ....
Using only VHDL is it possible to create a string like "$path/$user/known_filestructure/results.txt" ///SUCH THAT vhdl does variable substitution.
I had thought about writing a script to generate a line inside the file, however this is tedious & I would prefer to keep tcl/python scripting out of the solution.
Unfortunately relative paths cannot be used because the modelsim location whereby the file is executed is unknown. It's all generated using vivado tcl scripts & auto generated do files.
Much appreciated for any suggestions.
Regards,
Wesley
Here is the scenario.
Some user pulls the design from the git repository.
They now have
$path/$user/known_filestructure/
In VHDL there is
Code VHDL - [expand] 1 file out_file : text open WRITE_MODE is "set_in_stone/results.txt";
Where in the past I have concatenated the writemode string by doing
Code VHDL - [expand] 1 2 signal string set_in_stone "some_path" --where some_path is $path/$user/known_filestructure/ file out_file : text open WRITE_MODE is set_in_stone & "result.txt"; -- or words to that effect (wtte)
What I want to know is ....
Using only VHDL is it possible to create a string like "$path/$user/known_filestructure/results.txt" ///SUCH THAT vhdl does variable substitution.
I had thought about writing a script to generate a line inside the file, however this is tedious & I would prefer to keep tcl/python scripting out of the solution.
Unfortunately relative paths cannot be used because the modelsim location whereby the file is executed is unknown. It's all generated using vivado tcl scripts & auto generated do files.
Much appreciated for any suggestions.
Regards,
Wesley