dpaul
Advanced Member level 5
VHDL write to file with Modelsim Microsemi Pro 2019.2
I am using the Modelsim Microsemi Pro 2019.2.
In the testbench I am opening a file in write mode and periodically writing data to it. I open the file in write mode and never close the file (always stopping the sim manually).
As long as the simu is running, whenever I see the file on disk, they are not updated. File size is always 0KB. The file is updated only after I stop the sim.
Is this how Modelsim file write generally behaves? The file write data seems to be held is some cache and is flushed to the disk after sim is stopped or quit.
I have used the same TB with Vivado simulator, xsim, and there such a file is regularly updated with data as the simu proceeds.
Can this behavior be somehow changed?
I tried closing the file and re-opening it just before the file needs to be written to, but it does not help.
I am using the Modelsim Microsemi Pro 2019.2.
In the testbench I am opening a file in write mode and periodically writing data to it. I open the file in write mode and never close the file (always stopping the sim manually).
As long as the simu is running, whenever I see the file on disk, they are not updated. File size is always 0KB. The file is updated only after I stop the sim.
Is this how Modelsim file write generally behaves? The file write data seems to be held is some cache and is flushed to the disk after sim is stopped or quit.
I have used the same TB with Vivado simulator, xsim, and there such a file is regularly updated with data as the simu proceeds.
Can this behavior be somehow changed?
I tried closing the file and re-opening it just before the file needs to be written to, but it does not help.