Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Help: about simulation waveform

Hi, may i know is there a way to convert the simulation waveform into .txt format because i using quartus to generate test sequence and the output is in .vwf and i need to apply the test sequence into HOPE simulator which is using .txt format. So, now i'm collecting the test sequence which is in .vwf into the .txt format by manually typing it.

Please let me know if there is a way to convert it, THX...

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I 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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I 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.

    --- Quote End ---

    Sorry, I also have a problem with my simulation waveform. I dont know whether it has to do with the settings. Whenever I try to simulate my VHDL codes, their waveforms dont follow the clock accordingly , even if the codes are well written. Sometimes I get some glitches in them. In the case of a counter, the three counts values are shown properly, but the next ones are unreadable. What could be the problem ?