Standard file IO package found in VHDL. It contains functions to read/write files with data of all standard types in VHDL including character, integer, and std_logic.
Questions tagged [textio]
3 questions
5
votes
1 answer
VHDL: Is it possible to have a "variable length" string in VHDL like in programming languages?
According to the package named Standard in VHDL, the string is actually declared as array of character type where the character type itself is also defined within the package.
Provided that I am filling in a string with data which shall then be…

quantum231
- 11,218
- 24
- 99
- 192
4
votes
1 answer
VHDL: How to change the resolution of time printed using "now" in VHDL to file or terminal
The "now" is usually used if one wants to print simulation time to screen or into a file. I need to print simulation time in ms into a file. However, using now with writeline into a file is giving me time in ns resolution.

quantum231
- 11,218
- 24
- 99
- 192
1
vote
1 answer
Where is the body of the textio package?
I have used the textio package several times and thought about reading it. When I opened the textio package from my ModelSim library window in the std library I found that the body of the package is not in the textio.vhdl file. Thus, I can onyl see…

quantum231
- 11,218
- 24
- 99
- 192