7074 - ModelSim: How do you export data to a CSV file?

7074 - ModelSim: How do you export data to a CSV file?

Description:
There is no direct way of exporting as a CSV file in ModelSim without using Tcl scripts or RTL. However, data can be exported as a Tabular list that can then be converted to CSV in an external application like MS Excel. The following steps show how to export to Tabular list:
  1. Compile and Run the simulation
  2. Under View, click List. This will open a new List window.
  3. Select the signals on the Wave window
  4. Right-click, then select Add > To List.
  5. Go back to the main simulation window
  6. Click File > Export > Tabular List. It should export a .lst file. 
  7. Then, you may save this as .csv in Excel.