Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI normally write a text file directly in the testbench)Modelsim). My last post gave some read/write examples.
a direct method is this: in your code open a file then you just write each data sample(on the clk for example) to a line then from line to file, then close the simulator to flush the file.