Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > is there any way to convert modelsim wave output to text file?

Reply
Thread Tools

is there any way to convert modelsim wave output to text file?

 
 
Carson
Guest
Posts: n/a
 
      08-10-2005
Hi,

Is there any way to convert modelsim wave output to text file? it
would be great if no changes in the VHDL code is required. I would like
to do this, because i would like to dump all the waveforms values for
analysis in excel spreadsheet.

Carson

 
Reply With Quote
 
 
 
 
Ralf Hildebrandt
Guest
Posts: n/a
 
      08-10-2005
Carson wrote:

> Is there any way to convert modelsim wave output to text file? it
> would be great if no changes in the VHDL code is required. I would like
> to do this, because i would like to dump all the waveforms values for
> analysis in excel spreadsheet.


To be tool-independent you may use

process(my_signal)
begin
if (my_signal'event) then
-- write from VHDL to text file
end if;
end process;

You can easily format the text output as you wish, but the disadvantage
is, that you have to write such a process for every signal you want to
trace.

Ralf
 
Reply With Quote
 
 
 
 
Andy Peters
Guest
Posts: n/a
 
      08-10-2005
Carson wrote:
> Hi,
>
> Is there any way to convert modelsim wave output to text file? it
> would be great if no changes in the VHDL code is required. I would like
> to do this, because i would like to dump all the waveforms values for
> analysis in excel spreadsheet.


Ummmm, ModelSim has had lists basically, like, forever.

--a

 
Reply With Quote
 
Carson
Guest
Posts: n/a
 
      08-10-2005
sorry, I can't understand, may you please elaborate?

Carson

 
Reply With Quote
 
Ben Twijnstra
Guest
Posts: n/a
 
      08-10-2005
Hi Carson,

> sorry, I can't understand, may you please elaborate?


Modelsim also has something called a List Window. You can add signals you
want to dump later into this list window, and after simulation, you can
then write the contents of the window to an ASCII file.

The format may ned to have a bit of massaging with Perl before it's usable
in Excel or OpenOffice.

Best regards,


Ben

 
Reply With Quote
 
Carson
Guest
Posts: n/a
 
      08-11-2005
I tried it out today. It's so cool! I can now dump it out to text, and
awk it to excel.

Thanks!

Carson

 
Reply With Quote
 
Divyang M
Guest
Posts: n/a
 
      08-11-2005
Hi Carson..
Can you tell which method did you use?

I have always used the method suggested by Ralf above (because I don't
want the signal on every clock cycle but whenever a datavalid signal
coincides with the signal), but now I realise that when I have a lot of
signals that I write to a text file, the simulation is very slow. I am
currently writing 18 signals and the simulation takes 1.5 days...When I
wrote only 1 signal, simulation took only 3 hrs.

If you've used the Lists from ModelSim can you tell me:
Is using the Lists faster? and can I grab data in the list only when
the datavalid signal is high instead of every clock cycle?

Thanks..
Divyang M

 
Reply With Quote
 
Carson
Guest
Posts: n/a
 
      08-20-2005
Hi Divyang,

Sorry to reply so late. Have been away for a while...

I think list is very fast. But be warned that the text file output
will be huge. So just capture the signal that u want, and compressed
the "delta cycle" [can be chosen in modelsim]. I can't capture the
signal using clock'event because the original testbench cannot be
modified.

Hope it works for you.

Carson

 
Reply With Quote
 
Ajeetha
Guest
Posts: n/a
 
      08-21-2005
Hi Divyang,
I didn't try this in Modelsim, but a quick look at their
documentation revealed it is possible, look for the following section
under Waveform Analysis:
-----
Configuring new line triggering in the List window
-----

I do very similar thing with VCS-DVE every now and then, it works fine.

HTH
Ajeetha
http://www.noveldv.com

 
Reply With Quote
 
Divyang M
Guest
Posts: n/a
 
      08-21-2005
Thanks Carson and Ajeetha.

I will try this out..

Divyang M.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
superposition of a square wave over a sine wave Shiva VHDL 2 02-02-2009 02:49 PM
superposition of a square wave over a sine wave rara10 VHDL 0 01-30-2009 08:21 PM
Modelsim wave tasos60 VHDL 0 08-05-2008 12:14 PM
How do i record and invert a sound wave in real time using Tkinter,tkSnack and wave modules? Karthik Python 0 09-05-2007 05:12 AM
square wave / sine wave generator red floyd C++ 5 06-21-2007 09:30 PM



Advertisments